shell crash at meta_wayland_surface_get_window after closing games windows
Affected version
Provide at least the following information:
- Your OS and version: Fedora 40
- Affected GNOME Shell version:
gnome-shell-46~rc-1.fc40.x86_64
- Does this issue appear in XOrg and/or Wayland: Wayland, Xorg not tested
- Does this issue happen without extensions (please follow instructions below): Yes
Bug summary
Gnome-shell crashes when closing certain games with the X button. I can reproduce this consistently with Frozen Bubble, Neverball, SuperTux Kart. It crashes the desktop only if you close the window using a mouse. Closing the game via Alt+F4 works fine. I don't see this problem with GNOME Mines and AisleRiot Solitaire.
Steps to reproduce
- Start Frozen Bubble
- Close it with the X button in the titlebar
- Session crashes
Relevant logs, screenshots, screencasts etc.
Truncated backtrace:
Thread no. 1 (34 frames)
#0 meta_wayland_surface_get_window at ../src/wayland/meta-wayland-surface.c:2065
#1 repick_for_event at ../src/wayland/meta-wayland-pointer.c:606
#2 meta_wayland_pointer_update at ../src/wayland/meta-wayland-pointer.c:639
#3 meta_wayland_seat_update at ../src/wayland/meta-wayland-seat.c:441
#5 meta_wayland_compositor_update at ../src/wayland/meta-wayland.c:399
#6 meta_display_handle_event at ../src/core/events.c:297
#7 event_callback at ../src/core/events.c:497
#8 _clutter_event_process_filters at ../clutter/clutter/clutter-event.c:1281
#9 clutter_stage_handle_event at ../clutter/clutter/clutter-main.c:557
#10 dispatch_clutter_event at ../src/backends/meta-backend.c:1133
#11 clutter_source_dispatch at ../src/backends/meta-backend.c:1177
#13 g_main_context_dispatch_unlocked at ../glib/gmain.c:4152
#14 g_main_context_iterate_unlocked.isra.0 at ../glib/gmain.c:4217
#16 meta_context_run_main_loop at ../src/core/meta-context.c:523
#17 ffi_call_unix64 at ../src/x86/unix64.S:104
#18 ffi_call_int at ../src/x86/ffi64.c:673
#19 ffi_call at ../src/x86/ffi64.c:710
#20 Gjs::Function::invoke at ../gi/function.cpp:1052
#21 Gjs::Function::call at ../gi/function.cpp:1229
#22 CallJSNative at /usr/src/debug/mozjs115-115.7.0-1.fc40.x86_64/vm/Interpreter.cpp:486
#23 js::InternalCallOrConstruct at /usr/src/debug/mozjs115-115.7.0-1.fc40.x86_64/vm/Interpreter.cpp:566
#24 InternalCall at /usr/src/debug/mozjs115-115.7.0-1.fc40.x86_64/vm/Interpreter.cpp:647
#25 js::CallFromStack at /usr/src/debug/mozjs115-115.7.0-1.fc40.x86_64/vm/Interpreter.cpp:652
#26 js::Interpret at /usr/src/debug/mozjs115-115.7.0-1.fc40.x86_64/vm/Interpreter.cpp:3395
#27 MaybeEnterInterpreterTrampoline at /usr/src/debug/mozjs115-115.7.0-1.fc40.x86_64/vm/Interpreter.cpp:400
#28 js::RunScript at /usr/src/debug/mozjs115-115.7.0-1.fc40.x86_64/vm/Interpreter.cpp:458
#29 js::InternalCallOrConstruct at /usr/src/debug/mozjs115-115.7.0-1.fc40.x86_64/vm/Interpreter.cpp:612
#30 InternalCall at /usr/src/debug/mozjs115-115.7.0-1.fc40.x86_64/vm/Interpreter.cpp:647
#31 js::Call at /usr/src/debug/mozjs115-115.7.0-1.fc40.x86_64/vm/Interpreter.cpp:679
#32 JS::Call at /usr/src/debug/mozjs115-115.7.0-1.fc40.x86_64/vm/CallAndConstruct.cpp:117
#34 GjsContextPrivate::run_main_loop_hook at ../gjs/context.cpp:1434
#35 GjsContextPrivate::eval_module at ../gjs/context.cpp:1551
#36 gjs_context_eval_module at ../gjs/context.cpp:1330
#37 gjs_context_eval_module_file at ../gjs/context.cpp:1635
Full backtrace:
https://bugzilla-attachments.redhat.com/attachment.cgi?id=2021129
Downstream Fedora bug with more details:
https://bugzilla.redhat.com/show_bug.cgi?id=2268998
Edited by Kamil Páral