#0  __pthread_kill_implementation (threadid=<optimized out>, signo=6, no_tid=0) 
at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (threadid=<optimized out>, signo=6) at 
./nptl/pthread_kill.c:89
#2  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at 
./nptl/pthread_kill.c:100
#3  0x0000731b3be4579e in __GI_raise (sig=sig@entry=6) at 
../sysdeps/posix/raise.c:26
#4  0x0000571c64975c66 in dump_gjs_stack_on_signal_handler (signo=6) at 
../src/main.c:479
#5  <signal handler called>
#6  __pthread_kill_implementation (threadid=<optimized out>, signo=6, no_tid=0) 
at ./nptl/pthread_kill.c:44
#7  __pthread_kill_internal (threadid=<optimized out>, signo=6) at 
./nptl/pthread_kill.c:89
#8  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at 
./nptl/pthread_kill.c:100
#9  0x0000731b3be4579e in __GI_raise (sig=sig@entry=6) at 
../sysdeps/posix/raise.c:26
#10 0x0000731b3be288cd in __GI_abort () at ./stdlib/abort.c:73
#11 0x0000731b3c8c60ae in g_assertion_message 
(domain=domain@entry=0x731b3c422014 "libmutter", file=file@entry=0x731b3c42c74b 
"../src/core/window.c", line=line@entry=5986, 
    func=func@entry=0x731b3c45aba0 <__func__.15> 
"meta_window_get_work_area_for_logical_monitor", 
message=message@entry=0x571c983a2430 "assertion failed: (logical_monitor)")
    at ../../../glib/gtestutils.c:3459
#12 0x0000731b3c9461f7 in g_assertion_message_expr 
(domain=domain@entry=0x731b3c422014 "libmutter", file=file@entry=0x731b3c42c74b 
"../src/core/window.c", line=line@entry=5986, 
    func=func@entry=0x731b3c45aba0 <__func__.15> 
"meta_window_get_work_area_for_logical_monitor", expr=expr@entry=0x731b3c42cdea 
"logical_monitor") at ../../../glib/gtestutils.c:3485
#13 0x0000731b3c3236d9 in meta_window_get_work_area_for_logical_monitor 
(window=window@entry=0x571c982254c0, logical_monitor=logical_monitor@entry=0x0, 
area=area@entry=0x7ffe2a65d280)
    at ../src/core/window.c:5986
#14 0x0000731b3c326039 in meta_window_place (window=<optimized out>, 
flags=META_PLACE_FLAG_FORCE_MOVE, x=<optimized out>, y=<optimized out>, 
new_x=0x7ffe2a65d260, new_y=0x7ffe2a65d264)
    at ../src/core/place.c:1001
#15 place_window_if_needed (window=<optimized out>, 
place_flags=META_PLACE_FLAG_FORCE_MOVE, info=0x7ffe2a65d2a0) at 
../src/core/constraints.c:585
#16 meta_window_constrain (window=<optimized out>, 
flags=(META_MOVE_RESIZE_MOVE_ACTION | META_MOVE_RESIZE_RESIZE_ACTION | 
META_MOVE_RESIZE_FORCE_MOVE | META_MOVE_RESIZE_CONSTRAIN), 
    place_flags=META_PLACE_FLAG_FORCE_MOVE, resize_gravity=<optimized out>, 
orig=0x7ffe2a65d250, new=<synthetic pointer>, temporary=<synthetic pointer>, 
rel_x=<synthetic pointer>, 
    rel_y=<synthetic pointer>) at ../src/core/constraints.c:324
#17 meta_window_move_resize_internal (window=<optimized out>, 
    flags=(META_MOVE_RESIZE_MOVE_ACTION | META_MOVE_RESIZE_RESIZE_ACTION | 
META_MOVE_RESIZE_FORCE_MOVE | META_MOVE_RESIZE_CONSTRAIN), 
place_flags=META_PLACE_FLAG_FORCE_MOVE, frame_rect=...)
    at ../src/core/window.c:4161
#18 0x0000731b3c3ba365 in meta_window_force_placement (window=0x571c982254c0, 
place_flags=META_PLACE_FLAG_FORCE_MOVE) at ../src/core/window.c:2215
#19 meta_window_force_placement (place_flags=META_PLACE_FLAG_FORCE_MOVE, 
window=0x571c982254c0) at ../src/core/window.c:2191
#20 xdg_toplevel_set_maximized (client=<optimized out>, resource=<optimized 
out>) at ../src/wayland/meta-wayland-xdg-shell.c:473
#21 0x0000731b3c02c6de in ffi_call_unix64 () at ../src/x86/unix64.S:104
#22 0x0000731b3c0286cf in ffi_call_int (cif=cif@entry=0x7ffe2a65d4f0, 
fn=<optimized out>, rvalue=<optimized out>, avalue=<optimized out>, 
closure=closure@entry=0x0)
    at ../src/x86/ffi64.c:676
#23 0x0000731b3c02ba6e in ffi_call (cif=0x7ffe2a65d4f0, fn=<optimized out>, 
rvalue=<optimized out>, avalue=<optimized out>) at ../src/x86/ffi64.c:713
#24 0x0000731b3b3b3699 in ?? () from 
/lib/x86_64-linux-gnu/libwayland-server.so.0
#25 0x0000731b3b3b8b7a in ?? () from 
/lib/x86_64-linux-gnu/libwayland-server.so.0
#26 0x0000731b3b3b6ee2 in wl_event_loop_dispatch () from 
/lib/x86_64-linux-gnu/libwayland-server.so.0
#27 0x0000731b3c38b5eb in wayland_event_source_dispatch 
(base=base@entry=0x571c90b7e020, callback=<optimized out>, data=<optimized 
out>) at ../src/wayland/meta-wayland.c:146
#28 0x0000731b3c90bde2 in g_main_dispatch (context=0x571c902daed0) at 
../../../glib/gmain.c:3398

-- 
You received this bug notification because you are a member of Desktop
Packages, 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

Status in mutter package in Ubuntu:
  New

Bug description:
  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 [email protected] 
- 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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/2117277/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to