jpcima / ADLplug

FM Chip Synthesizer — OPL & OPN — VST/LV2/Standalone
Boost Software License 1.0
446 stars 23 forks source link

crash with Qtractor host #21

Open jpcima opened 6 years ago

jpcima commented 6 years ago

report by @trebmuh and confirmed to happen, needs debugging

When the plugin (or UI?) is switched on and off many times, it can produce a segfault in Qtractor.

jpcima commented 6 years ago

A backtrace pointed at the code juce_LV2_Wrapper.cpp:1501 This could be an error on the host side, possibly a race condition of some kind. (maybe also why it's difficult to reproduce)

It would suggest the processor runs after its deletion.

channels[i] = portAudioOuts[i];

https://github.com/jpcima/JUCE/blob/7f4d9aacc7f7ff1bcbe0e3142e099714304a7771/modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp#L1501