santiago gonzalez | 1 Oct 2009 01:34
Picon

Re: Flowcode in ktl-0.3.7

Sorry again... the bug deleting components or closing the circuit document is still there...
I just uncomented the lines in electronicconnector.cpp in the wrong folder...

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Ktechlab-devel mailing list
Ktechlab-devel@...
https://lists.sourceforge.net/lists/listinfo/ktechlab-devel
santiago gonzalez | 1 Oct 2009 04:39
Picon

potentiometer not working (rev 459)

Better than words is a video:

http://arcachofo.users.sourceforge.net/ktl459-1

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Ktechlab-devel mailing list
Ktechlab-devel@...
https://lists.sourceforge.net/lists/listinfo/ktechlab-devel
santiago gonzalez | 1 Oct 2009 04:51
Picon

Problems with pic simulation (rev 459)

I have this problem in rev. 459 and some previous.

When i create a new circuit, add a pic component, load a file and run it, it works, there are some problems depending on the loaded program, but it works.
If i close the circuit document, and open it again then the simulation doesn't work; if i open the simbols viewer, i see all is working ok, all the register are doing what they have to, but in the circuit view all the pic pins stay low and nothing happens.
If i delete that pic and drag - drop a new one, load the file and run, it works... but when i close and open again the circuit, it doesn't work...

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Ktechlab-devel mailing list
Ktechlab-devel@...
https://lists.sourceforge.net/lists/listinfo/ktechlab-devel
P Zoltan | 1 Oct 2009 09:23
Picon

Re: Flowcode in ktl-0.3.7

On Thu, 01 Oct 2009 01:34:22 +0200, santiago gonzalez  
<santigoro@...> wrote:

> Sorry again... the bug deleting components or closing the circuit  
> document
> is still there...
> I just uncomented the lines in electronicconnector.cpp in the wrong
> folder...

  You can see in valgrind (memory check) that there are several invalid  
reads in ktechlab when closing a document.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
Alan Grimes | 1 Oct 2009 09:10
Favicon

Re: potentiometer not working (rev 459)

Just the subject line was all I needed. Thanks.

I've not laid a finger on the analog code in weeks. I did take a 2x4 to
the UI code but not the underlying simulator (that side of it, at
least). This appears to be a simulator bug though. I have no idea what
the hell could be going on here.

