gnome46-rc x11/group.c:76:meta_group_new: assertion failed crash
After upgrading my laptop from Fedora 39 to Fedora 40 devel I am hitting the following crash about once per hour:
Mar 04 12:04:14 x1.localdomain gnome-shell[264229]: **
Mar 04 12:04:14 x1.localdomain gnome-shell[264229]: libmutter:ERROR:../src/x11/group.c:76:meta_group_new: assertion failed: (g_hash_table_lookup (x11_display->groups_by_leader, &group_leader) == NULL)
Mar 04 12:04:14 x1.localdomain gnome-shell[264229]: Bail out! libmutter:ERROR:../src/x11/group.c:76:meta_group_new: assertion failed: (g_hash_table_lookup (x11_display->groups_by_leader, &group_leader) == NULL)
I have downloaded and installed mutter + gnome-shell 46~rc-1 from koji and this still reproduces with this version.
Here is what I believe is the relevant part of the backtrace:
Module gnome-shell from rpm gnome-shell-46~rc-1.fc40.x86_64
Stack trace of thread 264229:
#0 0x00007ffb346ab184 __pthread_kill_implementation (libc.so.6 + 0x98184)
#1 0x00007ffb3465365e raise (libc.so.6 + 0x4065e)
#2 0x0000556ceca7dba6 dump_gjs_stack_on_signal_handler (gnome-shell + 0x3ba6)
#3 0x00007ffb34653710 __restore_rt (libc.so.6 + 0x40710)
#4 0x00007ffb346ab184 __pthread_kill_implementation (libc.so.6 + 0x98184)
#5 0x00007ffb3465365e raise (libc.so.6 + 0x4065e)
#6 0x00007ffb3463b902 abort (libc.so.6 + 0x28902)
#7 0x00007ffb34eaa0dc g_assertion_message.cold (libglib-2.0.so.0 + 0x200dc)
#8 0x00007ffb34f15fd7 g_assertion_message_expr (libglib-2.0.so.0 + 0x8bfd7)
#9 0x00007ffb3490a2dd meta_group_new (libmutter-14.so.0 + 0x10a2dd)
#10 0x00007ffb3492720f meta_window_x11_compute_group (libmutter-14.so.0 + 0x12720f)
#11 0x00007ffb349275ca meta_window_x11_set_transient_for (libmutter-14.so.0 + 0x1275ca)
#12 0x00007ffb348e92bd meta_window_set_transient_for (libmutter-14.so.0 + 0xe92bd)
#13 0x00007ffb34915d91 meta_window_reload_property_from_xwindow (libmutter-14.so.0 + 0x115d91)
#14 0x00007ffb349670fe meta_window_xwayland_process_property_notify (libmutter-14.so.0 + 0x1670fe)
#15 0x00007ffb3490aeb6 handle_other_xevent (libmutter-14.so.0 + 0x10aeb6)
#16 0x00007ffb3490fa1b xevent_func.lto_priv.0 (libmutter-14.so.0 + 0x10fa1b)
#17 0x00007ffb349133ea meta_x11_event_source_dispatch (libmutter-14.so.0 + 0x1133ea)
I would be happy to run with some extra debugging / do a local build with some extra debugging code added / give a possible fix a try.
The 2 X11 apps which I'm running at the time of the crash are:
-
hexchat, with minimize to tray set, combined with gnome-shell-extension-appindicator, so this uses a good old X11 tray icon and thus is a likely culprit for this crash.
-
thunderbird. I'm going to install thunderbird-wayland and run thunderbird in wayland mode from now on to try and rule out thunderbird being the X11 app crashing mutter.