Bug: opening GUI triggers LeakCounter assertion on Linux

This is a regression I’ve bisected to this commit:

It’s present starting in JUCE 8.0.9. In Bitwig 4.2.2 I get the following backtrace (from JUCE 8.0.10) when launching my webview-based plugin’s GUI. If I do not open the GUI, the plugin functions normally:

[libc.so.6] kill 0x000077c590c3e74b
[Metastring.so] juce::LeakedObjectDetector::LeakCounter::~LeakCounter juce_LeakedObjectDetector.h:104
[Metastring.so] juce::XEmbedComponent::Pimpl::componentMovedOrResized juce_XEmbedComponent_linux.cpp:387
[Metastring.so] juce::XEmbedComponent::Pimpl::peerChanged juce_XEmbedComponent_linux.cpp:563
[Metastring.so] $_0::operator()(juce::ComponentListener &) const juce_Component.cpp:1413
[Metastring.so] juce::ListenerList::callCheckedExcluding<…>(juce::ComponentListener *, const juce::Component::BailOutChecker &, $_0 &&) juce_ListenerList.h:273
[Metastring.so] juce::ListenerList::callChecked<…>(const juce::Component::BailOutChecker &, $_0 &&) juce_ListenerList.h:217
[Metastring.so] juce::Component::internalHierarchyChanged juce_Component.cpp:1413
[Metastring.so] juce::Component::internalHierarchyChanged juce_Component.cpp:1420
[Metastring.so] juce::Component::internalHierarchyChanged juce_Component.cpp:1420
[Metastring.so] juce::Component::internalHierarchyChanged juce_Component.cpp:1420
[Metastring.so] juce::Component::addToDesktop juce_Component.cpp:509
[Metastring.so] juce::JuceVST3EditController::JuceVST3Editor::attached juce_audio_plugin_client_VST3.cpp:2012

As an aside, it looks like this commit (if it didn’t crash the plugin!) would resolve my previous report: Linux webview helper spins CPU when plugin crashes

We’ve released a revert of said commit on develop

We’ll take a look at the other report.

1 Like

The revert fixes it for me. Thank you!