gnome-shell (Wayland) crashes with SIGSEGV when screen locker activates (jj), immediately after meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' failed

Bug #1987209 reported by Francois Lafont
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Hi,

On my Ubuntu 22.04 (migrated from 20.04 few days ago), I have a problem with the automatic lock screen which doesn't lock my session but closes it (and all opened applications in my session are closed too of course). In fact, I think the session is not really closed but there is some crash of gnome shell (see below).

Maybe it's important, I have *2* monitors (more convenient for my tired eyes):

* HP 24er (24")
* ASUS MX279 (27")

Theses 2 monitors are connected via a HDMI port, each on a dedicated card "Radeon Pro WX 3100" (1 card per monitor, so I have 2 same model cards "Radeon Pro WX 3100").

Here is my setting in "Privacy" > "Screen", to test quickly the automatic lock screen:

```
Blank Screen Delay: 1 minute
Automatic Screen Lock: <Checked>
Automatic Screen Lock Delay: 30 seconds
Lock Screen on Suspend: <Checked>
Show Notifications on Lock Screen: <Unchecked>
```

Note: I have tested with a fresh and new Unix account, just created for the test (by `sudo adduser foo`) and the problem is present too.

Below, you can see the output of the `journalctl -eb` where:

1. about ~13:02:50, screens begins to be blank,
2. about ~13:03:20, the automatic lock screen should start.

As you can see below, "Aug 21 13:03:19 => gnome-shell: segfault":

```
Aug 21 13:00:39 flhpz4 PackageKit[2197]: resolve transaction /25167_acdeacea from uid 1000 finished with success after 229ms
Aug 21 13:00:39 flhpz4 PackageKit[2197]: resolve transaction /25168_badabacd from uid 1000 finished with success after 235ms
Aug 21 13:00:40 flhpz4 systemd[37743]: Started Application launched by gnome-shell.
Aug 21 13:01:09 flhpz4 systemd[1]: systemd-timedated.service: Deactivated successfully.
Aug 21 13:02:58 flhpz4 update-notifier[43667]: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
Aug 21 13:02:58 flhpz4 update-notifier[43667]: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
Aug 21 13:03:19 flhpz4 gnome-shell[37898]: meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) number < g_list_length (manager->logical_monitors)' failed
Aug 21 13:03:19 flhpz4 gnome-shell[37898]: meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' failed
Aug 21 13:03:19 flhpz4 gnome-shell[37898]: meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) number < g_list_length (manager->logical_monitors)' failed
Aug 21 13:03:19 flhpz4 gnome-shell[37898]: meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' failed
Aug 21 13:03:19 flhpz4 kernel: gnome-shell[37898]: segfault at 55a109404860 ip 000055a109404860 sp 00007fff85039338 error 15
Aug 21 13:03:20 flhpz4 kernel: Code: 00 00 21 00 00 00 00 00 00 00 69 6e 73 65 6e 73 69 74 69 76 65 00 00 00 00 00 6f 75 74 00 00 00 00 00 21 00 00 00 00 00 00 00 <00> 66 18 84 0d 7f 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00 00
Aug 21 13:03:19 flhpz4 gsd-color[38044]: failed to find device: property match 'XRANDR_name'='DP-3' does not exist
Aug 21 13:03:20 flhpz4 rtkit-daemon[1801]: Supervising 7 threads of 3 processes of 1 users.
Aug 21 13:03:20 flhpz4 rtkit-daemon[1801]: Successfully made thread 47682 of process 37752 owned by '1000' RT at priority 5.
Aug 21 13:03:20 flhpz4 rtkit-daemon[1801]: Supervising 8 threads of 3 processes of 1 users.
Aug 21 13:03:21 flhpz4 gnome-calendar[47524]: Error reading events from display: Broken pipe
Aug 21 13:03:21 flhpz4 evolution-alarm[38073]: Error reading events from display: Broken pipe
Aug 21 13:03:21 flhpz4 seahorse[47526]: Error reading events from display: Broken pipe
Aug 21 13:03:21 flhpz4 xdg-desktop-por[38284]: Error reading events from display: Broken pipe
Aug 21 13:03:21 flhpz4 xdg-desktop-por[38239]: Error reading events from display: Broken pipe
Aug 21 13:03:21 flhpz4 unknown[38050]: Error reading events from display: Broken pipe
Aug 21 13:03:21 flhpz4 terminator[46053]: Error reading events from display: Connection reset by peer
Aug 21 13:03:21 flhpz4 gsd-wacom[38078]: Error reading events from display: Broken pipe
Aug 21 13:03:21 flhpz4 firefox[46499]: Error reading events from display: Broken pipe
Aug 21 13:03:21 flhpz4 systemd[37743]: org.gnome.SettingsDaemon.Keyboard.service: Main process exited, code=exited, status=1/FAILURE
Aug 21 13:03:21 flhpz4 systemd[37743]: xdg-desktop-portal-gnome.service: Main process exited, code=exited, status=1/FAILURE
Aug 21 13:03:21 flhpz4 systemd[37743]: xdg-desktop-portal-gnome.service: Failed with result 'exit-code'.
Aug 21 13:03:21 flhpz4 gsd-media-keys[38052]: Error reading events from display: Broken pipe
Aug 21 13:03:21 flhpz4 systemd[37743]: org.gnome.SettingsDaemon.Keyboard.service: Failed with result 'exit-code'.
Aug 21 13:03:21 flhpz4 gsd-power[38053]: Error reading events from display: Broken pipe
Aug 21 13:03:21 flhpz4 systemd[37743]: org.gnome.SettingsDaemon.Wacom.service: Main process exited, code=exited, status=1/FAILURE
Aug 21 13:03:21 flhpz4 systemd[37743]: <email address hidden>: Main process exited, code=dumped, status=11/SEGV
Aug 21 13:03:21 flhpz4 systemd[37743]: org.gnome.SettingsDaemon.MediaKeys.service: Main process exited, code=exited, status=1/FAILURE
Aug 21 13:03:21 flhpz4 update-notifier[43667]: Error reading events from display: Broken pipe
Aug 21 13:03:21 flhpz4 polkitd(authority=local)[1266]: Unregistered Authentication Agent for unix-session:30 (system bus name :1.1016, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Aug 21 13:03:21 flhpz4 systemd[37743]: org.gnome.SettingsDaemon.Wacom.service: Failed with result 'exit-code'.
Aug 21 13:03:21 flhpz4 systemd[37743]: org.gnome.SettingsDaemon.Power.service: Main process exited, code=exited, status=1/FAILURE
Aug 21 13:03:21 flhpz4 gsd-color[38044]: Error reading events from display: Broken pipe
Aug 21 13:03:21 flhpz4 systemd[37743]: xdg-desktop-portal-gtk.service: Main process exited, code=exited, status=1/FAILURE
Aug 21 13:03:21 flhpz4 systemd[37743]: xdg-desktop-portal-gtk.service: Failed with result 'exit-code'.
Aug 21 13:03:21 flhpz4 gnome-control-c[47614]: Error reading events from display: Broken pipe
Aug 21 13:03:21 flhpz4 systemd[37743]: app-gnome-terminator-46053.scope: Consumed 4.766s CPU time.
Aug 21 13:03:21 flhpz4 systemd[37743]: app-gnome-gnome\x2dsoftware\x2dservice-38089.scope: Consumed 2.951s CPU time.
Aug 21 13:03:21 flhpz4 systemd[37743]: <email address hidden>: Failed with result 'core-dump'.
Aug 21 13:03:21 flhpz4 systemd[37743]: <email address hidden>: Triggering OnFailure= dependencies.
Aug 21 13:03:21 flhpz4 systemd[37743]: <email address hidden>: Consumed 22.520s CPU time.
Aug 21 13:03:21 flhpz4 systemd[37743]: org.gnome.SettingsDaemon.Power.service: Failed with result 'exit-code'.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped GNOME power management service.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME Wayland Session (session: ubuntu).
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target Current graphical user session.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped Path trigger for Apport crash notifications.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped Path trigger for new release of Ubuntu notifications.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME Session.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME Wayland Session.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME Session (session: ubuntu).
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME accessibility target.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME color management target.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME date & time target.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME maintenance of expirable data target.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME keyboard configuration target.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME keyboard shortcuts target.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME power management target.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME printer notifications target.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME RFKill support target.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME FreeDesktop screensaver target.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME file sharing target.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME smartcard target.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME sound sample caching target.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME Wacom tablet support target.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME XSettings target.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopping IBus Daemon for GNOME...
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopping GNOME accessibility service...
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopping GNOME color management service...
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopping GNOME date & time service...
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopping GNOME maintenance of expirable data service...
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped GNOME keyboard configuration service.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopping GNOME printer notifications service...
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopping GNOME RFKill support service...
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopping GNOME FreeDesktop screensaver service...
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopping GNOME file sharing service...
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopping GNOME smartcard service...
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopping GNOME sound sample caching service...
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped GNOME Wacom tablet support service.
Aug 21 13:03:21 flhpz4 systemd[37743]: Condition check resulted in Disable GNOME Shell extensions after failure being skipped.
Aug 21 13:03:21 flhpz4 systemd[37743]: org.gnome.SettingsDaemon.Color.service: Main process exited, code=exited, status=1/FAILURE
Aug 21 13:03:21 flhpz4 systemd[37743]: org.gnome.SettingsDaemon.MediaKeys.service: Failed with result 'exit-code'.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped GNOME keyboard shortcuts service.
Aug 21 13:03:21 flhpz4 systemd[37743]: app-gnome-update\x2dnotifier-43667.scope: Consumed 1.906s CPU time.
Aug 21 13:03:21 flhpz4 kernel: rfkill: input handler enabled
Aug 21 13:03:21 flhpz4 terminator.desktop[47297]: Exiting due to channel error.
Aug 21 13:03:21 flhpz4 terminator.desktop[47201]: Exiting due to channel error.
Aug 21 13:03:21 flhpz4 systemd[37743]: org.gnome.SettingsDaemon.Color.service: Failed with result 'exit-code'.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped GNOME color management service.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped GNOME accessibility service.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped GNOME maintenance of expirable data service.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped GNOME printer notifications service.
Aug 21 13:03:21 flhpz4 terminator.desktop[47162]: Exiting due to channel error.
Aug 21 13:03:21 flhpz4 terminator.desktop[47158]: Exiting due to channel error.
Aug 21 13:03:21 flhpz4 terminator.desktop[46701]: Exiting due to channel error.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped GNOME RFKill support service.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped GNOME file sharing service.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped GNOME smartcard service.
Aug 21 13:03:21 flhpz4 systemd[37743]: app-gnome-gnome\x2dcontrol\x2dcenter-47614.scope: Consumed 1.849s CPU time.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped IBus Daemon for GNOME.
Aug 21 13:03:21 flhpz4 systemd[37743]: org.freedesktop.IBus.session.GNOME.service: Consumed 2.773s CPU time.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped GNOME FreeDesktop screensaver service.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped GNOME sound sample caching service.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped GNOME date & time service.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME Session is initialized.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME Session Manager is ready.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target GNOME Shell.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopping GNOME Session Manager (session: ubuntu)...
Aug 21 13:03:21 flhpz4 systemd[37743]: snap.firefox.firefox.7bf4205c-3f5c-40ff-9fc5-b14ee599984a.scope: Consumed 14.627s CPU time.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped GNOME Session Manager (session: ubuntu).
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target Tasks to be run before GNOME Session starts.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target Session services which should run early before the graphical session is brought up.
Aug 21 13:03:21 flhpz4 systemd[37743]: Reached target Shutdown running GNOME Session.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopping Start gnome-keyring as SSH agent...
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopping Monitor Session leader for GNOME Session...
Aug 21 13:03:21 flhpz4 systemd[37743]: Starting Restart DBus after GNOME Session shutdown...
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target Shutdown running GNOME Session.
Aug 21 13:03:21 flhpz4 systemd[37743]: Reached target Shutdown running GNOME Session.
Aug 21 13:03:21 flhpz4 sh[47723]: /bin/sh: 1: initctl: not found
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped Monitor Session leader for GNOME Session.
Aug 21 13:03:21 flhpz4 systemd[37743]: Started Restart DBus after GNOME Session shutdown.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped Start gnome-keyring as SSH agent.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped target Shutdown running GNOME Session.
Aug 21 13:03:21 flhpz4 gdm-password][37730]: pam_unix(gdm-password:session): session closed for user flaf
Aug 21 13:03:21 flhpz4 io.snapcraft.Settings[38874]: Exiting on terminated.
Aug 21 13:03:21 flhpz4 gvfsd[37762]: A connection to the bus can't be made
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopping D-Bus User Message Bus...
Aug 21 13:03:21 flhpz4 evolution-calen[37978]: Error setting property 'ConnectionStatus' on interface org.gnome.evolution.dataserver.Source: The connection is closed (g-io-error-quark, 18)
Aug 21 13:03:21 flhpz4 evolution-addre[37993]: Error setting property 'ConnectionStatus' on interface org.gnome.evolution.dataserver.Source: The connection is closed (g-io-error-quark, 18)
Aug 21 13:03:21 flhpz4 gvfsd[38002]: A connection to the bus can't be made
Aug 21 13:03:21 flhpz4 gvfsd[46491]: A connection to the bus can't be made
Aug 21 13:03:21 flhpz4 systemd[37743]: xdg-permission-store.service: Main process exited, code=exited, status=1/FAILURE
Aug 21 13:03:21 flhpz4 systemd[37743]: xdg-permission-store.service: Failed with result 'exit-code'.
Aug 21 13:03:21 flhpz4 systemd[37743]: xdg-document-portal.service: Main process exited, code=exited, status=20/n/a
Aug 21 13:03:21 flhpz4 systemd[37743]: xdg-document-portal.service: Failed with result 'exit-code'.
Aug 21 13:03:21 flhpz4 systemd[37743]: Stopped D-Bus User Message Bus.
Aug 21 13:03:21 flhpz4 systemd[37743]: dbus.service: Consumed 4.646s CPU time.
Aug 21 13:03:21 flhpz4 systemd[1]: run-user-1000-doc.mount: Deactivated successfully.
Aug 21 13:03:21 flhpz4 systemd[1]: run-user-1000-gvfs.mount: Deactivated successfully.
Aug 21 13:03:21 flhpz4 systemd[37743]: xdg-desktop-portal.service: Consumed 1.395s CPU time.
Aug 21 13:03:21 flhpz4 tracker-miner-fs-3[37777]: OK
Aug 21 13:03:21 flhpz4 systemd[1]: session-30.scope: Deactivated successfully.
Aug 21 13:03:21 flhpz4 systemd-logind[1273]: Session 30 logged out. Waiting for processes to exit.
Aug 21 13:03:21 flhpz4 systemd-logind[1273]: Removed session 30.
Aug 21 13:03:21 flhpz4 gdm-launch-environment][47738]: pam_unix(gdm-launch-environment:session): session opened for user gdm(uid=122) by (uid=0)
Aug 21 13:03:21 flhpz4 systemd[1]: Created slice User Slice of UID 122.
Aug 21 13:03:21 flhpz4 systemd[1]: Starting User Runtime Directory /run/user/122...
Aug 21 13:03:21 flhpz4 systemd-logind[1273]: New session c19 of user gdm.
Aug 21 13:03:21 flhpz4 systemd[1]: Finished User Runtime Directory /run/user/122.
Aug 21 13:03:21 flhpz4 systemd[1]: Starting User Manager for UID 122...
Aug 21 13:03:21 flhpz4 systemd[47746]: pam_unix(systemd-user:session): session opened for user gdm(uid=122) by (uid=0)
Aug 21 13:03:22 flhpz4 systemd[47746]: Queued start job for default target Main User Target.
Aug 21 13:03:22 flhpz4 systemd[47746]: Created slice User Application Slice.
Aug 21 13:03:22 flhpz4 systemd[47746]: Created slice User Background Tasks Slice.
Aug 21 13:03:22 flhpz4 systemd[47746]: Created slice User Core Session Slice.
Aug 21 13:03:22 flhpz4 systemd[47746]: Started Pending report trigger for Ubuntu Report.
Aug 21 13:03:22 flhpz4 systemd[47746]: Reached target Paths.
Aug 21 13:03:22 flhpz4 systemd[47746]: Reached target Timers.
Aug 21 13:03:22 flhpz4 systemd[47746]: Starting D-Bus User Message Bus Socket...
Aug 21 13:03:22 flhpz4 systemd[47746]: Listening on GnuPG network certificate management daemon.
Aug 21 13:03:22 flhpz4 systemd[47746]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
Aug 21 13:03:22 flhpz4 systemd[47746]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Aug 21 13:03:22 flhpz4 systemd[47746]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Aug 21 13:03:22 flhpz4 systemd[47746]: Listening on GnuPG cryptographic agent and passphrase cache.
Aug 21 13:03:22 flhpz4 systemd[47746]: Listening on PipeWire Multimedia System Socket.
Aug 21 13:03:22 flhpz4 systemd[47746]: Listening on debconf communication socket.
Aug 21 13:03:22 flhpz4 systemd[47746]: Listening on Sound System.
Aug 21 13:03:22 flhpz4 systemd[47746]: Listening on REST API socket for snapd user session agent.
Aug 21 13:03:22 flhpz4 systemd[47746]: Listening on D-Bus User Message Bus Socket.
Aug 21 13:03:22 flhpz4 systemd[47746]: Reached target Sockets.
Aug 21 13:03:22 flhpz4 systemd[47746]: Reached target Basic System.
Aug 21 13:03:22 flhpz4 systemd[1]: Started User Manager for UID 122.
Aug 21 13:03:22 flhpz4 systemd[47746]: Started PipeWire Multimedia Service.
Aug 21 13:03:22 flhpz4 systemd[47746]: Starting Sound Service...
Aug 21 13:03:22 flhpz4 systemd[1]: Started Session c19 of User gdm.
Aug 21 13:03:22 flhpz4 systemd[47746]: Starting Tracker metadata extractor...
Aug 21 13:03:22 flhpz4 rtkit-daemon[1801]: Successfully made thread 47754 of process 47754 owned by '122' high priority at nice level -11.
Aug 21 13:03:22 flhpz4 rtkit-daemon[1801]: Supervising 3 threads of 2 processes of 2 users.
Aug 21 13:03:22 flhpz4 rtkit-daemon[1801]: Successfully made thread 47755 of process 47755 owned by '122' high priority at nice level -11.
Aug 21 13:03:22 flhpz4 rtkit-daemon[1801]: Supervising 4 threads of 3 processes of 2 users.
Aug 21 13:03:22 flhpz4 rtkit-daemon[1801]: Supervising 4 threads of 3 processes of 2 users.
Aug 21 13:03:22 flhpz4 systemd[47746]: Started D-Bus User Message Bus.
Aug 21 13:03:22 flhpz4 dbus-daemon[47757]: [session uid=122 pid=47757] AppArmor D-Bus mediation is enabled
Aug 21 13:03:22 flhpz4 dbus-daemon[47757]: [session uid=122 pid=47757] Activating via systemd: service name='org.gtk.vfs.Daemon' unit='gvfs-daemon.service' requested by ':1.3' (uid=122 pid=47756 comm="/usr/libexec/tracker-extract-3 " label="unconfined")
Aug 21 13:03:22 flhpz4 rtkit-daemon[1801]: Supervising 4 threads of 3 processes of 2 users.
Aug 21 13:03:22 flhpz4 systemd[47746]: Starting Virtual filesystem service...
Aug 21 13:03:22 flhpz4 rtkit-daemon[1801]: Successfully made thread 47761 of process 47754 owned by '122' RT at priority 20.
Aug 21 13:03:22 flhpz4 rtkit-daemon[1801]: Supervising 5 threads of 3 processes of 2 users.
Aug 21 13:03:22 flhpz4 dbus-daemon[47757]: [session uid=122 pid=47757] Successfully activated service 'org.gtk.vfs.Daemon'
Aug 21 13:03:22 flhpz4 systemd[47746]: Started Virtual filesystem service.
Aug 21 13:03:22 flhpz4 rtkit-daemon[1801]: Supervising 5 threads of 3 processes of 2 users.
Aug 21 13:03:22 flhpz4 rtkit-daemon[1801]: Successfully made thread 47780 of process 47755 owned by '122' RT at priority 5.
Aug 21 13:03:22 flhpz4 rtkit-daemon[1801]: Supervising 6 threads of 3 processes of 2 users.
Aug 21 13:03:22 flhpz4 gnome-session[47773]: gnome-session-binary[47773]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
Aug 21 13:03:22 flhpz4 gnome-session[47773]: gnome-session-binary[47773]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
Aug 21 13:03:22 flhpz4 gnome-session-binary[47773]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
Aug 21 13:03:22 flhpz4 gnome-session-binary[47773]: GLib-GIO-CRITICAL: g_bus_get_sync: assertion 'error == NULL || *error == NULL' failed
Aug 21 13:03:22 flhpz4 rtkit-daemon[1801]: Supervising 6 threads of 3 processes of 2 users.
Aug 21 13:03:22 flhpz4 rtkit-daemon[1801]: Successfully made thread 47787 of process 47755 owned by '122' RT at priority 5.
Aug 21 13:03:22 flhpz4 rtkit-daemon[1801]: Supervising 7 threads of 3 processes of 2 users.
Aug 21 13:03:22 flhpz4 rtkit-daemon[1801]: Supervising 7 threads of 3 processes of 2 users.
Aug 21 13:03:22 flhpz4 rtkit-daemon[1801]: Successfully made thread 47790 of process 47755 owned by '122' RT at priority 5.
Aug 21 13:03:22 flhpz4 rtkit-daemon[1801]: Supervising 8 threads of 3 processes of 2 users.
Aug 21 13:03:22 flhpz4 gnome-shell[47788]: Running GNOME Shell (using mutter 42.2) as a Wayland display server
Aug 21 13:03:22 flhpz4 gnome-shell[47788]: Device '/dev/dri/card0' prefers shadow buffer
Aug 21 13:03:22 flhpz4 gnome-shell[47788]: Added device '/dev/dri/card0' (amdgpu) using atomic mode setting.
Aug 21 13:03:22 flhpz4 gnome-shell[47788]: Device '/dev/dri/card1' prefers shadow buffer
Aug 21 13:03:22 flhpz4 gnome-shell[47788]: Added device '/dev/dri/card1' (amdgpu) using atomic mode setting.
Aug 21 13:03:22 flhpz4 dbus-daemon[47757]: [session uid=122 pid=47757] Activating via systemd: service name='org.freedesktop.Tracker3.Miner.Files' unit='tracker-miner-fs-3.service' requested by ':1.3' (uid=122 pid=47756 comm="/usr/libexec/tracker-extract-3 " label="unconfined")
Aug 21 13:03:22 flhpz4 gnome-shell[47788]: Created gbm renderer for '/dev/dri/card0'
Aug 21 13:03:22 flhpz4 systemd[47746]: Starting Tracker file system data miner...
Aug 21 13:03:22 flhpz4 gnome-shell[47788]: Created gbm renderer for '/dev/dri/card1'
Aug 21 13:03:22 flhpz4 gnome-shell[47788]: Boot VGA GPU /dev/dri/card0 selected as primary
Aug 21 13:03:22 flhpz4 tracker-miner-f[47811]: Unable to get XDG user directory path for special directory &DOCUMENTS. Ignoring this location.
Aug 21 13:03:22 flhpz4 tracker-miner-f[47811]: Unable to get XDG user directory path for special directory &MUSIC. Ignoring this location.
Aug 21 13:03:22 flhpz4 tracker-miner-f[47811]: Unable to get XDG user directory path for special directory &PICTURES. Ignoring this location.
Aug 21 13:03:22 flhpz4 tracker-miner-f[47811]: Unable to get XDG user directory path for special directory &VIDEOS. Ignoring this location.
Aug 21 13:03:22 flhpz4 tracker-miner-f[47811]: Unable to get XDG user directory path for special directory &DOWNLOAD. Ignoring this location.
Aug 21 13:03:22 flhpz4 tracker-miner-f[47811]: Unable to get XDG user directory path for special directory &DOCUMENTS. Ignoring this location.
Aug 21 13:03:22 flhpz4 tracker-miner-f[47811]: Unable to get XDG user directory path for special directory &MUSIC. Ignoring this location.
Aug 21 13:03:22 flhpz4 tracker-miner-f[47811]: Unable to get XDG user directory path for special directory &PICTURES. Ignoring this location.
Aug 21 13:03:22 flhpz4 tracker-miner-f[47811]: Unable to get XDG user directory path for special directory &VIDEOS. Ignoring this location.
Aug 21 13:03:22 flhpz4 dbus-daemon[47757]: [session uid=122 pid=47757] Activating via systemd: service name='org.gtk.vfs.UDisks2VolumeMonitor' unit='gvfs-udisks2-volume-monitor.service' requested by ':1.7' (uid=122 pid=47811 comm="/usr/libexec/tracker-miner-fs-3 " label="unconfined")
Aug 21 13:03:22 flhpz4 systemd[47746]: Starting Virtual filesystem service - disk device monitor...
Aug 21 13:03:22 flhpz4 dbus-daemon[47757]: [session uid=122 pid=47757] Successfully activated service 'org.gtk.vfs.UDisks2VolumeMonitor'
Aug 21 13:03:22 flhpz4 systemd[47746]: Started Virtual filesystem service - disk device monitor.
Aug 21 13:03:22 flhpz4 dbus-daemon[47757]: [session uid=122 pid=47757] Activating via systemd: service name='org.gtk.vfs.GoaVolumeMonitor' unit='gvfs-goa-volume-monitor.service' requested by ':1.7' (uid=122 pid=47811 comm="/usr/libexec/tracker-miner-fs-3 " label="unconfined")
Aug 21 13:03:22 flhpz4 systemd[47746]: Starting Virtual filesystem service - GNOME Online Accounts monitor...
Aug 21 13:03:22 flhpz4 dbus-daemon[47757]: [session uid=122 pid=47757] Activating service name='org.gnome.OnlineAccounts' requested by ':1.9' (uid=122 pid=47838 comm="/usr/libexec/gvfs-goa-volume-monitor " label="unconfined")
Aug 21 13:03:22 flhpz4 goa-daemon[47842]: goa-daemon version 3.44.0 starting
```

In the attachment, I put some command outputs, if it can help. Of course, if needed, I can add any supplementary information, and no problem for me to reproduce the problem quickly (the problem is infinitely reproducible).

Thanks in advance for your help. :)

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: gnome-shell 42.2-0ubuntu0.2
ProcVersionSignature: Ubuntu 5.15.0-46.49-generic 5.15.39
Uname: Linux 5.15.0-46-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Sun Aug 21 15:55:27 2022
DisplayManager: gdm3
RelatedPackageVersions: mutter-common 42.2-0ubuntu1
SourcePackage: gnome-shell
UpgradeStatus: Upgraded to jammy on 2022-08-16 (4 days ago)

Revision history for this message
Francois Lafont (francois-lafont) wrote :
Revision history for this message
Francois Lafont (francois-lafont) wrote :
Download full text (64.9 KiB)

FYI, here is the output of `journalctl -f` (run as root in tyy4) during the automatic lock screen of my session (of the user flaf) and the gnome-shell crash:

```
Aug 21 18:11:17 flhpz4 sudo[25344]: pam_unix(sudo:session): session closed for user root
Aug 21 18:11:17 flhpz4 sudo[25348]: flaf : TTY=tty4 ; PWD=/home/flaf ; USER=root ; COMMAND=/sbin/mdadm --detail --test /dev/md126
Aug 21 18:11:17 flhpz4 sudo[25348]: pam_unix(sudo:session): session opened for user root(uid=0) by flaf(uid=1000)
Aug 21 18:11:17 flhpz4 sudo[25348]: pam_unix(sudo:session): session closed for user root
Aug 21 18:11:17 flhpz4 gnome-software[12398]: Failed to reload changed app filter: App filtering is globally disabled
Aug 21 18:11:17 flhpz4 gnome-software[12398]: Failed to reload changed app filter: App filtering is globally disabled
Aug 21 18:11:21 flhpz4 sudo[25400]: flaf : TTY=tty4 ; PWD=/root ; USER=root ; COMMAND=/bin/bash
Aug 21 18:11:21 flhpz4 sudo[25400]: pam_unix(sudo-i:session): session opened for user root(uid=0) by flaf(uid=1000)
Aug 21 18:11:37 flhpz4 geoclue[25036]: Service not used for 60 seconds. Shutting down..
Aug 21 18:11:37 flhpz4 systemd[1]: geoclue.service: Deactivated successfully.

#
# Begin of the automatic lock screen.
#

Aug 21 18:11:47 flhpz4 kernel: rfkill: input handler disabled
Aug 21 18:11:47 flhpz4 kernel: gnome-shell[24900]: segfault at 56230aceaac6 ip 00007f71b0ab42e7 sp 00007fff330d9418 error 4 in libgbm.so.1.0.0[7f71b0ab3000+8000]
Aug 21 18:11:47 flhpz4 kernel: Code: 18 c3 90 f3 0f 1e fa 48 8b 07 ff a0 c0 00 00 00 0f 1f 00 f3 0f 1e fa 48 8b 07 ff a0 a8 00 00 00 0f 1f 00 f3 0f 1e fa 48 8b 07 <ff> a0 b0 00 00 00 0f 1f 00 f3 0f 1e fa 48 8b 07 ff a0 b8 00 00 00
Aug 21 18:11:47 flhpz4 gsd-power[25102]: Error reading events from display: Broken pipe
Aug 21 18:11:47 flhpz4 org.gnome.Shell.desktop[25002]: (EE) failed to read Wayland events: Broken pipe
Aug 21 18:11:47 flhpz4 gsd-media-keys[25084]: Error reading events from display: Broken pipe
Aug 21 18:11:47 flhpz4 gsd-wacom[25056]: Error reading events from display: Broken pipe
Aug 21 18:11:47 flhpz4 gsd-keyboard[25058]: Error reading events from display: Broken pipe
Aug 21 18:11:47 flhpz4 gnome-session[24880]: gnome-session-binary[24880]: WARNING: App 'org.gnome.SettingsDaemon.Wacom.desktop' exited with code 1
Aug 21 18:11:47 flhpz4 gnome-session-binary[24880]: WARNING: App 'org.gnome.SettingsDaemon.Wacom.desktop' exited with code 1
Aug 21 18:11:47 flhpz4 gnome-session[24880]: gnome-session-binary[24880]: WARNING: App 'org.gnome.SettingsDaemon.Keyboard.desktop' exited with code 1
Aug 21 18:11:47 flhpz4 gnome-session[24880]: gnome-session-binary[24880]: WARNING: App 'org.gnome.SettingsDaemon.MediaKeys.desktop' exited with code 1
Aug 21 18:11:47 flhpz4 gnome-session[24880]: gnome-session-binary[24880]: WARNING: App 'org.gnome.SettingsDaemon.Power.desktop' exited with code 1
Aug 21 18:11:47 flhpz4 gnome-session-binary[24880]: WARNING: App 'org.gnome.SettingsDaemon.Keyboard.desktop' exited with code 1
Aug 21 18:11:47 flhpz4 gnome-session-binary[24880]: WARNING: App 'org.gnome.SettingsDaemon.MediaKeys.desktop' exited with code 1
Aug 21 18:11:47 flhpz4 gnome-session-binary[24880]: WA...

Revision history for this message
Francois Lafont (francois-lafont) wrote :
Download full text (23.2 KiB)

Same test here but where I have selected "Ubuntu on Xorg" before login, instead of "Ubuntu". The point is, in that case, my session is locked and I don't loose my session:

```
Aug 21 18:31:20 flhpz4 systemd[38118]: Reached target Exit the Session.
Aug 21 18:31:20 flhpz4 systemd[1]: user@122.service: Deactivated successfully.
Aug 21 18:31:20 flhpz4 systemd[1]: Stopped User Manager for UID 122.
Aug 21 18:31:20 flhpz4 systemd[1]: user@122.service: Consumed 1.932s CPU time.
Aug 21 18:31:20 flhpz4 systemd[1]: Stopping User Runtime Directory /run/user/122...
Aug 21 18:31:20 flhpz4 systemd[1]: run-user-122.mount: Deactivated successfully.
Aug 21 18:31:20 flhpz4 systemd[1]: user-runtime-dir@122.service: Deactivated successfully.
Aug 21 18:31:20 flhpz4 systemd[1]: Stopped User Runtime Directory /run/user/122.
Aug 21 18:31:20 flhpz4 systemd[1]: Removed slice User Slice of UID 122.
Aug 21 18:31:20 flhpz4 systemd[1]: user-122.slice: Consumed 6.123s CPU time.
Aug 21 18:31:31 flhpz4 sudo[39952]: pam_unix(sudo-i:session): session closed for user root
Aug 21 18:31:35 flhpz4 systemd[1]: systemd-localed.service: Deactivated successfully.
Aug 21 18:31:35 flhpz4 systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Aug 21 18:31:35 flhpz4 systemd[1]: systemd-timedated.service: Deactivated successfully.
Aug 21 18:31:38 flhpz4 sudo[39993]: flaf : TTY=pts/0 ; PWD=/home/flaf ; USER=root ; COMMAND=/usr/bin/tail -f /tmp/y.log
Aug 21 18:31:38 flhpz4 sudo[39993]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Aug 21 18:31:49 flhpz4 geoclue[38294]: Service not used for 60 seconds. Shutting down..
Aug 21 18:31:49 flhpz4 systemd[1]: Started Run anacron jobs.
Aug 21 18:31:49 flhpz4 systemd[1]: geoclue.service: Deactivated successfully.
Aug 21 18:31:49 flhpz4 anacron[39996]: Anacron 2.3 started on 2022-08-21
Aug 21 18:31:49 flhpz4 anacron[39996]: Normal exit (0 jobs run)
Aug 21 18:31:49 flhpz4 systemd[1]: anacron.service: Deactivated successfully.
Aug 21 18:32:05 flhpz4 dbus-daemon[38525]: [session uid=1000 pid=38525] Activating via systemd: service name='org.gtk.vfs.Metadata' unit='gvfs-metadata.service' requested by ':1.40' (uid=1000 pid=38825 comm="/usr/bin/gnome-shell " label="unconfined")
Aug 21 18:32:05 flhpz4 systemd[38508]: Starting Virtual filesystem metadata service...
Aug 21 18:32:05 flhpz4 dbus-daemon[38525]: [session uid=1000 pid=38525] Successfully activated service 'org.gtk.vfs.Metadata'
Aug 21 18:32:05 flhpz4 systemd[38508]: Started Virtual filesystem metadata service.
Aug 21 18:32:05 flhpz4 systemd[38508]: Started Application launched by gnome-session-binary.
Aug 21 18:32:05 flhpz4 systemd[38508]: Started Application launched by gnome-session-binary.
Aug 21 18:32:06 flhpz4 <email address hidden>[38825]: unable to update icon for software-update-available
Aug 21 18:32:06 flhpz4 <email address hidden>[38825]: unable to update icon for livepatch
Aug 21 18:33:05 flhpz4 systemd[38508]: Started Application launched by gnome-session-binary.
Aug 21 18:33:10 flhpz4 /usr/libexec/gdm-x-session[38563]: (II) AMDGPU(0): Allocate new frame buffer 1920x1080
Aug 21 18:33:10 flhpz4 /usr/libexec/gdm-x-session[38563]: ...

Tom Reynolds (tomreyn)
summary: - Automatic lock screen doesn't lock my session but closes it because of a
- gnome-shell crash
+ gnome-shell crashes with Wayland when screen locker activates (jj)
summary: - gnome-shell crashes with Wayland when screen locker activates (jj)
+ gnome-shell (Wayland) crashes when screen locker activates (jj)
Revision history for this message
Tom Reynolds (tomreyn) wrote : Re: gnome-shell (Wayland) crashes when screen locker activates (jj)

Summary from my IRC support session with francois-lafont:

gnome-shell (Wayland) reproducibly segfaults on this amd64 system whenever the no-user-interaction timeout is reached and the screen locker kicks in. Not reproducible on Xorg.

This is an amd64 Intel CPU, 2x AMD GPU system, recently upgraded to JJ.

Related Oopses from this system (SegvAnalysis failed for all, no debug):
https://errors.ubuntu.com/oops/a812c258-216f-11ed-9782-fa163e993415
https://errors.ubuntu.com/oops/a6ea9d2a-216f-11ed-b145-fa163ef35206
https://errors.ubuntu.com/oops/c94458b8-1def-11ed-9760-fa163e993415
https://errors.ubuntu.com/oops/5d6f040c-1dee-11ed-975f-fa163e993415

Revision history for this message
Francois Lafont (francois-lafont) wrote :

Hi,

Tom Reynolds wrote:

> gnome-shell (Wayland) reproducibly segfaults on this amd64 system
> whenever the no-user-interaction timeout is reached and the screen
> locker kicks in. Not reproducible on Xorg.

This is perfectly summarized.

FYI, the problem doesn't appear if I lock my session manually with "Windows-L".

Tom Reynolds (tomreyn)
tags: added: amdgpu multimonitor
Revision history for this message
Francois Lafont (francois-lafont) wrote :

Test suggested by oria on IRC: try "nomodeset" in kernel parameter and try to reproduce the problem.

After the reboot:

```
$ uname -a
Linux flhpz4 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.15.0-46-generic root=/dev/mapper/vg0-system ro quiet splash vt.handoff=7 nomodeset
```

Remarks:

1. During the login, the choice "Ubuntu on Xorg" appears no longer (I don't know why). I can choose only "Openbox" or "Ubuntu". And I have chosen "Ubuntu" of course.

2. I have only one monitor which works (the HP monitor). The other monitor (Asus) is just ignored.

And in this case, the automatic lock screen works correctly. I can find my running appli after a re-login.

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

It looks like there might be two different crashes here. Comment #2 looks like bug 1969422.

If there is indeed another crash happening here then please follow these instructions to find it:

1. 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.

2. If step 1 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.

summary: - gnome-shell (Wayland) crashes when screen locker activates (jj)
+ gnome-shell (Wayland) crashes with SIGSEGV when screen locker activates
+ (jj), immediately after meta_workspace_get_work_area_for_monitor:
+ assertion 'logical_monitor != NULL' failed
Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Daren Swasey (dswasey9608) wrote (last edit ):

I am getting very similar results.

For work a desktop computer was wiped and then imaged with Ubuntu 22.04. Like francois-lafont, I have noticed that when the system 'screen blank' activates, all my open windows in my session are closed after logging back in.

About my system (from About menu in Settings)

- Dell OptiPlex 3050
- 32 GB RAM
- Intel® Core™ i7-7700 CPU @ 3.60GHz × 8
- AMD® Radeon rx 550 / 550 series / Mesa Intel® HD Graphics 630 (KBL GT2)
- GNOME Version: 42.2

Monitors being used:
- Dell U2211Ht 22"
- Acer G226HQL 22"
- LG 32MA68HY 27"

Again, like francois-lafont's testing, I have reproduced this error by setting the 'Screen Blank' setting to 1 minute, then waiting for the system to enter the screen blank state. The following then happens.

1. Everything seems to be fading out as normal
2. Screens no longer have data that needs to be displayed, they go into sleep mode
3. After a brief period, screens are forced back on (where when this problem isn't happening, screens will remain in sleep mode until input provided by user)
4. System displays the dark login screen as if I was never logged in.
5. After signing in, all my open applications have been closed.

I have managed to circumvent this issue by choosing the option
'Ubuntu on xorg' before signing in, or by uncommenting the line

    #WaylandEnable=false

in /etc/gdm3/custom.conf. I then repeat the test described above after rebooting gdm3 and my session is saved, no issues.

I have attached my own results that I found after a 'journalctl -b0'. The text in the file are some of the lines before and after the line:

    gnome-shell[xxxx]: segfault at ....

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

Daren,

Please open your own bug by following these instructions:
https://wiki.ubuntu.com/Bugs/Responses#Missing_a_crash_report_or_having_a_.crash_attachment

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for gnome-shell (Ubuntu) because there has been no activity for 60 days.]

Changed in gnome-shell (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Martin Randau (cmmrandau) wrote :

I have this issue on Ubuntu 23.10. Lock screen works only with an external monitor connected. Otherwise the session is ended and the user is logged out and brought to the gdm screen. Let me know what logs you need.

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

No, your bug 2034619 is not related to this.

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.