supercollider / sc3-plugins

Community plugins for SuperCollider
https://supercollider.github.io/sc3-plugins/
GNU General Public License v2.0
458 stars 122 forks source link

Concat/Concat2 UGens segfault (large storesize) #369

Open pistil-pestle opened 10 months ago

pistil-pestle commented 10 months ago

Possibly related to https://github.com/supercollider/sc3-plugins/issues/110

I'm on a OS X 11.4 (Big Sur), 8GB RAM, running SC SuperCollider 3.13.0 with the same (most recent) version of sc3-plugins.

I've noticed a reproducible issue where running the Concat or Concat2 UGens with large sample buffer sizes (storesize) causes scsynth to crash with EXC_BAD_ACCESS (SIGSEGV). This can occur with a single Concat2 instance with a large storesize, or multiple instances where the storesize is above some threshold. The threshold that causes a crash appears to depend on other factors (in particular what I'm using for Concat2's control and source, e.g. a buffer vs. something like a noise UGen).

On my machine, for example, attempting to run two Concat2 instances each with storesize > 12.0 using buffers read from files for control and source on both causes a crash.

I'd be happy to share code snippets or a full Console crash log if it would be helpful.