Csound Csound-dev Csound-tekno Search About

Re: csoundapi~ crashes Pd

Date2007-07-31 19:44
FromVictor Lazzarini
SubjectRe: csoundapi~ crashes Pd
There is a bug I identified a couple of weeks ago
with the error messaging system, which used
to crash PD; I fixed it in CVS and it
will be there in the next release. I think if you
do not use the message output (message 0) it might not
crash.

I think this is probably what is going wrong, although
I can't check your patch (I am not at the office).

Victor

>
>
> Hi.
> I create a simple patch with a dac~ and a csoundapi~ and
> connect the left outlet/inlet.  When I turn on Pd audio
> processing, Pd disappears and I see some messages (using
> the -stderr flag). I have both jackd and pd set up for
> realtime, and at pretty high priorities from the scripts I
> use to start them.  My audio IRQ is higher than jack,
> which is higher than pd, which is higher than pd-gui.  Pd
> works fine for other patches.
>
> I compiled Csound5.06 on Linux, once with a bunch of
> options and once with just csoundapi~, replacing the first
> one.
>
> Does this look like something for the Pd list?  Csound is
> saying segmentation fault...  My csd file is at
> http://www.badmuthahubbard.com/apitest.csd
> Below is my Pd output while loading the .csd first and
> then turning on audio.  Btw, it doesn't crash if I just
> put the csoundapi~ and dac~ objects in and turn on audio;
> only when they are connected.
>
> Thanks.
> -Chuckk
>
> -----------------------------------------
> csoundapi~ 1.01
>  A PD csound class using the Csound 5.06.2 API
> (c) V Lazzarini, 2005-2007
>
> Localisation of messages is disabled, using default
> language. time resolution is 1000.000 ns
> /home/chuckk/apitest.csd
> /home/chuckk/apitest.csd
> 0dBFS level = 32768.0
> Csound version 5.06 beta (float samples) Jul 18 2007
> libsndfile-1.0.17
> UnifiedCSD:  /home/chuckk/apitest.csd
> STARTING FILE
> Creating orchestra
> Creating score
> orchname:  /tmp/filex9OWtg.orc
> scorename: /tmp/filejlUP5v.sco
> orch compiler:
> 17 lines read
>
> instr
> 11
>
> Elapsed time at end of orchestra compile: real: 0.002s,
> CPU: 0.000s sorting score ...
>         ... done
> Elapsed time at end of score sort: real: 0.003s, CPU:
> 0.000s Csound version 5.06 beta (float samples) Jul 18
> 2007 displays suppressed
> 0dBFS level = 32768.0
> orch now loaded
> audio buffered in 256 sample-frame blocks
> SECTION 1:
> Csound tidy up: Segmentation fault
> inactive allocs returned to freespace
> end of score.              overall amps
>       0.
>       0.
>
>            overall samples out of range
>
>
>
> 0 errors in performance
> Elapsed time at end of performance: real: 11.255s, CPU:
> 0.410s Removing temporary file /tmp/file6b2OHL.srt ...
> Removing temporary file /tmp/filejlUP5v.sco ...
> Removing temporary file /tmp/filex9OWtg.orc ...
> socket receive error: Connection reset by peer (104)
> subgraph starting at pure_data_0 timed out
> (subgraph_wait_fd=7, status = 0, state = Triggered)
>
>
>
>
> --
> http://www.badmuthahubbard.com
>

Date2007-08-01 18:02
From"Chuckk Hubbard"
SubjectRe: csoundapi~ crashes Pd
AttachmentsNone  None