|
Is there a limit to the number of variables allowed in one single instrument ?
Or in one single orchestra ?
I keep running into this problem once in a while,
if I define a macro containing several lines of code,
then calling this macro several times.
I run into problems. Csound crashes after parsing the orchestra, during the "new alloc for instr x" phase.
The resulting instrument might contain something like 200 lines of code,
macros expanded.
It sometimes help if I split the code into several different instruments,
or, it might help if I delete another (!), nonrelated instrument.
I do not know if it is related to the overall size of the orchestra,
the overall size of the instrument, or something else entirely.
I know this is a lousy bug report, as I can not provide a simple test orchestra.
But every time I cut down the orchestra to make the error stand out alone,
the error vanishes. And beleive me, I've tried. Sometimes it might work if I delete one half of the orchestra, so I could beleive that the error was in the other half of my code.
But the other half of my code also runs perfectly when I leave out the first half.
stunned and a bit frustrated,
just wanted to ask if anyone has a bright idea on how to pin down the bug.
The bug appears in CsoundAV0.43 (csound4.19),
I have been unable to recreate the bug in csound 5 because the initialization error in csound 5 makes it skip a whole lot of orchestra i-statement anyway.
So I do not know if this is something that has actually been fixed since 4.19
best,
Oeyvind
|