micheleg / dash-to-dock

A dock for the Gnome Shell. This extension moves the dash out of the overview transforming it in a dock for an easier launching of applications and a faster switching between windows and desktops.
https://micheleg.github.io/dash-to-dock/
GNU General Public License v2.0
3.89k stars 461 forks source link

dash-to-dock crashes gnome-shell on suspen\lock #2297

Closed OniiCookie closed 1 month ago

OniiCookie commented 1 month ago

Issue: Everytime i lock my machine or put into suspend mode, dash-to-dock crashes gnome-shell.

gnome-shell[849]: JS ERROR: TypeError: dockManager is null
    getApps@file:///home/usersname/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/locations.js:1489:9
    getRunningApps@file:///home/usersname/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/locations.js:1502:12
    get@file:///home/usersname/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/docking.js:1890:59
    _syncRunningApplications@resource:///org/gnome/shell/misc/introspect.js:80:26
    IntrospectService/<@resource:///org/gnome/shell/misc/introspect.js:37:18
    @resource:///org/gnome/shell/ui/init.js:21:20

Gnome Version: 47

Neo-29 commented 1 month ago

which disto?

OniiCookie commented 1 month ago

I'm running CachyOS, can confirm with extension disabled gnome-shell doesn't crash when system is locked or goes into suspend mode. To add further context, extension manager is flatpak version, using gnome in wayland.

vanvugt commented 1 month ago

It looks like one of the issues relating to #1992. Please check that you don't have multiple "dock" extensions enabled:

gnome-extensions list --enabled
OniiCookie commented 1 month ago

I've disabled all the other extensions and will monitor and see how it goes!

OniiCookie commented 1 month ago

Looks like the same issue still continues, haven't had problems in gnome 46.

Log: Sep 27 14:24:36 cachyos-x8664 gnome-shell[2584]: JS ERROR: TypeError: dockManager is null getApps@file:///home/username/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/locations.js:1489:9 getRunningApps@file:///home/username/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/locations.js:1502:12 get@file:///home/username/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/docking.js:1890:59 _syncRunningApplications@resource:///org/gnome/shell/misc/introspect.js:80:26 IntrospectService/<@resource:///org/gnome/shell/misc/introspect.js:37:18 @resource:///org/gnome/shell/ui/init.js:21:20 Sep 27 14:24:36 cachyos-x8664 gnome-shell[2584]: ** Sep 27 14:24:36 cachyos-x8664 gnome-shell[2584]: libmutter:ERROR:../mutter/src/core/window.c:5799:meta_window_get_work_area_for_logical_monitor: assertion failed: (logical_monitor) Sep 27 14:24:36 cachyos-x8664 gnome-shell[2584]: Bail out! libmutter:ERROR:../mutter/src/core/window.c:5799:meta_window_get_work_area_for_logical_monitor: assertion failed: (logical_monitor) Sep 27 14:24:36 cachyos-x8664 gnome-shell[2584]: == Stack trace for context 0x5a9893c28ea0 == Sep 27 14:24:36 cachyos-x8664 gnome-shell[2584]: #0 5a9893d1cb68 i resource:///org/gnome/shell/ui/init.js:21 (334bc4970c90 @ 48) Sep 27 14:24:39 cachyos-x8664 gnome-shell[9739]: Running GNOME Shell (using mutter 47.0) as a Wayland display server Sep 27 14:24:39 cachyos-x8664 gnome-shell[9739]: Device '/dev/dri/card0' prefers shadow buffer Sep 27 14:24:39 cachyos-x8664 gnome-shell[9739]: Added device '/dev/dri/card0' (amdgpu) using atomic mode setting. Sep 27 14:24:39 cachyos-x8664 gnome-shell[9739]: Created gbm renderer for '/dev/dri/card0' Sep 27 14:24:39 cachyos-x8664 gnome-shell[9739]: Boot VGA GPU /dev/dri/card0 selected as primary Sep 27 14:24:39 cachyos-x8664 gnome-shell[9739]: Obtained a high priority EGL context Sep 27 14:24:39 cachyos-x8664 gnome-shell[9739]: Using public X11 display :1024, (using :1025 for managed services) Sep 27 14:24:39 cachyos-x8664 gnome-shell[9739]: Using Wayland display name 'wayland-0' Sep 27 14:24:39 cachyos-x8664 gnome-shell[9739]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly. Sep 27 14:24:39 cachyos-x8664 gnome-shell[9739]: Will monitor session 6

Seems to be the same error before it crashes gnome-shell. Any thoughts? Could it be related to this topic? 'https://github.com/micheleg/dash-to-dock/issues/820'.

OniiCookie commented 1 month ago

For anyone that reads this, workaround:

Neo-29 commented 1 month ago

My workaround is I have given up on the extension. Too many issues along the way... I'm fed up.

vanvugt commented 1 month ago

@OniiCookie,

"CTRL+ALT+F1" doesn't lock the machine. It just switches from the desktop to the login screen. You can go the other way with "Ctrl+Alt+F2" so the screen was never locked (unless you left it that way for so long that it locked in the background).

Please run this command to identify the possible causes of the log message:

grep -lr dockManager /usr/share/gnome-shell/extensions/ ~/.local/share/gnome-shell/extensions/