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 460 forks source link

JS ERROR: TypeError: DockManager.getDefault() is null #1444

Open Razer0123 opened 3 years ago

Razer0123 commented 3 years ago

Getting this error several times per day

JS ERROR: TypeError: DockManager.getDefault() is null get settings@/home/alessandro/.local/share/gnome-shell/extensions/dash-to-dock@micxgx> updateNotificationBadgeStyle@/home/alessandro/.local/share/gnome-shell/extensions/das> _callExtensionDisable@resource:///org/gnome/shell/ui/extensionSystem.js:115:19 _disableAllExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:613:22 _disableAllExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:612:52 _sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:630:18 _emit@resource:///org/gnome/gjs/modules/core/_signals.js:114:47 _sync@resource:///org/gnome/shell/ui/sessionMode.js:197:14 pushMode@resource:///org/gnome/shell/ui/sessionMode.js:158:14 activate@resource:///org/gnome/shell/ui/screenShield.js:590:34 lock@resource:///org/gnome/shell/ui/screenShield.js:634:14 LockAsync@resource:///org/gnome/shell/ui/shellDBus.js:382:28 _handleMethodCall@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:354:35 _wrapJSObject/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:387:34

ljhui commented 3 years ago

me too

blsz commented 2 years ago

Over the course of 3 days I get this error about 20,000 times.

$ journalctl -b | grep "DockManager.getDefault() is null" | wc -l
18419

It occurs in sets of about 76 errors with the same timestamp.

$ journalctl -b | grep "DockManager.getDefault() is null" | grep "Jan 12 22:20:20" | wc -l
76

One instance of the error:

JS ERROR: TypeError: DockManager.getDefault() is null
get settings@/home/tomek/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/docking.js:1582:28
updateNotificationBadgeStyle@/home/tomek/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/appIconIndicators.js:680:31
_callExtensionDisable@resource:///org/gnome/shell/ui/extensionSystem.js:115:19
_onEnabledExtensionsChanged/<@resource:///org/gnome/shell/ui/extensionSystem.js:499:45
_onEnabledExtensionsChanged@resource:///org/gnome/shell/ui/extensionSystem.js:499:24
_onUserExtensionsEnabledChanged@resource:///org/gnome/shell/ui/extensionSystem.js:482:14

I uploaded the first 1MB of gnome-shell messages including stack traces to the following gist. https://gist.github.com/blsz/af959a84b7120270b632de15bb1b3969

Update: There are no errors when dash-to-dock is the only enabled extension. Enabling other extensions, including but not only "vertical overview", produces many errors. The design of the gnome extension framework allows for adverse interactions between extensions.

Update 2022-03-18: There are no more TypeError: DockManager.getDefault() is null errors with Gnome 41 and dash-to-dock installed from git. At this point, I see only one type of JS ERROR, Actor not in scroll view, which coincides with opening and closing Gnome Terminal windows.