JACK and carla, corruption and crash
Pipewire 0.3.36, Arch Linux Linux ext 5.13.16-lqx2-1-lqx #1 ZEN SMP PREEMPT Mon, 13 Sep 2021 23:42:33 +0000 x86_64 GNU/Linux
Running a synth, and optionally some other plugins, in the Carla plugin host, under Pipewire's JACK engine, it will play for a short moment (say 30 seconds) and it will crash.
Affected synths are ZynAddSubFx, Surge; the latter seems to make the crash happen sooner.
Reproduction
- run Carla, add the plugins Surge and Spectacle-analyzer
- connect MIDI input to Surge
- connect Surge's stereo outs to playback, and to Spectacle-analyzer input
- play the keys a moment
On the CLI, an assertion gets triggered regarding the buffer sizes.
JUCE Assertion failure in juce_AudioSampleBuffer.h:933
Location of said assertion https://github.com/falkTX/Carla/blob/d8fcba6fad81412ab160421ab463aab1fd54b566/source/modules/juce_audio_basics/buffers/juce_AudioSampleBuffer.h#L933
Log file with debug enabled carla.txt