| Steven Yi wrote:
> I've been trying to debug what is going on here with blue and the
> Csound API. It seem that after running a project a few times, after
> the project finishes rendering Csound crashes and it takes down blue
> with it. I'm not sure if I'm doing something wrong with using the API
> though. Currently, I'm creating a new Csound object for each render,
> and calling csound.Reset() after it is finished. The ksmps loop part
> of the code, then the Reset call is shown below. I tried also by
> using the CsoundCallbackWrapper and setting a YieldCallBack, but that
> didn't quite work. When the crash occurs, I do get an error log from
> Java and it seems that the error might be from PerformKsmps. I did
> try putting in a print out to system.err after the ksmps loop but
> before the Reset call and it did not show when Csound crashed.
>
Steven, this problem sounds suspiciously like the problem I've had (and
still have) with AVSynthesis. That program will run stably as long as I
don't render anything via the Csound side, but as soon as I render audio
the system is unstable. Sometimes it will continue to work without
troubles, but most of the time it's a safe bet that at some point AVS
will crash, and the only message I ever receive is a segfault from
Csound, usually with a Pt_stop message before the segfault. I work with
AVS much like you might in blue, i.e. I'm calling and recalling Csound
performance many times during a session. At some point it appears that
Csound simply gives up the ghost, but I don't really know why yet.
Btw, I can look into the AVS sources now, I'll see if the Csound code is
similar to your examples. And as Michael G indicates, this problem
appears to cause no troubles on Windows. I should also note that I've
seen the same behaviour with Rubato when I've run its Csound rubettes,
i.e. the system becomes unstable and prone to wild segfaults.
Best,
dp
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |