[Cs-dev] noFLTKThreads=1 on OSX
| Date | 2005-11-30 10:57 |
| From | Simon Schampijer |
| Subject | [Cs-dev] noFLTKThreads=1 on OSX |
Hi,
I do have some trouble with FLTK here on OSX.
I need to compile csound with the noFLTKThreads
set to 1 to not end up with occasionally seg faults and
bus errors running simple examples like fl.csd.
When I try to run my visualisation opcodes (built as a plugin
opcodes and arranged in FLpanel) the FLTK
widget appears but mx widget can't be updated
and I see the osx typic spinning rainbow wheel.
Compiling with noFLTKThreads set to 0 my opcodes
work.
How do I get them to work if FLTK doesn't use
a seperate thread?
Is this related to the csoundModule* functions which
were added to widgets.cpp?
What are they for?
Any hints would be highly appreciated,
Thanks Simon
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |
| Date | 2005-11-30 11:06 |
| From | Victor Lazzarini |
| Subject | Re: [Cs-dev] noFLTKThreads=1 on OSX |
You might need to insert some Fl:wait() calls in your code, perhaps. Look at widgets.cpp under the #ifdef NO_FLTKTHREADS. Or you might have to set a csoundYield callback. Victor At 10:57 30/11/2005, you wrote: >Hi, >I do have some trouble with FLTK here on OSX. >I need to compile csound with the noFLTKThreads >set to 1 to not end up with occasionally seg faults and >bus errors running simple examples like fl.csd. >When I try to run my visualisation opcodes (built as a plugin >opcodes and arranged in FLpanel) the FLTK >widget appears but mx widget can't be updated >and I see the osx typic spinning rainbow wheel. >Compiling with noFLTKThreads set to 0 my opcodes >work. >How do I get them to work if FLTK doesn't use >a seperate thread? >Is this related to the csoundModule* functions which >were added to widgets.cpp? >What are they for? > >Any hints would be highly appreciated, > > Thanks Simon > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
| Date | 2005-11-30 11:10 |
| From | Istvan Varga |
| Subject | Re: [Cs-dev] noFLTKThreads=1 on OSX |
| Attachments | None |
| Date | 2005-11-30 17:41 |
| From | Simon Schampijer |
| Subject | Re: [Cs-dev] noFLTKThreads=1 on OSX |
Hi Victor,
I had a look into widgets.cpp. But I am not really clear
what Fl::wait() and the YieldCallback are doing.
I tried a few things, but had not the desired result. Maybe
we will find the time to chat about it this week-end.
Thanks
Simon
Victor Lazzarini schrieb:
> You might need to insert some Fl:wait() calls in your code, perhaps.
> Look at widgets.cpp under the #ifdef NO_FLTKTHREADS. Or you
> might have to set a csoundYield callback.
>
> Victor
>
> At 10:57 30/11/2005, you wrote:
>
>> Hi,
>> I do have some trouble with FLTK here on OSX.
>> I need to compile csound with the noFLTKThreads
>> set to 1 to not end up with occasionally seg faults and
>> bus errors running simple examples like fl.csd.
>> When I try to run my visualisation opcodes (built as a plugin
>> opcodes and arranged in FLpanel) the FLTK
>> widget appears but mx widget can't be updated
>> and I see the osx typic spinning rainbow wheel.
>> Compiling with noFLTKThreads set to 0 my opcodes
>> work.
>> How do I get them to work if FLTK doesn't use
>> a seperate thread?
>> Is this related to the csoundModule* functions which
>> were added to widgets.cpp?
>> What are they for?
>>
>> Any hints would be highly appreciated,
>>
>> Thanks Simon
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc. Do you grep through
>> log files
>> for problems? Stop! Download the new AJAX search engine that makes
>> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
>> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> Victor Lazzarini
> Music Technology Laboratory
> Music Department
> National University of Ireland, Maynooth
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |
| Date | 2005-11-30 17:46 |
| From | Simon Schampijer |
| Subject | Re: [Cs-dev] noFLTKThreads=1 on OSX |
Istvan Varga schrieb:
>On Wednesday 30 November 2005 11:57, Simon Schampijer wrote:
>
>
>
>>I do have some trouble with FLTK here on OSX.
>>I need to compile csound with the noFLTKThreads
>>set to 1 to not end up with occasionally seg faults and
>>bus errors running simple examples like fl.csd.
>>When I try to run my visualisation opcodes (built as a plugin
>>opcodes and arranged in FLpanel) the FLTK
>>widget appears but mx widget can't be updated
>>and I see the osx typic spinning rainbow wheel.
>>Compiling with noFLTKThreads set to 0 my opcodes
>>work.
>>How do I get them to work if FLTK doesn't use
>>a seperate thread?
>>Is this related to the csoundModule* functions which
>>were added to widgets.cpp?
>>What are they for?
>>
>>
>
>Those were added a long time ago. However, if CVS sources
>from a few days ago work with noFLTKThreads=1 then it is
>possible that the changes done yesterday for fixing a hang
>that occured on creating any (non-FLTK) threads, and making
>it possible to use an FLTK compiled without --enable-threads
>introduced the problem. Of course, it works fine on Linux
>either way, so it is again a Mac-specific issue about which
>I do not have much idea, not having access to such system.
>
>
>
>
Hi Istvan,
like victor was saying it should work also on OSX by now.
Must be something in my code...
Thanks
Simon
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |