Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
OniiCookie opened this issue Sep 24, 2024 · 8 comments · Fixed by #2311
Closed

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

OniiCookie opened this issue Sep 24, 2024 · 8 comments · Fixed by #2311
Labels
needs information Use this tag to identify old issues that can be closed if further information was not provided.

Comments

@OniiCookie
Copy link

OniiCookie commented Sep 24, 2024

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
Copy link

Neo-29 commented Sep 24, 2024

which disto?

@OniiCookie
Copy link
Author

OniiCookie commented Sep 25, 2024

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
Copy link
Collaborator

vanvugt commented Sep 25, 2024

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

@vanvugt vanvugt added the needs information Use this tag to identify old issues that can be closed if further information was not provided. label Sep 25, 2024
@OniiCookie
Copy link
Author

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

@OniiCookie
Copy link
Author

OniiCookie commented Sep 27, 2024

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? '#820'.

@OniiCookie
Copy link
Author

For anyone that reads this, workaround:

  • Lock machine using "CTRL+ALT+F1".
  • No issues found even after system goes into suspend mode.

@Neo-29
Copy link

Neo-29 commented Sep 29, 2024

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

@vanvugt
Copy link
Collaborator

vanvugt commented Sep 30, 2024

@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/

3v1n0 added a commit to 3v1n0/dash-to-dock that referenced this issue Oct 3, 2024
By adding parameters in commit 611690c we ended up hiding the base
object constructor parameter, and so the support for automatic
disconnection on parent object destruction.

Fixes: micheleg#2297
@3v1n0 3v1n0 closed this as completed in b815d68 Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs information Use this tag to identify old issues that can be closed if further information was not provided.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants