Workspaces disappearance after sleep

Author: bobotCreated Jan 26, 2021Updated Mar 8, 2024

Describe the bug Sometimes after waking-up the computer from sleep, the last workspaces disappear. Only two remains. The applications that were in the other workspaces are not accessible anymore.

Expected behavior Putting the computer on sleep should not have any impact on the window manager.

To Reproduce

  • Occurs on:
    • X.Org
    • Wayland
  • GNOME Shell version: 3.38
  • Distro: Ubuntu 20.10
  • Steps to reproduce, if applicable: non-deterministic

Current commit Output from git rev-parse --short HEAD: b766486de497

Log data

Output from journalctl /usr/bin/gnome-shell just before sleeping:

-- Logs begin at Thu 2020-11-05 11:26:29 CET, end at Tue 2021-01-26 22:05:01 CET. --
janv. 26 18:56:30 $HOST gnome-shell[1335344]: libinput error: event12 - SYNA2393:00 06CB:7A13 Touchpad: kernel bug: Touch jump detected and discarded.
janv. 26 18:56:30 $HOST gnome-shell[1335344]: See https://wayland.freedesktop.org/libinput/doc/1.16.2/touchpad-jumping-cursors.html for details
janv. 26 18:56:36 $HOST gnome-shell[1335344]: onWindowFocus, [object instance wrapper GType:MetaWindowXwayland jsobj@0x24180bf44b80 native@0x562893e042c0]
janv. 26 18:56:36 $HOST gnome-shell[1335344]: Focus MsWindow, [0x562891094350 MsWindow Emacs (GUI)]
janv. 26 19:00:19 $HOST gnome-shell[1335344]: JS ERROR: TypeError: metaWindow.msWindow is undefined
                                                 updateTitleBarVisibility@$HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/utils/windows.js:8:9
                                                 setMsWorkspace/<@$HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/msWorkspace/msWindow.js:593:33
                                                 setMsWorkspace@$HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/msWorkspace/msWindow.js:591:15
                                                 setMonitor/<@$HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/msWorkspace/msWorkspace.js:513:22
                                                 setMonitor@$HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/msWorkspace/msWorkspace.js:512:27
                                                 onMonitorsChanged/<@$HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/manager/msWorkspaceManager.js:372:33
                                                 onMonitorsChanged@$HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/manager/msWorkspaceManager.js:370:14
                                                 MsWorkspaceManager/<@$HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/manager/msWorkspaceManager.js:132:18
                                                 _monitorsChanged@resource:///org/gnome/shell/ui/layout.js:546:14
janv. 26 19:00:19 $HOST gnome-shell[1335344]: -----------------
janv. 26 19:00:19 $HOST gnome-shell[1335344]: DISABLE EXTENSION
janv. 26 19:00:19 $HOST gnome-shell[1335344]: -----------------
janv. 26 19:00:19 $HOST gnome-shell[1335344]: ---------------------
janv. 26 19:00:19 $HOST gnome-shell[1335344]: END DISABLE EXTENSION
janv. 26 19:00:19 $HOST gnome-shell[1335344]: ---------------------
janv. 26 19:00:19 $HOST gnome-shell[1335344]: An active wireless connection, in infrastructure mode, involves no access point?
janv. 26 19:00:20 $HOST gnome-shell[1335344]: Removing a network device that was not added
janv. 26 19:00:20 $HOST gnome-shell[1335344]: Could not create transient scope for PID 1447874: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 1447874 does not exist.
janv. 26 19:00:20 $HOST gnome-shell[1335344]: Could not create transient scope for PID 1447878: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 1447878 does not exist.
janv. 26 19:00:20 $HOST gnome-shell[1335344]: Object .MatPanelButton (0x5628915dc9c0), has been already deallocated — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
janv. 26 19:00:20 $HOST gnome-shell[1335344]: == Stack trace for context 0x562890df61c0 ==
janv. 26 19:00:20 $HOST gnome-shell[1335344]: #0   56289acd62d8 i   $HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/verticalPanel/panelButton.js:31 (74a8ead1c40 @ 27)
janv. 26 19:00:20 $HOST gnome-shell[1335344]: #1   56289acd6248 i   $HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/verticalPanel/panelButton.js:21 (74a8ead1ce0 @ 17)
janv. 26 19:00:20 $HOST gnome-shell[1335344]: == Stack trace for context 0x562890df61c0 ==
janv. 26 19:00:20 $HOST gnome-shell[1335344]: #0   56289acd62d8 i   $HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/verticalPanel/panelButton.js:31 (74a8ead1c40 @ 27)
janv. 26 19:00:20 $HOST gnome-shell[1335344]: #1   56289acd6248 i   $HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/verticalPanel/panelButton.js:21 (74a8ead1ce0 @ 17)
janv. 26 19:00:20 $HOST gnome-shell[1335344]: _clutter_actor_fully_transform_vertices: assertion 'CLUTTER_IS_ACTOR (self)' failed
janv. 26 19:00:20 $HOST gnome-shell[1335344]: == Stack trace for context 0x562890df61c0 ==
janv. 26 19:00:20 $HOST gnome-shell[1335344]: #0   56289acd62d8 i   $HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/verticalPanel/panelButton.js:31 (74a8ead1c40 @ 27)
janv. 26 19:00:20 $HOST gnome-shell[1335344]: #1   56289acd6248 i   $HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/verticalPanel/panelButton.js:21 (74a8ead1ce0 @ 17)
janv. 26 19:00:20 $HOST gnome-shell[1335344]: == Stack trace for context 0x562890df61c0 ==
janv. 26 19:00:20 $HOST gnome-shell[1335344]: #0   56289acd62d8 i   $HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/verticalPanel/panelButton.js:31 (74a8ead1c40 @ 27)
janv. 26 19:00:20 $HOST gnome-shell[1335344]: #1   56289acd6248 i   $HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/verticalPanel/panelButton.js:21 (74a8ead1ce0 @ 17)
janv. 26 19:00:20 $HOST gnome-shell[1335344]: Object .MatPanelButton (0x5628951f4da0), has been already deallocated — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
janv. 26 19:00:20 $HOST gnome-shell[1335344]: _clutter_actor_fully_transform_vertices: assertion 'CLUTTER_IS_ACTOR (self)' failed
janv. 26 19:00:20 $HOST gnome-shell[1335344]: Object .MatPanelButton (0x5628954fbd80), has been already deallocated — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
janv. 26 19:00:20 $HOST gnome-shell[1335344]: _clutter_actor_fully_transform_vertices: assertion 'CLUTTER_IS_ACTOR (self)' failed
janv. 26 19:00:20 $HOST gnome-shell[1335344]: Object .MatPanelButton (0x5628996183f0), has been already deallocated — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
janv. 26 19:00:20 $HOST gnome-shell[1335344]: _clutter_actor_fully_transform_vertices: assertion 'CLUTTER_IS_ACTOR (self)' failed
janv. 26 21:26:29 $HOST gnome-shell[1335344]: JS ERROR: TypeError: metaWindow.msWindow is undefined
                                                 updateTitleBarVisibility@$HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/utils/windows.js:8:9
                                                 setMsWorkspace/<@$HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/msWorkspace/msWindow.js:593:33
                                                 setMsWorkspace@$HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/msWorkspace/msWindow.js:591:15
                                                 setMonitor/<@$HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/msWorkspace/msWorkspace.js:513:22
                                                 setMonitor@$HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/msWorkspace/msWorkspace.js:512:27
                                                 onMonitorsChanged/<@$HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/manager/msWorkspaceManager.js:372:33
                                                 onMonitorsChanged@$HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/manager/msWorkspaceManager.js:370:14
                                                 MsWorkspaceManager/<@$HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/manager/msWorkspaceManager.js:132:18
                                                 _monitorsChanged@resource:///org/gnome/shell/ui/layout.js:546:14
