gnome-shell-extension-appindicator icon indicating copy to clipboard operation
gnome-shell-extension-appindicator copied to clipboard

trayIconsManager is null

Open Baysul opened this issue 2 years ago • 5 comments

Installed the latest version of this extension through the website but there are no tray icons even when there should be.

Based on a comment from the extension page, I determined that maybe I was missing a package called libappindicator-gtk3 so I installed it but it still didn't show any icons. So I disabled the extension and now I cannot re-enable it because it has this error: image

Baysul avatar Jan 25 '23 21:01 Baysul

I would need journalctl logs to get more context.

3v1n0 avatar Feb 24 '23 05:02 3v1n0

I have the same error. Running latest debian testing (Debian GNU/Linux trixie/sid), gnome version 44.5.

heres my journalctl of installing and then disabling it:

bOct 22 20:45:11 x230debian gnome-shell[1690]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Oct 22 20:46:03 x230debian dbus-daemon[1504]: [session uid=1000 pid=1504] Activating service name='org.gnome.BrowserConnector' requested by ':1.143' >
Oct 22 20:46:03 x230debian dbus-daemon[1504]: [session uid=1000 pid=1504] Successfully activated service 'org.gnome.BrowserConnector'
Oct 22 20:46:05 x230debian gnome-shell[14191]: Archive:  /tmp/4WKKD2.shell-extension.zip
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:    creating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:   inflating: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:05 x230debian gnome-shell[14191]:  extracting: /home/username/.local/share/gnome-shell/extensions/[email protected]>
Oct 22 20:46:18 x230debian gnome-shell[1690]: JS ERROR: Extension [email protected]: TypeError: trayIconsManager is null
                                              destroy@/home/username/.local/share/gnome-shell/extensions/[email protected]/trayI>
                                              disable@/home/username/.local/share/gnome-shell/extensions/[email protected]/exten>
                                              _callExtensionDisable@resource:///org/gnome/shell/ui/extensionSystem.js:132:32
                                              _onEnabledExtensionsChanged@resource:///org/gnome/shell/ui/extensionSystem.js:565:24
                                              _loadExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:627:18
                                              createCheckedMethod/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:730:46
                                              disableExtension@resource:///org/gnome/shell/ui/extensionSystem.js:238:29
                                              DisableExtension@resource:///org/gnome/shell/ui/shellDBus.js:451:38
                                              _handleMethodCall@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:329:38
                                              _wrapJSObject/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:408:34

LeoSum8 avatar Oct 22 '23 18:10 LeoSum8

Getting the same error after updating to Fedora 39

Razer0123 avatar Oct 23 '23 00:10 Razer0123

Hi Marco,

I do not use this extension but tried it out for an eventual systray for Thunderbird 128 (snap) in Noble.

I hit this bug here, when disabling: https://github.com/ubuntu/gnome-shell-extension-appindicator/blob/922498c57163298adf0e701926fdd3b4757b34a1/extension.js#L62

Stack trace:
  destroy@file:///usr/share/gnome-shell/extensions/[email protected]/trayIconsManager.js:36:9
  disable@file:///usr/share/gnome-shell/extensions/[email protected]/extension.js:62:43
  _callExtensionDisable@resource:///org/gnome/shell/ui/extensionSystem.js:218:32
  _onEnabledExtensionsChanged@resource:///org/gnome/shell/ui/extensionSystem.js:644:24
  _loadExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:739:18
  createCheckedMethod/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:730:46
  disableExtension@resource:///org/gnome/shell/ui/extensionSystem.js:310:29
  DisableExtension@resource:///org/gnome/shell/ui/shellDBus.js:457:38
  _handleMethodCall@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:329:38
  _wrapJSObject/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:408:34
  @resource:///org/gnome/shell/ui/init.js:21:20

Consequence: the next lines in destroy function are not applied, the extension remains activated in GS.

fthx avatar Jul 10 '24 16:07 fthx

So maybe here: https://github.com/ubuntu/gnome-shell-extension-appindicator/blob/922498c57163298adf0e701926fdd3b4757b34a1/trayIconsManager.js#L36

I would try to simply include:

if (trayIconsManager)
    trayIconsManager.destroy();

FWIW

fthx avatar Jul 10 '24 16:07 fthx