A plain return when logical_monitor is not found actually worked — GNOME Shell no longer crashes. However, it causes the cursor to freeze briefly when triggering the issue.
I also added some logging to the meta_monitor_manager_get_logical_monitor_at and here’s what it shows: lip 27 22:52:14 F2A gnome-shell[84990]: [MUTTER DEBUG] Checking logical monitors for point (1851,000000, 23,000000) lip 27 22:52:14 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=0 y=555 width=1920 height=1080 lip 27 22:52:14 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=4480 y=0 width=1440 height=2560 lip 27 22:52:14 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=1920 y=683 width=2560 height=1600 lip 27 22:52:14 F2A gnome-shell[84990]: [MUTTER DEBUG] Checking logical monitors for point (1851,000000, 23,000000) lip 27 22:52:14 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=0 y=555 width=1920 height=1080 lip 27 22:52:14 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=4480 y=0 width=1440 height=2560 lip 27 22:52:14 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=1920 y=683 width=2560 height=1600 lip 27 22:52:14 F2A gnome-shell[84990]: [MUTTER DEBUG] Checking logical monitors for point (1920,000000, 23,000000) lip 27 22:52:14 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=0 y=555 width=1920 height=1080 lip 27 22:52:14 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=4480 y=0 width=1440 height=2560 lip 27 22:52:14 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=1920 y=683 width=2560 height=1600 lip 27 22:52:14 F2A gnome-shell[84990]: Can't update stage views actor unnamed [Gjs_ui_windowPreview_WindowPreview] is on because it needs an allocation. lip 27 22:52:14 F2A gnome-shell[84990]: Can't update stage views actor unnamed [ClutterActor] is on because it needs an allocation. lip 27 22:52:14 F2A gnome-shell[84990]: Can't update stage views actor unnamed [ClutterClone] is on because it needs an allocation. lip 27 22:52:14 F2A gnome-shell[84990]: Can't update stage views actor unnamed [StIcon] is on because it needs an allocation. lip 27 22:52:14 F2A gnome-shell[84990]: Can't update stage views actor unnamed [ClutterActor] is on because it needs an allocation. lip 27 22:52:15 F2A gnome-shell[84990]: _st_create_shadow_pipeline_from_actor: assertion 'clutter_actor_has_allocation (actor)' failed lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Checking logical monitors for point (1920,000000, 23,352386) lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=0 y=555 width=1920 height=1080 lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=4480 y=0 width=1440 height=2560 lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=1920 y=683 width=2560 height=1600 lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Checking logical monitors for point (1920,000000, 23,352386) lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=0 y=555 width=1920 height=1080 lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=4480 y=0 width=1440 height=2560 lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=1920 y=683 width=2560 height=1600 lip 27 22:52:15 F2A gnome-shell[84990]: ASSERTION WORKAROUND: NO LOGICAL MONITORS AT ALL lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Checking logical monitors for point (1920,000000, 23,352386) lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=0 y=555 width=1920 height=1080 lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=4480 y=0 width=1440 height=2560 lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=1920 y=683 width=2560 height=1600 lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Checking logical monitors for point (1920,000000, 23,352386) lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=0 y=555 width=1920 height=1080 lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=4480 y=0 width=1440 height=2560 lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=1920 y=683 width=2560 height=1600 lip 27 22:52:15 F2A gnome-shell[84990]: ASSERTION WORKAROUND: NO LOGICAL MONITORS AT ALL lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Checking logical monitors for point (1920,000000, 23,352386) lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=0 y=555 width=1920 height=1080 lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=4480 y=0 width=1440 height=2560 lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=1920 y=683 width=2560 height=1600 lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Checking logical monitors for point (1920,000000, 23,352386) lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=0 y=555 width=1920 height=1080 lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=4480 y=0 width=1440 height=2560 lip 27 22:52:15 F2A gnome-shell[84990]: [MUTTER DEBUG] Monitor: x=1920 y=683 width=2560 height=1600 lip 27 22:52:15 F2A gnome-shell[84990]: ASSERTION WORKAROUND: NO LOGICAL MONITORS AT ALL -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to 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 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs