You can set the callbacks or set the -d flag to control this, by the way, so you don't get crashes.

Victor
On 31 May 2011, at 13:36, Alex Weiss wrote:

Even though I'm not a csound developer, I like the suggestion of making ASCII graphs or no graphs the default, as the default FLTK display also crashes Cocoa hosts (reentrancy issues aside).

Alex

On Tue, May 31, 2011 at 2:32 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Hi everyone,

I've spent yesterday afternoon, then late into the night and tomorrow
morning trying to fix a reentrancy issue with FLTK graphs.
There was a static variable still remaining in the FLTK graph code,
which I have now removed and committed to GIT. However, problems still
exist.

It appears that if we run a second compilation on an existing, reset/
cleaned up, instance, a FLTK method call seems to mess up the
memory and we get a crash.


I isolated one call that does that (other calls might also do the
same, I have not checked all the possibilities). Line 292 of InOut/
FL_graph.cpp:

ST(form)->show();

After this call, the pointers to ST(form) (the main window) and other
graph widgets on that window get screwed up. Next time code tries
access it,
we get a crash. This happens on the second compilation of an existing
instance. If we destroy the instance and compile again on a new
instance,
all is well. This has been discovered on OSX.

Since this is in FLTK library code, there is nothing we can do.  I am
wondering whether we should make "no graphs" or even "ascii graphs"  as
defaults instead of FLTK, so we can sidestep this problem for the
moment.

Any other suggestions?

Regards

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie