geoph9 / hass-gshell-extension

A simple gnome shell extension for home assistant.
https://extensions.gnome.org/extension/4170/home-assistant-extension/
69 stars 17 forks source link

Can't enable a toggleable on Ubuntu 22.04 #48

Closed rmeissn closed 1 year ago

rmeissn commented 1 year ago

I tried to setup your extension (from gnome extensions page) on Ubuntu 22.04 (latest) and that worked, but I can't enable a toggleable. Whenever I enable it, the box is checked, but it doesn't appear in the panel menu. Not even after a logout and login. Whenever I close the preferences menu and repoen it, the toggleable appears deselected again.

gnome-shell logs give me:

Opening Preferences...
    Rebuilding tray...
    Object St.BoxLayout (0x55d04c621fa0), has been already disposed — 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.
    == Stack trace for context 0x55d04af4f4b0 ==
    #0   55d05145fb28 i   resource:///org/gnome/shell/ui/popupMenu.js:766 (183d1a915420 @ 22)
    #1   55d05145fa20 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:63 (3d55a8261ba0 @ 73)
    #2   55d05145f998 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:35 (3d55a8261b50 @ 41)
    #3   7ffd0f772a00 b   self-hosted:1178 (dc89fab0a10 @ 454)
    Rebuilding tray...
    == Stack trace for context 0x55d04af4f4b0 ==
    #0   55d05145fd80 i   resource:///org/gnome/shell/ui/popupMenu.js:766 (183d1a915420 @ 22)
    #1   55d05145fc78 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:63 (3d55a8261ba0 @ 73)
    #2   55d05145fbf0 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:35 (3d55a8261b50 @ 41)
    #3   7ffd0f770400 b   self-hosted:1178 (dc89fab0a10 @ 454)
    #4   7ffd0f771db0 b   resource:///org/gnome/gjs/modules/core/overrides/Gio.js:533 (dc89fad32e0 @ 169)
    #5   55d05145fb28 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:250 (3d55a8261f60 @ 544)
    #6   55d05145fa20 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:73 (3d55a8261ba0 @ 175)
    #7   55d05145f998 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:35 (3d55a8261b50 @ 41)
    #8   7ffd0f772a00 b   self-hosted:1178 (dc89fab0a10 @ 454)
    Object St.BoxLayout (0x55d04c621fa0), has been already disposed — 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.
    Object St.BoxLayout (0x55d04c621fa0), has been already disposed — 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.
    == Stack trace for context 0x55d04af4f4b0 ==
    #0   55d05145fe88 i   resource:///org/gnome/shell/ui/environment.js:83 (dc89facc150 @ 20)
    #1   55d05145fda0 i   resource:///org/gnome/shell/ui/popupMenu.js:706 (183d1a9151f0 @ 65)
    #2   7ffd0f76f960 b   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:92 (3d55a8261ba0 @ 900)
    #3   55d05145fbf0 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:35 (3d55a8261b50 @ 41)
    #4   7ffd0f770400 b   self-hosted:1178 (dc89fab0a10 @ 454)
    #5   7ffd0f771db0 b   resource:///org/gnome/gjs/modules/core/overrides/Gio.js:533 (dc89fad32e0 @ 169)
    #6   55d05145fb28 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:250 (3d55a8261f60 @ 544)
    #7   55d05145fa20 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:73 (3d55a8261ba0 @ 175)
    #8   55d05145f998 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:35 (3d55a8261b50 @ 41)
    #9   7ffd0f772a00 b   self-hosted:1178 (dc89fab0a10 @ 454)
    Object St.BoxLayout (0x55d04c621fa0), has been already disposed — 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.
    == Stack trace for context 0x55d04af4f4b0 ==
    #0   55d05145fe88 i   resource:///org/gnome/shell/ui/environment.js:83 (dc89facc150 @ 20)
    #1   55d05145fda0 i   resource:///org/gnome/shell/ui/popupMenu.js:706 (183d1a9151f0 @ 65)
    #2   7ffd0f76f960 b   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:96 (3d55a8261ba0 @ 966)
    #3   55d05145fbf0 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:35 (3d55a8261b50 @ 41)
    #4   7ffd0f770400 b   self-hosted:1178 (dc89fab0a10 @ 454)
    #5   7ffd0f771db0 b   resource:///org/gnome/gjs/modules/core/overrides/Gio.js:533 (dc89fad32e0 @ 169)
    #6   55d05145fb28 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:250 (3d55a8261f60 @ 544)
    #7   55d05145fa20 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:73 (3d55a8261ba0 @ 175)
    #8   55d05145f998 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:35 (3d55a8261b50 @ 41)
    #9   7ffd0f772a00 b   self-hosted:1178 (dc89fab0a10 @ 454)
    == Stack trace for context 0x55d04af4f4b0 ==
    #0   55d05145fe88 i   resource:///org/gnome/shell/ui/environment.js:83 (dc89facc150 @ 20)
    #1   55d05145fda0 i   resource:///org/gnome/shell/ui/popupMenu.js:734 (183d1a9151f0 @ 449)
    #2   7ffd0f76f960 b   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:96 (3d55a8261ba0 @ 966)
    #3   55d05145fbf0 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:35 (3d55a8261b50 @ 41)
    #4   7ffd0f770400 b   self-hosted:1178 (dc89fab0a10 @ 454)
    #5   7ffd0f771db0 b   resource:///org/gnome/gjs/modules/core/overrides/Gio.js:533 (dc89fad32e0 @ 169)
    #6   55d05145fb28 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:250 (3d55a8261f60 @ 544)
    Object St.BoxLayout (0x55d04c621fa0), has been already disposed — 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.
    #7   55d05145fa20 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:73 (3d55a8261ba0 @ 175)
    #8   55d05145f998 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:35 (3d55a8261b50 @ 41)
    #9   7ffd0f772a00 b   self-hosted:1178 (dc89fab0a10 @ 454)
    Object St.BoxLayout (0x55d04c621fa0), has been already disposed — 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.
    == Stack trace for context 0x55d04af4f4b0 ==
    #0   7ffd0f76ebf0 b   resource:///org/gnome/shell/ui/environment.js:83 (dc89facc150 @ 20)
    #1   55d05145fda0 i   resource:///org/gnome/shell/ui/popupMenu.js:706 (183d1a9151f0 @ 65)
    #2   7ffd0f76f960 b   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:122 (3d55a8261ba0 @ 1340)
    #3   55d05145fbf0 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:35 (3d55a8261b50 @ 41)
    #4   7ffd0f770400 b   self-hosted:1178 (dc89fab0a10 @ 454)
    #5   7ffd0f771db0 b   resource:///org/gnome/gjs/modules/core/overrides/Gio.js:533 (dc89fad32e0 @ 169)
    #6   55d05145fb28 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:250 (3d55a8261f60 @ 544)
    #7   55d05145fa20 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:73 (3d55a8261ba0 @ 175)
    #8   55d05145f998 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:35 (3d55a8261b50 @ 41)
    #9   7ffd0f772a00 b   self-hosted:1178 (dc89fab0a10 @ 454)
    clutter_actor_remove_child: assertion 'child->priv->parent != NULL' failed
    Object St.BoxLayout (0x55d04c621fa0), has been already disposed — 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.
    == Stack trace for context 0x55d04af4f4b0 ==
    #0   7ffd0f771270 b   resource:///org/gnome/shell/ui/environment.js:83 (dc89facc150 @ 20)
    #1   55d05145fb48 i   resource:///org/gnome/shell/ui/popupMenu.js:706 (183d1a9151f0 @ 65)
    #2   7ffd0f771f60 b   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:92 (3d55a8261ba0 @ 900)
    #3   55d05145f998 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:35 (3d55a8261b50 @ 41)
    #4   7ffd0f772a00 b   self-hosted:1178 (dc89fab0a10 @ 454)
    Object St.BoxLayout (0x55d04c621fa0), has been already disposed — 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.
    == Stack trace for context 0x55d04af4f4b0 ==
    #0   7ffd0f771270 b   resource:///org/gnome/shell/ui/environment.js:83 (dc89facc150 @ 20)
    #1   55d05145fb48 i   resource:///org/gnome/shell/ui/popupMenu.js:706 (183d1a9151f0 @ 65)
    #2   7ffd0f771f60 b   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:96 (3d55a8261ba0 @ 966)
    #3   55d05145f998 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:35 (3d55a8261b50 @ 41)
    #4   7ffd0f772a00 b   self-hosted:1178 (dc89fab0a10 @ 454)
    == Stack trace for context 0x55d04af4f4b0 ==
    #0   7ffd0f771270 b   resource:///org/gnome/shell/ui/environment.js:83 (dc89facc150 @ 20)
    #1   55d05145fb48 i   resource:///org/gnome/shell/ui/popupMenu.js:734 (183d1a9151f0 @ 449)
    #2   7ffd0f771f60 b   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:96 (3d55a8261ba0 @ 966)
    #3   55d05145f998 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:35 (3d55a8261b50 @ 41)
    #4   7ffd0f772a00 b   self-hosted:1178 (dc89fab0a10 @ 454)
    Object St.BoxLayout (0x55d04c621fa0), has been already disposed — 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.
    Object St.BoxLayout (0x55d04c621fa0), has been already disposed — 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.
    == Stack trace for context 0x55d04af4f4b0 ==
    #0   7ffd0f7716a0 b   resource:///org/gnome/shell/ui/environment.js:83 (dc89facc150 @ 20)
    #1   7ffd0f771e10 b   resource:///org/gnome/shell/ui/popupMenu.js:706 (183d1a9151f0 @ 65)
    #2   7ffd0f771f60 b   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:122 (3d55a8261ba0 @ 1340)
    #3   55d05145f998 i   ~/.local/share/gnome-shell/extensions/hass-gshell@geoph9-on-github/extension.js:35 (3d55a8261b50 @ 41)
    #4   7ffd0f772a00 b   self-hosted:1178 (dc89fab0a10 @ 454)
    clutter_actor_remove_child: assertion 'child->priv->parent != NULL' failed

--> I've replaced my home directory with ~/

geoph9 commented 1 year ago

So the togglables' panel is getting destroyed for some reason. I can't really replicate this, but I think the issue is on this line (i.e. the panel is destroyed at the start and then is not re-created).

Could you maybe comment the line after the if statement and see if it still occurs?

rmeissn commented 1 year ago

I've commented the line after the if statement, but that didn't change the issue and the log messages are still the same (except the last line is now missing).

geoph9 commented 1 year ago

Sorry I cannot replicate this. Maybe you have some other extension that interferes with this one? Could you try disabling all other extensions and re-installing hass-gshell?