Oh jeez, the potentiometer code (ECPotentiometer::dataChanged() ) is not
getting called. =(

The closest thing to a workaround is to add something to the circuit and
then delete it, this forces the system to re-build the circuit from
scratch which forces a call to dataChanged()....

It's 3:20 AM right now so I can't put any more time into this, maybe
Zoltan the magnificent can figure out what the hell I did wrong... =P

--

-- 
New president: Here we go again...
Chemistry.com: A total rip-off.
Powers are not rights.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
santiago gonzalez | 1 Oct 2009 16:58
Picon

Re: potentiometer not working (rev 459)


Ok... looks that the problem is not only in potentiometer, with fixed resistors i have the same problem.

In rev 419 the problem is not present, in rev 421 the problem appear, then here is the stuff.



2009/10/1 Alan Grimes <agrimes-zY4eFNvK5D9If6P1QZMOBw@public.gmane.org>
Just the subject line was all I needed. Thanks.

I've not laid a finger on the analog code in weeks. I did take a 2x4 to
the UI code but not the underlying simulator (that side of it, at
least). This appears to be a simulator bug though. I have no idea what
the hell could be going on here.

Oh jeez, the potentiometer code (ECPotentiometer::dataChanged() ) is not
getting called. =(

The closest thing to a workaround is to add something to the circuit and
then delete it, this forces the system to re-build the circuit from
scratch which forces a call to dataChanged()....

It's 3:20 AM right now so I can't put any more time into this, maybe
Zoltan the magnificent can figure out what the hell I did wrong... =P


--
New president: Here we go again...
Chemistry.com: A total rip-off.
Powers are not rights.


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Ktechlab-devel mailing list
Ktechlab-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ktechlab-devel

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Ktechlab-devel mailing list
Ktechlab-devel@...
https://lists.sourceforge.net/lists/listinfo/ktechlab-devel
Alan Grimes | 1 Oct 2009 18:54
Favicon

Re: potentiometer not working (rev 459)

santiago gonzalez wrote:
> 
> Ok... looks that the problem is not only in potentiometer, with fixed
> resistors i have the same problem.
> 
> In rev 419 the problem is not present, in rev 421 the problem appear,
> then here is the stuff.

I just checked those commits. 420 and 421 only made tweaks to some
simulator code and nothing that could possibly affect the DataChanged
functionality. =\

I went through the archive. There is some possibility that 446 could
have done it because it was a buddy of the misguided 447 changeset.

If it was before 419, I probably would have noticed this bug myself...
Please keep hunting.

It feels like the bug would be in Canvas or in the Document class
heirarchy. Basically the code that connects the UI to the component
properties...

Bugs with displaying current should be debuged directly. Please don't
consider reverting to the previous current code. The new bugs are
definitely preferable to the old ones! =P

--

-- 
New president: Here we go again...
Chemistry.com: A total rip-off.
Powers are not rights.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
Alan Grimes | 1 Oct 2009 19:01
Favicon

potentiometer not working (rev 459) (adendum)

Alan Grimes wrote:
> santiago gonzalez wrote:
>> Ok... looks that the problem is not only in potentiometer, with fixed
>> resistors i have the same problem.

It would also be useful to have a list of components which work and
which don't.

I just checked ECSRflipflop, and it works.
Battery appears to work.
VoltagePoint appears to work.

This makes no sense at all because the code for most of these has been
stable for ages. =(

--

-- 
New president: Here we go again...
Chemistry.com: A total rip-off.
Powers are not rights.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
santiago gonzalez | 1 Oct 2009 20:07
Picon

Re: potentiometer not working (rev 459)

Confirmed... the bug was introduced in rev 221.
this time i compiled 220 and the bug is not there, re-downloaded rev 221 and compiled... and the bug appear.

In rev 221 some other things changed... for example:
In rev 220 there was a bug that makes ktl crash when re-loading progran in pic or when opening a circuit document with pic... in rev 221 this bug dissapear... but appear the pot and resistor bug.

2009/10/1 Alan Grimes <agrimes-zY4eFNvK5D9If6P1QZMOBw@public.gmane.org>
santiago gonzalez wrote:
>
> Ok... looks that the problem is not only in potentiometer, with fixed
> resistors i have the same problem.
>
> In rev 419 the problem is not present, in rev 421 the problem appear,
> then here is the stuff.

I just checked those commits. 420 and 421 only made tweaks to some
simulator code and nothing that could possibly affect the DataChanged
functionality. =\

I went through the archive. There is some possibility that 446 could
have done it because it was a buddy of the misguided 447 changeset.

If it was before 419, I probably would have noticed this bug myself...
Please keep hunting.

It feels like the bug would be in Canvas or in the Document class
heirarchy. Basically the code that connects the UI to the component
properties...


Bugs with displaying current should be debuged directly. Please don't
consider reverting to the previous current code. The new bugs are
definitely preferable to the old ones! =P


--
New president: Here we go again...
Chemistry.com: A total rip-off.
Powers are not rights.


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Ktechlab-devel mailing list
Ktechlab-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/ktechlab-devel

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Ktechlab-devel mailing list
Ktechlab-devel@...
https://lists.sourceforge.net/lists/listinfo/ktechlab-devel
Alan Grimes | 1 Oct 2009 20:45
Favicon

Bug fixed

santiago gonzalez wrote:
> Confirmed... the bug was introduced in rev 221.
> this time i compiled 220 and the bug is not there, re-downloaded rev 221
> and compiled... and the bug appear.

Unsurprisingly, my 3AM diagnosis was completely and utterly wrong. =(

There was an ungodly conditional at elementSet::doLinear.

The code that was in place was bailing if either the matrix or the
vector was unchanged... That was wrong, because the other could be
changed. I just posted a fixed version that will only bail if BOTH the
matrix and vector are unchanged.

Thanks very much for your efforts. You're currently our lead tester. ;)

--

-- 
New president: Here we go again...
Chemistry.com: A total rip-off.
Powers are not rights.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf

Gmane