janv. 26 21:26:29 $HOST gnome-shell[1335344]: Could not create transient scope for PID 1448028: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 1448028 does not exist.
janv. 26 21:26:29 $HOST gnome-shell[1335344]: Could not create transient scope for PID 1448031: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 1448031 does not exist.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:31 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:32 $HOST gnome-shell[1335344]: Removing a network device that was not added
janv. 26 21:26:34 $HOST gnome-shell[1335344]: ----------------
janv. 26 21:26:34 $HOST gnome-shell[1335344]: ENABLE EXTENSION
janv. 26 21:26:34 $HOST gnome-shell[1335344]: ----------------
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor StLabel is on because it needs an allocation.
janv. 26 21:26:35 $HOST gnome-shell[1335344]: Can't update stage views actor ClutterText is on because it needs an allocation.
janv. 26 21:26:40 $HOST gnome-shell[1335344]: onWindowFocus, [object instance wrapper GType:MetaWindowXwayland jsobj@0x74a8ea72e50 native@0x562895484a70]
janv. 26 21:26:40 $HOST gnome-shell[1335344]: Object .MsWindow (0x562893486730), has been already deallocated — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
janv. 26 21:26:40 $HOST gnome-shell[1335344]: == Stack trace for context 0x562890df61c0 ==
janv. 26 21:26:40 $HOST gnome-shell[1335344]: #0   562891038068 i   resource:///org/gnome/shell/ui/environment.js:308 (1c52a7d84420 @ 22)
janv. 26 21:26:40 $HOST gnome-shell[1335344]: #1   562891037fb8 i   $HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/layout/msWorkspace/msWindow.js:829 (74a8ea89790 @ 25)
janv. 26 21:26:40 $HOST gnome-shell[1335344]: #2   562891037f08 i   $HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/utils/debug.js:56 (74a8eaf9240 @ 81)
janv. 26 21:26:40 $HOST gnome-shell[1335344]: #3   562891037e68 i   $HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/manager/msFocusManager.js:121 (74a8eabe600 @ 56)
janv. 26 21:26:40 $HOST gnome-shell[1335344]: #4   562891037db8 i   $HOME/.local/share/gnome-shell/extensions/material-shell@papyelgringo/src/manager/msFocusManager.js:116 (74a8eabe650 @ 114)
janv. 26 21:26:40 $HOST gnome-shell[1335344]: #5   562891037ce8 i   self-hosted:850 (24180bf07510 @ 454)
janv. 26 21:26:40 $HOST gnome-shell[1335344]: Focus MsWindow, [null Inconnu]
janv. 26 21:26:41 $HOST gnome-shell[1335344]: onWindowFocus, [object instance wrapper GType:MetaWindowXwayland jsobj@0xbd12142e700 native@0x562892abb1a0]
janv. 26 21:26:41 $HOST gnome-shell[13

Source: material-shell/material-shell