Csound Csound-dev Csound-tekno Search About

[Cs-dev] Java Crashes

Date2014-10-15 23:29
FromRory Walsh
Subject[Cs-dev] Java Crashes
I've just being going over the posts from this thread:
http://csound.1045644.n5.nabble.com/Java-Crashes-td5730435.html
I was hoping it would help me solve some crashing I'm having here with
the Java interface, but to no avail. I'm calling Csound from
Processing, and I keep getting Csound segmentation faults? The output
from Processing is below. Note that it runs fine for a while, but then
just dies on me. I'm using the CsoundPerformanceThread class to start
the performance. And I'm sending events using the
perfThread.InputMessage(s) method. But I've removed all but the
instrument block, so I can't what is causing Csound to segfault? Btw,
I get the same results if I use jack or alsa.


On startup.....

STARTING FILE
Creating options
Creating orchestra
Creating score
rtaudio: ALSA module enabled
rtmidi: ALSA Raw MIDI module enabled
sorting score ...
    ... done
--Csound version 6.03.2 (double samples) Oct 16 2014
displays suppressed
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
ALSA: -B 1024 not allowed on this device; using 1881 instead
ALSA: -b 256 not allowed on this device; using 940 instead
writing 512 sample blks of 64-bit floats to dac
SECTION 1:


At the point it crashes....

Csound tidy up: Segmentation fault
inactive allocs returned to freespace
end of score.           overall amps:  0.94795  0.94795
       overall samples out of range:        0        0
0 errors in performance
3566 512 sample blks of 64-bit floats written to dac
Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help → Troubleshooting.

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://list

Date2014-10-15 23:37
FromRory Walsh
SubjectRe: [Cs-dev] Java Crashes
Solved (I think). I was forgetting:

csnd6.csoundInitialize(csnd6.CSOUNDINIT_NO_SIGNAL_HANDLER |
        csnd6.CSOUNDINIT_NO_ATEXIT);



On 16 October 2014 00:29, Rory Walsh  wrote:
> I've just being going over the posts from this thread:
> http://csound.1045644.n5.nabble.com/Java-Crashes-td5730435.html
> I was hoping it would help me solve some crashing I'm having here with
> the Java interface, but to no avail. I'm calling Csound from
> Processing, and I keep getting Csound segmentation faults? The output
> from Processing is below. Note that it runs fine for a while, but then
> just dies on me. I'm using the CsoundPerformanceThread class to start
> the performance. And I'm sending events using the
> perfThread.InputMessage(s) method. But I've removed all but the
> instrument block, so I can't what is causing Csound to segfault? Btw,
> I get the same results if I use jack or alsa.
>
>
> On startup.....
>
> STARTING FILE
> Creating options
> Creating orchestra
> Creating score
> rtaudio: ALSA module enabled
> rtmidi: ALSA Raw MIDI module enabled
> sorting score ...
>     ... done
> --Csound version 6.03.2 (double samples) Oct 16 2014
> displays suppressed
> 0dBFS level = 1.0
> orch now loaded
> audio buffered in 256 sample-frame blocks
> ALSA: -B 1024 not allowed on this device; using 1881 instead
> ALSA: -b 256 not allowed on this device; using 940 instead
> writing 512 sample blks of 64-bit floats to dac
> SECTION 1:
>
>
> At the point it crashes....
>
> Csound tidy up: Segmentation fault
> inactive allocs returned to freespace
> end of score.           overall amps:  0.94795  0.94795
>        overall samples out of range:        0        0
> 0 errors in performance
> 3566 512 sample blks of 64-bit floats written to dac
> Could not run the sketch (Target VM failed to initialize).
> For more information, read revisions.txt and Help → Troubleshooting.

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.s

Date2014-10-15 23:39
FromSteven Yi
SubjectRe: [Cs-dev] Java Crashes
I end up using that in my projects and it certainly helps.  There is
an on-going issue with Java I've been meaning to look at that involves
the message callback.  I *think* if there's a particularly large
amount of text sent through the callback, it will crash Java.  I have
a report from Jan Jacob with one of his pieces and Blue that is
crashing that is related to this.

