Demorunner crashes on Ubuntu 24.04 LTS

Hi!

Just wanted to report this one; It seems the latest JUCE 8.0.8 release has some major issue going on in Ubuntu 24.04 LTS. I tried both cloning from the repo and building the Demorunner app, as well as running the pre-built binary; both act the same. I tried this also on a vm as well as a real laptop, and with these setups Demorunner crashes on Ubuntu 24.04 LTS. And not just only crashes the app, it actually crashes the entire operating system, giving this error:

“A problem has occured and the system can’t recover. Please log out and try again.”

Also WebViewPluginDemoGUI does not work. It builds but when the plugin is scanned in Reaper for example, it fails. I followed the process how to build it with npm and the plugin did work in Windows 10.

Well it seems every single release version I try acts the same. I’ll debug and let you know what is going on…

Thanks for reporting. That sounds very similar to the issue discussed here:

…and followed up here:

The problem is related to the system tray icon. The JUCE-created icon is doing something that ends up crashing the desktop session. I think there are likely problems on both the JUCE and Gnome sides - JUCE is doing something unexpected, and Gnome fails to handle this gracefully and crashes. Unfortunately it’s challenging to debug this on the JUCE side to search for workarounds because of the nature of the crash. I was planning to revisit the issue once Gnome was made more robust to this behaviour, but unfortunately the main issue is still open on the Gnome side:

Interesting! Thanks for the information. I built the extras/AudioPluginHost and that works ok. I wonder what’s going on… :thinking:

I tried to debug the DemoRunner and yup, it didn’t catch the crash, didn’t break, but the system crashed anyway.

I also tried WayLand and X11 sessions and both crashed. Then I tried with openSUSE KDE and there it worked so yeah, sounds like a probable Gnome issue.

For now, if you just want to test out the DemoRunner, you could try commenting out the line

taskbarIcon.reset (new DemoTaskbarComponent());

At the end of the MainAppWindow constructor in the DemoRunner’s Main.cpp. This should allow you to run the app, though without any system tray icon.