Public bug reported:

While unplugging an external monitor (HDMI), GNOME Shell crashed
immediately. The session was terminated and returned to the login
screen.

I am running Ubuntu 25.04 with GNOME Shell 48.0 and Mutter 48.1 under
Wayland. This issue seems related to monitor hotplug or logical monitor
handling.

In my case, the crash most frequently occurs while a YouTube video is
playing in Google Chrome. However, it is very rare overall and difficult
to reproduce consistently. Unplugging the monitor during video playback
seems to trigger the bug more reliably.

similar issue:
https://gitlab.gnome.org/GNOME/mutter/-/issues/3402

lip 18 16:11:26 F2A gnome-shell[3582]: 
meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) 
number < g_list_length (manager->logical_monitors)' failed
lip 18 16:11:26 F2A gnome-shell[3582]: 
meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' 
failed
lip 18 16:11:26 F2A gnome-shell[3582]: 
meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) 
number < g_list_length (manager->logical_monitors)' failed
lip 18 16:11:26 F2A gnome-shell[3582]: 
meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' 
failed
lip 18 16:11:26 F2A gnome-shell[3582]: meta_display_get_monitor_in_fullscreen: 
assertion 'monitor >= 0 && monitor < n_logical_monitors' failed
lip 18 16:11:26 F2A gnome-shell[3582]: 
meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) 
number < g_list_length (manager->logical_monitors)' failed
lip 18 16:11:26 F2A gnome-shell[3582]: 
meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' 
failed
lip 18 16:11:26 F2A gnome-shell[3582]: **
lip 18 16:11:26 F2A gnome-shell[3582]: 
libmutter:ERROR:../src/core/window.c:5986:meta_window_get_work_area_for_logical_monitor:
 assertion failed: (logical_monitor)
lip 18 16:11:26 F2A gnome-shell[3582]: Bail out! 
libmutter:ERROR:../src/core/window.c:5986:meta_window_get_work_area_for_logical_monitor:
 assertion failed: (logical_monitor)
lip 18 16:11:26 F2A gnome-shell[3582]: GNOME Shell crashed with signal 6
lip 18 16:11:26 F2A gnome-shell[3582]: == Stack trace for context 
0x65310685c930 ==
lip 18 16:11:26 F2A gnome-shell[3582]: #0   6531069518f8 i   
resource:///org/gnome/shell/ui/init.js:21 (65af8270c90 @ 48)
lip 18 16:11:26 F2A systemd-coredump[2170777]: Process 3582 (gnome-shell) of 
user 1000 terminated abnormally with signal 6/ABRT, processing...
lip 18 16:11:26 F2A systemd[1]: Started systemd-coredump@19-2170777-0.service - 
Process Core Dump (PID 2170777/UID 0).
lip 18 16:11:27 F2A systemd-coredump[2170778]: Process 3582 (gnome-shell) of 
user 1000 dumped core.

ProblemType: Bug
DistroRelease: Ubuntu 25.04
Package: gnome-shell 48.0-1ubuntu1
ProcVersionSignature: Ubuntu 6.14.0-23.23-generic 6.14.5
Uname: Linux 6.14.0-23-generic x86_64
ApportVersion: 2.32.0-0ubuntu5.3
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Fri Jul 18 18:41:11 2025
DisplayManager: gdm3
InstallationDate: Installed on 2025-07-01 (17 days ago)
InstallationMedia: Ubuntu 25.04 "Plucky Puffin" - Release amd64 (20250415.3)
ProcEnviron:
 LANG=pl_PL.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions: mutter-common 48.1-1ubuntu3.1
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: gnome-shell (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug plucky wayland-session

-- 
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/gnome-shell/+bug/2117277/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to