On Wed, Oct 15, 2014 at 6:37 PM, Rory Walsh  wrote:
> Solved (I think). I was forgetting:
>
> csnd6.csoundInitialize(csnd6.CSOUNDINIT_NO_SIGNAL_HANDLER |
>         csnd6.CSOUNDINIT_NO_ATEXIT);
>
>
>
> On 16 October 2014 00:29, Rory Walsh  wrote:
>> I've just being going over the posts from this thread:
>> http://csound.1045644.n5.nabble.com/Java-Crashes-td5730435.html
>> I was hoping it would help me solve some crashing I'm having here with
>> the Java interface, but to no avail. I'm calling Csound from
>> Processing, and I keep getting Csound segmentation faults? The output
>> from Processing is below. Note that it runs fine for a while, but then
>> just dies on me. I'm using the CsoundPerformanceThread class to start
>> the performance. And I'm sending events using the
>> perfThread.InputMessage(s) method. But I've removed all but the
>> instrument block, so I can't what is causing Csound to segfault? Btw,
>> I get the same results if I use jack or alsa.
>>
>>
>> On startup.....
>>
>> STARTING FILE
>> Creating options
>> Creating orchestra
>> Creating score
>> rtaudio: ALSA module enabled
>> rtmidi: ALSA Raw MIDI module enabled
>> sorting score ...
>>     ... done
>> --Csound version 6.03.2 (double samples) Oct 16 2014
>> displays suppressed
>> 0dBFS level = 1.0
>> orch now loaded
>> audio buffered in 256 sample-frame blocks
>> ALSA: -B 1024 not allowed on this device; using 1881 instead
>> ALSA: -b 256 not allowed on this device; using 940 instead
>> writing 512 sample blks of 64-bit floats to dac
>> SECTION 1:
>>
>>
>> At the point it crashes....
>>
>> Csound tidy up: Segmentation fault
>> inactive allocs returned to freespace
>> end of score.           overall amps:  0.94795  0.94795
>>        overall samples out of range:        0        0
>> 0 errors in performance
>> 3566 512 sample blks of 64-bit floats written to dac
>> Could not run the sketch (Target VM failed to initialize).
>> For more information, read revisions.txt and Help → Troubleshooting.
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/

Date2014-10-15 23:43
FromRory Walsh
SubjectRe: [Cs-dev] Java Crashes
Thanks Steven. I've disabled the message callback. But that init code
seems to have helping a lot.

On 16 October 2014 00:39, Steven Yi  wrote:
> I end up using that in my projects and it certainly helps.  There is
> an on-going issue with Java I've been meaning to look at that involves
> the message callback.  I *think* if there's a particularly large
> amount of text sent through the callback, it will crash Java.  I have
> a report from Jan Jacob with one of his pieces and Blue that is
> crashing that is related to this.
>
> On Wed, Oct 15, 2014 at 6:37 PM, Rory Walsh  wrote:
>> Solved (I think). I was forgetting:
>>
>> csnd6.csoundInitialize(csnd6.CSOUNDINIT_NO_SIGNAL_HANDLER |
>>         csnd6.CSOUNDINIT_NO_ATEXIT);
>>
>>
>>
>> On 16 October 2014 00:29, Rory Walsh  wrote:
>>> I've just being going over the posts from this thread:
>>> http://csound.1045644.n5.nabble.com/Java-Crashes-td5730435.html
>>> I was hoping it would help me solve some crashing I'm having here with
>>> the Java interface, but to no avail. I'm calling Csound from
>>> Processing, and I keep getting Csound segmentation faults? The output
>>> from Processing is below. Note that it runs fine for a while, but then
>>> just dies on me. I'm using the CsoundPerformanceThread class to start
>>> the performance. And I'm sending events using the
>>> perfThread.InputMessage(s) method. But I've removed all but the
>>> instrument block, so I can't what is causing Csound to segfault? Btw,
>>> I get the same results if I use jack or alsa.
>>>
>>>
>>> On startup.....
>>>
>>> STARTING FILE
>>> Creating options
>>> Creating orchestra
>>> Creating score
>>> rtaudio: ALSA module enabled
>>> rtmidi: ALSA Raw MIDI module enabled
>>> sorting score ...
>>>     ... done
>>> --Csound version 6.03.2 (double samples) Oct 16 2014
>>> displays suppressed
>>> 0dBFS level = 1.0
>>> orch now loaded
>>> audio buffered in 256 sample-frame blocks
>>> ALSA: -B 1024 not allowed on this device; using 1881 instead
>>> ALSA: -b 256 not allowed on this device; using 940 instead
>>> writing 512 sample blks of 64-bit floats to dac
>>> SECTION 1:
>>>
>>>
>>> At the point it crashes....
>>>
>>> Csound tidy up: Segmentation fault
>>> inactive allocs returned to freespace
>>> end of score.           overall amps:  0.94795  0.94795
>>>        overall samples out of range:        0        0
>>> 0 errors in performance
>>> 3566 512 sample blks of 64-bit floats written to dac
>>> Could not run the sketch (Target VM failed to initialize).
>>> For more information, read revisions.txt and Help → Troubleshooting.
>>
>> ------------------------------------------------------------------------------
>> Comprehensive Server Monitoring with Site24x7.
>> Monitor 10 servers for $9/Month.
>> Get alerted through email, SMS, voice calls or mobile push notifications.
>> Take corrective actions from your mobile device.
>> http://p.sf.net/sfu/Zoho
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cso

