DemoRunner crashes gnome-shell on manjaro

Moin,

I just tried to run the DemoRunner from JUCE v8.0.3 on linux66 manjaro GNOME, but it crashes my GNOME session:

...
Okt 25 19:24:36 manjarobox gnome-shell[5307]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x280000a
Okt 25 19:24:36 manjarobox gnome-shell[5307]: Received an X Window System error.
                                         This probably reflects a bug in the program.
                                         The error was 'BadWindow (invalid Window parameter)'.
                                           (Details: serial 25188 error_code 3 request_code 2 (core protocol) minor_code 0)
                                           (Note to programmers: normally, X errors are reported asynchronously;
                                            that is, you will receive the error a while after causing it.
                                            To debug your program, run it with the MUTTER_SYNC environment
                                            variable to change this behavior. You can then get a meaningful
                                            backtrace from your debugger if you break on the mtk_x_error() function.)
Okt 25 19:24:36 manjarobox gnome-shell[5307]: == Stack trace for context 0x564a4c8bf790 ==
Okt 25 19:24:36 manjarobox gnome-shell[5307]: #0   564a4c9a9898 i   resource:///org/gnome/shell/ui/init.js:21 (e69bb370bf0 @ 48)
...

If I comment out the call to the setIconImage method in the DemoTaskbarComponent constructor, the DemoRunner GUI app starts and everything seems to be fine:

Of course, this line cannot simply be deleted, but does anyone have any idea what the problem might be?

TIA & Cheers

I find it extremely interesting that although the GNOME session crashes (white error screen with the logout button), I can still view the open windows via the taskbar and the window switcher. I can also see the DemoRunner running.

I could not screenshot the GNOME snap screen, but here the debugger ran over the SetIconImage method. So either no exception is thrown, or it is caught somewhere?!

Does anyone know anything about this?

Btw. the GNOME error screen looks like this (not my screen, but similar image):

Okay, I’m kind of replying to my own thread :smile:

I found this issue in the JUCE git repo: [Bug]: [Ubuntu 24.04] SystemTrayIconComponent Crashes Desktop Session · Issue #1421 · juce-framework/JUCE · GitHub

And guess what, after disabling the AppIndicator and KStatusNotifierItem support, which was enabled on my system, the DemoRunner app starts :slight_smile:

But now the SystemTrayIcon is in the upper left corner of my desktop. That’s strange, isn’t it?