gnome-shell crashed with assertion failure "libmutter:ERROR:../src/core/window.c:5869:meta_window_get_work_area_for_logical_monitor: assertion failed: (logical_monitor)"

Bug #2063501 reported by Islam
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
New
Undecided
Unassigned

Bug Description

# journalctl _COMM=gnome-shell --since="20 minutes ago" -p warning
Apr 25 23:36:04 hostname gnome-shell[3682]: meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) number < g_list_length (manager->l>
Apr 25 23:36:04 hostname gnome-shell[3682]: meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' failed
Apr 25 23:36:04 hostname gnome-shell[3682]: meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) number < g_list_length (manager->l>
Apr 25 23:36:04 hostname gnome-shell[3682]: meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' failed
Apr 25 23:36:04 hostname gnome-shell[3682]: meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) number < g_list_length (manager->l>
Apr 25 23:36:04 hostname gnome-shell[3682]: meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' failed
Apr 25 23:36:04 hostname gnome-shell[3682]: meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) number < g_list_length (manager->l>
Apr 25 23:36:04 hostname gnome-shell[3682]: meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' failed
Apr 25 23:36:04 hostname gnome-shell[3682]: meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) number < g_list_length (manager->l>
Apr 25 23:36:04 hostname gnome-shell[3682]: meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' failed
Apr 25 23:36:04 hostname gnome-shell[3682]: JS ERROR: TypeError: this._settings is null
                                      getInt@file:///<email address hidden>/src/common.js:136:9
                                      _onMoving@file:///<email address hidden>/src/extension/moveHandler.js:361:38
                                      @resource:///org/gnome/shell/ui/init.js:21:20
Apr 25 23:36:11 hostname gnome-shell[3682]: meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) number < g_list_length (manager->l>
Apr 25 23:36:32 hostname gnome-shell[190040]: Gio.UnixInputStream has been moved to a separate platform-specific library. Please update your code to use GioUn>
                                        0 inhibit() ["resource:///org/gnome/shell/misc/loginManager.js":209:8]
                                        1 InterpretGeneratorResume() ["self-hosted":1461:33]
                                        2 AsyncFunctionNext() ["self-hosted":852:26]
                                        3 anonymous() ["resource:///org/gnome/shell/ui/init.js":21:19]
Apr 25 23:36:33 hostname gnome-shell[188828]: Connection to xwayland lost
Apr 25 23:36:33 hostname gnome-shell[188828]: Xwayland terminated, exiting since it was mandatory
Apr 25 23:36:33 hostname gnome-shell[188828]: JS ERROR: Gio.IOErrorEnum: Xwayland exited unexpectedly
                                        @resource:///org/gnome/shell/ui/init.js:21:20
Apr 25 23:36:40 hostname gnome-shell[190040]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 25 23:36:54 hostname gnome-shell[190040]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: xwayland 2:23.2.6-1
ProcVersionSignature: Ubuntu 6.8.0-31.31-generic 6.8.1
Uname: Linux 6.8.0-31-generic x86_64
ApportVersion: 2.28.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Thu Apr 25 23:45:31 2024
InstallationDate: Installed on 2024-03-22 (34 days ago)
InstallationMedia: Ubuntu 23.10.1 "Mantic Minotaur" - Release amd64 (20231016.1)
SourcePackage: xwayland
UpgradeStatus: Upgraded to noble on 2024-04-11 (15 days ago)

Revision history for this message
Islam (islam) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It sounds like some part of the system has crashed. To help us find the cause of the crash please follow these steps:

1. Run these commands:
    journalctl -b0 > journal.txt
    journalctl -b-1 > prevjournal.txt
and attach the resulting text files here.

2. Look in /var/crash for crash files and if found run:
    ubuntu-bug YOURFILE.crash
Then tell us the ID of the newly-created bug.

3. If step 2 failed then look at https://errors.ubuntu.com/user/ID where ID is the content of file /var/lib/whoopsie/whoopsie-id on the machine. Do you find any links to recent problems on that page? If so then please send the links to us.

Please take care to avoid attaching .crash files to bugs as we are unable to process them as file attachments. It would also be a security risk for yourself.

Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Changed in xwayland (Ubuntu):
status: New → Incomplete
Revision history for this message
Islam (islam) wrote :
Revision history for this message
Islam (islam) wrote :
Revision history for this message
Islam (islam) wrote :
Revision history for this message
Islam (islam) wrote :
summary: - Sometimes gnome-shell crash upon unlocking session from suspension
+ gnome-shell crashed with assertion failure
+ "meta_monitor_manager_get_logical_monitor_from_number: assertion
+ '(unsigned int) number < g_list_length (manager->l>"
no longer affects: xwayland (Ubuntu)
Changed in gnome-shell (Ubuntu):
status: Incomplete → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I am seeing three different gnome-shell crashes here:

 * Signal 6: Assertion in meta_window_get_work_area_for_logical_monitor
 * Signal 11: Reason unknown. No crash report.
 * Shutdown due to Xwayland crashing.

Also the only reason for Xwayland crashing I can see is related to nouveau. So please use the 'Additional Drivers' app to install an official Nvidia driver. Though that will force you to use Xorg instead of Wayland.

summary: gnome-shell crashed with assertion failure
- "meta_monitor_manager_get_logical_monitor_from_number: assertion
- '(unsigned int) number < g_list_length (manager->l>"
+ "libmutter:ERROR:../src/core/window.c:5869:meta_window_get_work_area_for_logical_monitor:
+ assertion failed: (logical_monitor)"
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 2050865, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

If you can find any crash files from Xwayland in /var/crash then please open a new bug for that.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.