Date2014-10-16 00:00
FromRory Walsh
SubjectRe: [Cs-dev] Java Crashes
helped even...
Some day they'll invent a grammar checker just for me :)

On 16 October 2014 00:43, Rory Walsh  wrote:
> Thanks Steven. I've disabled the message callback. But that init code
> seems to have helping a lot.
>
> On 16 October 2014 00:39, Steven Yi  wrote:
>> I end up using that in my projects and it certainly helps.  There is
>> an on-going issue with Java I've been meaning to look at that involves
>> the message callback.  I *think* if there's a particularly large
>> amount of text sent through the callback, it will crash Java.  I have
>> a report from Jan Jacob with one of his pieces and Blue that is
>> crashing that is related to this.
>>
>> On Wed, Oct 15, 2014 at 6:37 PM, Rory Walsh  wrote:
>>> Solved (I think). I was forgetting:
>>>
>>> csnd6.csoundInitialize(csnd6.CSOUNDINIT_NO_SIGNAL_HANDLER |
>>>         csnd6.CSOUNDINIT_NO_ATEXIT);
>>>
>>>
>>>
>>> On 16 October 2014 00:29, Rory Walsh  wrote:
>>>> I've just being going over the posts from this thread:
>>>> http://csound.1045644.n5.nabble.com/Java-Crashes-td5730435.html
>>>> I was hoping it would help me solve some crashing I'm having here with
>>>> the Java interface, but to no avail. I'm calling Csound from
>>>> Processing, and I keep getting Csound segmentation faults? The output
>>>> from Processing is below. Note that it runs fine for a while, but then
>>>> just dies on me. I'm using the CsoundPerformanceThread class to start
>>>> the performance. And I'm sending events using the
>>>> perfThread.InputMessage(s) method. But I've removed all but the
>>>> instrument block, so I can't what is causing Csound to segfault? Btw,
>>>> I get the same results if I use jack or alsa.
>>>>
>>>>
>>>> On startup.....
>>>>
>>>> STARTING FILE
>>>> Creating options
>>>> Creating orchestra
>>>> Creating score
>>>> rtaudio: ALSA module enabled
>>>> rtmidi: ALSA Raw MIDI module enabled
>>>> sorting score ...
>>>>     ... done
>>>> --Csound version 6.03.2 (double samples) Oct 16 2014
>>>> displays suppressed
>>>> 0dBFS level = 1.0
>>>> orch now loaded
>>>> audio buffered in 256 sample-frame blocks
>>>> ALSA: -B 1024 not allowed on this device; using 1881 instead
>>>> ALSA: -b 256 not allowed on this device; using 940 instead
>>>> writing 512 sample blks of 64-bit floats to dac
>>>> SECTION 1:
>>>>
>>>>
>>>> At the point it crashes....
>>>>
>>>> Csound tidy up: Segmentation fault
>>>> inactive allocs returned to freespace
>>>> end of score.           overall amps:  0.94795  0.94795
>>>>        overall samples out of range:        0        0
>>>> 0 errors in performance
>>>> 3566 512 sample blks of 64-bit floats written to dac
>>>> Could not run the sketch (Target VM failed to initialize).
>>>> For more information, read revisions.txt and Help → Troubleshooting.
>>>
>>> ------------------------------------------------------------------------------
>>> Comprehensive Server Monitoring with Site24x7.
>>> Monitor 10 servers for $9/Month.
>>> Get alerted through email, SMS, voice calls or mobile push notifications.
>>> Take corrective actions from your mobile device.
>>> http://p.sf.net/sfu/Zoho
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Comprehensive Server Monitoring with Site24x7.
>> Monitor 10 servers for $9/Month.
>> Get alerted through email, SMS, voice calls or mobile push notifications.
>> Take corrective actions from your mobile device.
>> http://p.sf.net/sfu/Zoho
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound