Also affects Ubuntu 24.04 (Noble) with mutter 46.2-1ubuntu0.24.04.18 / gnome-shell 46.0-0ubuntu6~24.04.18 (latest in noble-updates). Three identical crashes in two days, always when connecting an external monitor (Dell S2725QS 4K over HDMI, Intel Arrow Lake-P iGPU, Wayland session). The session dies and returns to GDM.
The trigger in my case is the Desktop Icons NG extension ([email protected], 46+really47.0.9-1ubuntu5): on monitor hotplug it recreates its "Desktop Icons 1" window and calls xdg_toplevel.set_maximized on it, which forces placement while the pointer's current logical monitor is NULL: ``` Program terminated with signal SIGSEGV, Segmentation fault. #6 meta_window_place (window=0x64e678ddd4e0 [MetaWindowWayland]) at ../src/core/place.c:967 #7 place_window_if_needed (window=...) at ../src/core/constraints.c:574 #8 meta_window_constrain (... flags=(META_MOVE_RESIZE_MOVE_ACTION | META_MOVE_RESIZE_RESIZE_ACTION | META_MOVE_RESIZE_FORCE_MOVE | META_MOVE_RESIZE_CONSTRAIN), ...) #9 meta_window_move_resize_internal (...) #10 meta_window_force_placement (force_move=1, window=...) at ../src/core/window.c:2113 #12 xdg_toplevel_set_maximized (...) at ../src/wayland/meta-wayland-xdg-shell.c:474 #16 wl_closure_invoke (...) #18 wl_event_loop_dispatch (...) (gdb) frame 6 => mov 0x1c(%r12),%eax ; r12 = 0x0 (gdb) p logical_monitor $1 = 0x0 (gdb) p &((MetaLogicalMonitor*)0)->rect.x $2 = (int *) 0x1c (gdb) p window->title $3 = "Desktop Icons 1" ``` So it is the NULL dereference of `logical_monitor->rect.x` right after `logical_monitor = meta_backend_get_current_logical_monitor (backend);` in meta_window_place() (upstream 46.2 place.c:963; 967 in the Ubuntu build). The DING window is undecorated, so the earlier meta_window_get_work_area_for_logical_monitor() call is skipped and the crash happens at the rect.x read instead of the assertion seen in the original report — same root cause. Upstream fixed this in commit 785a83ae ("core/place: Guarantee we never get work area for a NULL logical monitor", MR !4549, first released in 49.0), which falls back to the primary logical monitor and bails out if there is none: https://gitlab.gnome.org/GNOME/mutter/-/commit/785a83ae3a2cc7b58a3252e31d628315bbf8c901 Could this be backported to noble as an SRU? The same NULL check looks straightforward to port to 46.x's meta_window_place(). Workaround meanwhile: disable the Desktop Icons extension (`gnome-extensions disable [email protected]`). Crash dates: 2026-12-02 10:21, 2026-12-02 16:27, 2026-12-03 09:01 (all SIGSEGV, same frame, same window title). One of them was already sent through whoopsie/apport. ** Attachment added: "reporte-bug-mutter-backtrace.txt" https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/2117277/+attachment/6023056/+files/reporte-bug-mutter-backtrace.txt -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to mutter in Ubuntu. https://bugs.launchpad.net/bugs/2117277 Title: gnome-shell crash on unplugging external monitor – meta_window_get_work_area_for_logical_monitor assertion To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/2117277/+subscriptions -- desktop-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
