[Csnd] segfault with csoundCompileOrc, --realtime, and wgpluck2
Date | 2013-12-19 09:47 |
From | thorin kerr |
Subject | [Csnd] segfault with csoundCompileOrc, --realtime, and wgpluck2 |
I'm getting a "Csound tidy up: Segmentation fault" when using the csoundCompileOrc function, with --realtime mode set, whilst an instrument using the wgpluck2 opcode is running. OK, a little obscure, but here's a python example:
import time import csnd6 cs6 = csnd6.csoundCreate(None) csnd6.csoundSetOption(cs6, "-odac") csnd6.csoundSetOption(cs6, "--realtime") csnd6.csoundStart(cs6) csPerf = csnd6.CsoundPerformanceThread(cs6) csPerf.Play() orc = """ instr 10 apluck wgpluck2 0.4, 15000, 240, 0.75, 0.2
out apluck endin """ csnd6.csoundCompileOrc(cs6, orc) csPerf.InputMessage("i10 0 7 \n") time.sleep(5) csnd6.csoundCompileOrc(cs6, orc)
csPerf.InputMessage("i10 0 5 \n") Now... interesting observations: The fault disappears when i; use a different opcode instead of wgpluck2, or
remove the --realtime flag, or give the first instrument InputMessage a shorter duration (e.g. 3 seconds) so the compileOrc function doesn't evaluate while the previous score event is still running.
Anyone else getting this error as well? Thorin |