JUCE icon indicating copy to clipboard operation
JUCE copied to clipboard

VST3 Client: Enforce that setActive is called before process

Open Speechrezz opened this issue 2 years ago • 0 comments
trafficstars

Opening some JUCE VST3s in FL Studio's patcher can cause crashes because process() may be called before setActive() (likely due to race condition in FL Studio).

This workaround adds an std::atomic<bool> flag which prevents process() from proceeding unless setActive() sets the flag to true.

Link to original issue: https://github.com/juce-framework/JUCE/issues/1193

Speechrezz avatar Feb 08 '23 18:02 Speechrezz