arelange / gnome-shell-extension-hibernate-status

Gnome Shell extension that adds a hibernate/hybrid suspend button in Status menu.
GNU General Public License v2.0
151 stars 54 forks source link

[Solved] Stopped working after upgrade to kernel 5.0.0-20 #30

Closed federicoon closed 5 years ago

federicoon commented 5 years ago

The extension was working flawlessly on Ubuntu 19.04 until last kernel upgrade to 5.0.0-20-generic.

Since the upgrade, the hibernate button is missing from the status menu, although the Installed Extensions dashboard is still showing it as "on".

p91paul commented 5 years ago

does hibernation work through other means? e.g. launching systemctl hibernate from the terminal

federicoon commented 5 years ago

yes, sudo systemctl hibernate is still working

p91paul commented 5 years ago

can you post journalctl output? I need to see if there are errors during a gnome-shell restart.

federicoon commented 5 years ago

there are tons of entries, not sure if these ones might be realted:

giu 30 12:59:15 Home gnome-shell[2171]: JS WARNING: [resource:///org/gnome/shell/ui/workspacesView.js 527]: reference to undefined property "_workspacesViews" giu 30 12:59:15 Home gnome-shell[2171]: JS ERROR: Exception in callback for signal: cancel: TypeError: this._workspacesViews is undefined _endTouchGesture@resource:///org/gnome/shell/ui/workspacesView.js:527:25 _emit@resource:///org/gnome/gjs/modules/signals.js:128:27 set enabled@resource:///org/gnome/shell/ui/windowManager.js:478:13 WorkspacesDisplay<@resource:///org/gnome/shell/ui/workspacesView.js:482:9 ViewSelector<@resource:///org/gnome/shell/ui/viewSelector.js:167:35 ControlsManager<@resource:///org/gnome/shell/ui/overviewControls.js:405:29 init@resource:///org/gnome/shell/ui/overview.js:234:26 _initializeUI@resource:///org/gnome/shell/ui/main.js:187:5 start@resource:///org/gnome/shell/ui/main.js:127:5 @<main>:1:31 giu 30 12:59:22 Home gnome-shell[2171]: JS WARNING: [resource:///org/gnome/shell/ui/status/network.js 73]: reference to undefined property 0 giu 30 12:59:22 Home gnome-shell[2171]: JS ERROR: TypeError: active.get_devices(...)[0] is undefined ensureActiveConnectionProps@resource:///org/gnome/shell/ui/status/network.js:73:22 _getMainConnection@resource:///org/gnome/shell/ui/status/network.js:1785:13 _syncMainConnection@resource:///org/gnome/shell/ui/status/network.js:1809:32 _clientGot@resource:///org/gnome/shell/ui/status/network.js:1638:9 giu 30 12:59:22 Home gnome-shell[2171]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation giu 30 12:59:23 Home org.gnome.Shell.desktop[2171]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c). giu 30 12:59:23 Home org.gnome.Shell.desktop[2171]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a). giu 30 12:59:23 Home org.gnome.Shell.desktop[2171]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11). giu 30 12:59:23 Home org.gnome.Shell.desktop[2171]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d). giu 30 12:59:23 Home org.gnome.Shell.desktop[2171]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b). giu 30 12:59:23 Home org.gnome.Shell.desktop[2171]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e). giu 30 12:59:23 Home org.gnome.Shell.desktop[2171]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f). giu 30 12:59:23 Home org.gnome.Shell.desktop[2171]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12). giu 30 12:59:23 Home org.gnome.Shell.desktop[2171]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10). giu 30 12:59:23 Home dbus-daemon[2026]: [session uid=1000 pid=2026] Activating service name='org.gnome.Nautilus' requested by ':1.21' (uid=1000 pid=2171 comm="/usr/bin/gnome-s giu 30 12:59:23 Home dbus-daemon[2026]: [session uid=1000 pid=2026] Activating service name='org.freedesktop.FileManager1' requested by ':1.21' (uid=1000 pid=2171 comm="/usr/b giu 30 12:59:24 Home gnome-shell[2171]: GNOME Shell started at Sun Jun 30 2019 12:59:15 GMT+0200 (CEST)

giu 30 15:03:02 Home gnome-shell[2171]: JS WARNING: [resource:///org/gnome/gjs/modules/signals.js 128]: Too many arguments to method Clutter.Actor.destroy: expected 0, got 1 giu 30 15:03:02 Home gnome-shell[2171]: Object St.Button (0x5635806df430), has been already deallocated — impossible to access it. This might be caused by the object having b giu 30 15:03:02 Home org.gnome.Shell.desktop[2171]: == Stack trace for context 0x56357e2e7220 == giu 30 15:03:02 Home org.gnome.Shell.desktop[2171]: #0 56357fec58b0 i /home/giacof/.local/share/gnome-shell/extensions/hibernate-status@dromi/extension.js:228 (7f5f7a3a39 giu 30 15:03:02 Home org.gnome.Shell.desktop[2171]: #1 56357fec5838 i /home/giacof/.local/share/gnome-shell/extensions/hibernate-status@dromi/extension.js:244 (7f5f7a3a3b giu 30 15:03:02 Home org.gnome.Shell.desktop[2171]: #2 56357fec5778 i resource:///org/gnome/shell/ui/extensionSystem.js:79 (7f5fa964a4c0 @ 436) giu 30 15:03:02 Home org.gnome.Shell.desktop[2171]: #3 56357fec56f8 i resource:///org/gnome/shell/ui/extensionSystem.js:350 (7f5fa9650040 @ 13) giu 30 15:03:02 Home org.gnome.Shell.desktop[2171]: #4 7ffcb27e4540 b self-hosted:261 (7f5fa9bc05e0 @ 223) giu 30 15:03:02 Home org.gnome.Shell.desktop[2171]: #5 56357fec5678 i resource:///org/gnome/shell/ui/extensionSystem.js:349 (7f5fa964af70 @ 64) giu 30 15:03:02 Home org.gnome.Shell.desktop[2171]: #6 56357fec55f8 i resource:///org/gnome/shell/ui/extensionSystem.js:367 (7f5fa96500d0 @ 87) giu 30 15:03:02 Home org.gnome.Shell.desktop[2171]: #7 7ffcb27e5690 b resource:///org/gnome/gjs/modules/signals.js:128 (7f5fa9bcb820 @ 386) giu 30 15:03:02 Home org.gnome.Shell.desktop[2171]: #8 7ffcb27e62c0 b resource:///org/gnome/shell/ui/sessionMode.js:204 (7f5fa93d5d30 @ 254) giu 30 15:03:02 Home org.gnome.Shell.desktop[2171]: #9 56357fec54b8 i resource:///org/gnome/shell/ui/sessionMode.js:166 (7f5fa93d5af0 @ 40) giu 30 15:03:02 Home org.gnome.Shell.desktop[2171]: #10 56357fec5410 i resource:///org/gnome/shell/ui/screenShield.js:1272 (7f5fa93bec10 @ 188) giu 30 15:03:02 Home org.gnome.Shell.desktop[2171]: #11 56357fec5360 i resource:///org/gnome/shell/ui/screenShield.js:1321 (7f5fa93beca0 @ 391) giu 30 15:03:02 Home org.gnome.Shell.desktop[2171]: #12 56357fec52d8 i resource:///org/gnome/shell/ui/screenShield.js:732 (7f5fa93bc670 @ 57) giu 30 15:03:02 Home org.gnome.Shell.desktop[2171]: #13 56357fec5218 i self-hosted:979 (7f5fa9650940 @ 440) giu 30 15:03:02 Home org.gnome.Shell.desktop[2171]: #14 7ffcb27e9130 b resource:///org/gnome/gjs/modules/signals.js:128 (7f5fa9bcb820 @ 386) giu 30 15:03:02 Home org.gnome.Shell.desktop[2171]: #15 56357fec5170 i resource:///org/gnome/shell/misc/loginManager.js:174 (7f5fa960a1f0 @ 158) giu 30 15:03:02 Home org.gnome.Shell.desktop[2171]: #16 56357fec50b0 i self-hosted:981 (7f5fa9650940 @ 474) giu 30 15:03:02 Home org.gnome.Shell.desktop[2171]: #17 7ffcb27ea7b0 b resource:///org/gnome/gjs/modules/signals.js:128 (7f5fa9bcb820 @ 386) giu 30 15:03:02 Home org.gnome.Shell.desktop[2171]: #18 56357fec5010 i resource:///org/gnome/gjs/modules/overrides/Gio.js:117 (7f5fa9bdb550 @ 39) giu 30 15:03:02 Home gnome-shell[2171]: clutter_actor_destroy: assertion 'CLUTTER_IS_ACTOR (self)' failed

federicoon commented 5 years ago

if you could give me some pattern to search, I'd try to extract some more relevant entries. Many thanks

p91paul commented 5 years ago

which gnome-shell version are you on?

federicoon commented 5 years ago

I'm on GNOME Shell 3.32.1

federicoon commented 5 years ago

I tried to switch back to kernel 5.0.0-17, and the button is still missing! There were other packages affected by the above mentioned upgrade, though I don't remember which ones.

p91paul commented 5 years ago

@ksonbol in #31 had a very similar issue, but on Ubuntu 18.04 with Gnome Shell 3.28. I'd say those issues are linked, but based from your reports I'd exclude it's because of updates to:

@federicoon stacktrace points to code in the disable method, which doesn't make much sense (something should happen during enable, why disable?)

#0 56357fec58b0 i /home/giacof/.local/share/gnome-shell/extensions/hibernate-status@dromi/extension.js:228 
#1 56357fec5838 i /home/giacof/.local/share/gnome-shell/extensions/hibernate-status@dromi/extension.js:244

So there be some package you both upgraded. apt used to keep upgrade logs in /var/log/apt, can you both post which packages were installed in the offending upgrade?

Also, please try again to get logs. This time do it this way:

  1. start journalctl -f
  2. restart gnome-shell (alt+f2 then press r then press enter)
  3. open the menu where the hibernate button should appear
  4. post or attach here the whole journalctl output

Thanks for your help!!

ksonbol commented 5 years ago

Thanks for your prompt response! Here are the logs:

eipp.log history.log term.log

In an older but recent log file, there was only the installation of "unrar" library:

Start-Date: 2019-07-01 13:05:37 Commandline: apt install unrar Requested-By: karim (1000) Install: unrar:amd64 (1:5.5.8-1) End-Date: 2019-07-01 13:05:40

and

Log started: 2019-07-01 13:05:37 Selecting previously unselected package unrar. (Reading database ... (Reading database ... 100% (Reading database ... 278230 files and directories currently installed.) Preparing to unpack .../unrar_1%3a5.5.8-1_amd64.deb ... Unpacking unrar (1:5.5.8-1) ... Setting up unrar (1:5.5.8-1) ... update-alternatives: using /usr/bin/unrar-nonfree to provide /usr/bin/unrar (unrar) in auto mode Processing triggers for man-db (2.8.3-2ubuntu0.1) ... Log ended: 2019-07-01 13:05:40

And this is the journalctl output. btw, opening the menu where the hibernate option should appear didn't add any lines to journalctl output.

karim@karim:~$ journalctl -f -- Logs begin at Fri 2019-03-15 22:58:41 +03. -- Jul 04 12:25:47 karim dbus-daemon[893]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.166' (uid=1000 pid=3170 comm="/usr/lib/firefox/firefox -new-window " label="unconfined") Jul 04 12:25:47 karim systemd[1]: Starting Hostname Service... Jul 04 12:25:47 karim dbus-daemon[893]: [system] Successfully activated service 'org.freedesktop.hostname1' Jul 04 12:25:47 karim systemd[1]: Started Hostname Service. Jul 04 12:26:30 karim gnome-shell[1964]: pushModal: invocation of begin_modal failed Jul 04 12:26:56 karim dbus-daemon[893]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.168' (uid=1000 pid=3170 comm="/usr/lib/firefox/firefox -new-window " label="unconfined") Jul 04 12:26:56 karim systemd[1]: Starting Hostname Service... Jul 04 12:26:56 karim dbus-daemon[893]: [system] Successfully activated service 'org.freedesktop.hostname1' Jul 04 12:26:56 karim systemd[1]: Started Hostname Service. Jul 04 12:27:03 karim sudo[5805]: pam_unix(sudo:session): session closed for user root Jul 04 12:30:47 karim org.gnome.Shell.desktop[1964]: Window manager warning: CurrentTime used to choose focus window; focus window may not be correct. Jul 04 12:30:47 karim polkitd(authority=local)[1097]: Unregistered Authentication Agent for unix-session:2 (system bus name :1.78, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus) Jul 04 12:30:47 karim /usr/lib/gdm3/gdm-x-session[1821]: (II) modeset(0): EDID vendor "BOE", prod id 1762 Jul 04 12:30:47 karim /usr/lib/gdm3/gdm-x-session[1821]: (II) modeset(0): Printing DDC gathered Modelines: Jul 04 12:30:47 karim /usr/lib/gdm3/gdm-x-session[1821]: (II) modeset(0): Modeline "1920x1080"x0.0 141.40 1920 1968 2000 2142 1080 1083 1089 1100 +hsync -vsync (66.0 kHz eP) Jul 04 12:30:47 karim /usr/lib/gdm3/gdm-x-session[1821]: (II) modeset(0): Modeline "1920x1080"x0.0 113.12 1920 1968 2000 2142 1080 1083 1089 1100 +hsync -vsync (52.8 kHz e) Jul 04 12:30:47 karim gsd-media-keys[2132]: g_variant_get_va: assertion 'value != NULL' failed Jul 04 12:30:47 karim gsd-media-keys[2132]: g_variant_unref: assertion 'value != NULL' failed Jul 04 12:30:48 karim org.gnome.Shell.desktop[1964]: current session already has an ibus-daemon. Jul 04 12:30:48 karim dbus-daemon[893]: [system] Activating via systemd: service name='org.freedesktop.GeoClue2' unit='geoclue.service' requested by ':1.170' (uid=1000 pid=1964 comm="/usr/bin/gnome-shell " label="unconfined") Jul 04 12:30:48 karim systemd[1]: Starting Location Lookup Service... Jul 04 12:30:48 karim dbus-daemon[893]: [system] Successfully activated service 'org.freedesktop.GeoClue2' Jul 04 12:30:48 karim systemd[1]: Started Location Lookup Service. Jul 04 12:30:48 karim wpa_supplicant[897]: dbus: fill_dict_with_properties dbus_interface=fi.w1.wpa_supplicant1.Interface dbus_property=Stations getter failed Jul 04 12:30:48 karim polkitd(authority=local)[1097]: Registered Authentication Agent for unix-session:2 (system bus name :1.170 [/usr/bin/gnome-shell], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) Jul 04 12:30:48 karim gnome-shell[1964]: Telepathy is not available, chat integration will be disabled. Jul 04 12:30:48 karim gnome-shell[1964]: Ignoring length property that isn't a number at line 69, col 13 Jul 04 12:30:48 karim gnome-shell[1964]: Ignoring length property that isn't a number at line 69, col 13 Jul 04 12:30:48 karim gnome-shell[1964]: JS WARNING: [/usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com/appIcons.js 1028]: unreachable code after return statement Jul 04 12:30:48 karim gnome-shell[1964]: st_widget_get_theme_node called on the widget [0x55b2cb1b6dc0 StBin:insensitive] which is not in the stage. Jul 04 12:30:48 karim gnome-shell[1964]: st_widget_get_theme_node called on the widget [0x55b2cb1b6dc0 StBin:insensitive] which is not in the stage. Jul 04 12:30:49 karim gnome-shell[1964]: Some code accessed the property 'OVERRIDE_SCHEMA' on the module 'myWorkspaceThumbnail'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway. Jul 04 12:30:49 karim gnome-shell[1964]: Ignoring length property that isn't a number at line 69, col 13 Jul 04 12:30:49 karim gnome-shell[1964]: Ignoring length property that isn't a number at line 69, col 13 Jul 04 12:30:49 karim gnome-shell[1964]: Ignoring length property that isn't a number at line 69, col 13 Jul 04 12:30:49 karim gnome-shell[1964]: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.89/org/ayatana/NotificationItem/software_update_available Jul 04 12:30:49 karim gnome-shell[1964]: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.78/org/ayatana/NotificationItem/dropbox_client_2245 Jul 04 12:30:49 karim gnome-shell[1964]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation Jul 04 12:30:50 karim gnome-shell[1964]: GNOME Shell started at Thu Jul 04 2019 12:30:48 GMT+0300

federicoon commented 5 years ago

Here are the packages upgraded more recently, before the issue occurred: history.log.1.gz term.log.1.gz

p91paul commented 5 years ago

not a clue so far...@davidbailey00 do you have the opportunity to test on ubuntu?

federicoon commented 5 years ago

This is what I get after restarting gnome-shell and then clicking on the extension's configuration icon on https://extensions.gnome.org/local/

lug 04 23:56:54 Home gnome-shell[2211]: GNOME Shell started at Thu Jul 04 2019 23:56:52 GMT+0200 (CEST) lug 04 23:57:38 Home dbus-daemon[2071]: [session uid=1000 pid=2071] Activating service name='org.gnome.ChromeGnomeShell' requested by ':1.301' (uid=1000 pid=21851 comm="/usr/bin/python3 /usr/bin/chrome-gnome-shell /usr/" label="unconfined") lug 04 23:57:38 Home dbus-daemon[2071]: [session uid=1000 pid=2071] Successfully activated service 'org.gnome.ChromeGnomeShell' lug 04 23:57:41 Home gnome-shell[2211]: g_environ_setenv: assertion 'value != NULL' failed lug 04 23:57:42 Home gnome-shell-ext[21868]: JS LOG: Extension desktop-icons@csoriano already installed in /home/giacof/.local/share/gnome-shell/extensions/desktop-icons@csoriano. /usr/share/gnome-shell/extensions/desktop-icons@csoriano will not be loaded lug 04 23:57:42 Home gnome-shell-ext[21868]: JS ERROR: Error: Expected type object for Argument 'widget' but got type 'undefined' _selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:97:9 _onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:320:17 main@resource:///org/gnome/shell/extensionPrefs/main.js:635:5 @

:1:43 lug 04 23:57:53 Home geoclue[21772]: Service not used for 60 seconds. Shutting down.. lug 04 23:57:53 Home systemd[1]: geoclue.service: Main process exited, code=killed, status=15/TERM lug 04 23:57:53 Home systemd[1]: geoclue.service: Succeeded.

ksonbol commented 5 years ago

This is also what I got when I click on the upgrade button and choose to download and install the extension. It is strange though that the upgrade button appears again after I refresh the page. I guess this is the button @federicoon means? because I don't have a configuration button available there.

This line seems suscpicipious: *Jul 05 12:32:55 karim gnome-software[3155]: State change on user///shell-extension/hibernate-status_dromi/ from available to installed is not OK**

Jul 05 12:32:48 karim gnome-shell[1964]: Object .Gjs_AppIndicatorIconActor1 (0x55d30561f4e0), has been already finalized. Impossible to set any property to it. Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: == Stack trace for context 0x55d30300d4b0 == Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #0 0x7fffc05e6980 I resource:///org/gnome/gjs/modules/_legacy.js:83 (0x7fc5841b5de0 @ 87) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #1 0x55d30339b050 i /usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/indicatorStatusIcon.js:93 (0x7fc52fc21a28 @ 58) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #2 0x7fffc05e7560 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7fc5841b5de0 @ 71) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #3 0x7fffc05e7620 b self-hosted:916 (0x7fc5841f12b8 @ 367) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #4 0x7fffc05e76a0 I resource:///org/gnome/gjs/modules/signals.js:128 (0x7fc5841d2230 @ 386) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #5 0x55d30339afc8 i /usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/appIndicator.js:190 (0x7fc52fc136f8 @ 22) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #6 0x7fffc05e8280 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7fc5841b5de0 @ 71) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #7 0x55d30339af20 i /usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/statusNotifierWatcher.js:219 (0x7fc52fc0ecd0 @ 225) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #8 0x7fffc05e8e60 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7fc5841b5de0 @ 71) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #9 0x55d30339aea8 i /usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/extension.js:61 (0x7fc5340f1f78 @ 37) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #10 0x55d30339ade8 i resource:///org/gnome/shell/ui/extensionSystem.js:70 (0x7fc5746592b8 @ 229) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #11 0x55d30339ad60 i resource:///org/gnome/shell/ui/extensionSystem.js:194 (0x7fc5746594d8 @ 18) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #12 0x55d30339acd0 i resource:///org/gnome/shell/ui/extensionDownloader.js:73 (0x7fc57465e890 @ 93) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #13 0x55d30339ac50 i resource:///org/gnome/shell/ui/shellDBus.js:403 (0x7fc57415c230 @ 15) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #14 0x7fffc05e9a40 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7fc5841b5de0 @ 71) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #15 0x55d30339ab88 i resource:///org/gnome/gjs/modules/overrides/Gio.js:256 (0x7fc5841e5450 @ 65) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #16 0x55d30339aae0 i resource:///org/gnome/gjs/modules/overrides/Gio.js:326 (0x7fc5841e5670 @ 34) Jul 05 12:32:48 karim gnome-shell[1964]: Object .Gjs_AppIndicatorIconActor1 (0x55d30563ef90), has been already finalized. Impossible to set any property to it. Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: == Stack trace for context 0x55d30300d4b0 == Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #0 0x7fffc05e6980 I resource:///org/gnome/gjs/modules/_legacy.js:83 (0x7fc5841b5de0 @ 87) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #1 0x55d30339b050 i /usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/indicatorStatusIcon.js:93 (0x7fc52fc21a28 @ 58) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #2 0x7fffc05e7560 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7fc5841b5de0 @ 71) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #3 0x7fffc05e7620 b self-hosted:916 (0x7fc5841f12b8 @ 367) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #4 0x7fffc05e76a0 I resource:///org/gnome/gjs/modules/signals.js:128 (0x7fc5841d2230 @ 386) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #5 0x55d30339afc8 i /usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/appIndicator.js:190 (0x7fc52fc136f8 @ 22) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #6 0x7fffc05e8280 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7fc5841b5de0 @ 71) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #7 0x55d30339af20 i /usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/statusNotifierWatcher.js:219 (0x7fc52fc0ecd0 @ 225) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #8 0x7fffc05e8e60 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7fc5841b5de0 @ 71) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #9 0x55d30339aea8 i /usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/extension.js:61 (0x7fc5340f1f78 @ 37) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #10 0x55d30339ade8 i resource:///org/gnome/shell/ui/extensionSystem.js:70 (0x7fc5746592b8 @ 229) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #11 0x55d30339ad60 i resource:///org/gnome/shell/ui/extensionSystem.js:194 (0x7fc5746594d8 @ 18) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #12 0x55d30339acd0 i resource:///org/gnome/shell/ui/extensionDownloader.js:73 (0x7fc57465e890 @ 93) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #13 0x55d30339ac50 i resource:///org/gnome/shell/ui/shellDBus.js:403 (0x7fc57415c230 @ 15) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #14 0x7fffc05e9a40 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7fc5841b5de0 @ 71) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #15 0x55d30339ab88 i resource:///org/gnome/gjs/modules/overrides/Gio.js:256 (0x7fc5841e5450 @ 65) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #16 0x55d30339aae0 i resource:///org/gnome/gjs/modules/overrides/Gio.js:326 (0x7fc5841e5670 @ 34) Jul 05 12:32:48 karim gnome-shell[1964]: ../../../../gobject/gsignal.c:2641: instance '0x55d304e05d20' has no handler with id '9962' Jul 05 12:32:48 karim gnome-shell[1964]: Object Gio.Settings (0x55d304e05d20), has been already deallocated - 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 Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: == Stack trace for context 0x55d30300d4b0 == Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #0 0x55d30339afa0 i /home/karim/.local/share/gnome-shell/extensions/workspaces-to-dock@passingthru67.gmail.com/dockedWorkspaces.js:1004 (0x7fc5340ccb38 @ 27) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #1 0x7fffc05e8280 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7fc5841b5de0 @ 71) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #2 0x55d30339af20 i /home/karim/.local/share/gnome-shell/extensions/workspaces-to-dock@passingthru67.gmail.com/dockedWorkspaces.js:662 (0x7fc5340cc6f8 @ 270) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #3 0x7fffc05e8e60 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7fc5841b5de0 @ 71) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #4 0x55d30339aea8 i /home/karim/.local/share/gnome-shell/extensions/workspaces-to-dock@passingthru67.gmail.com/extension.js:98 (0x7fc5340b9890 @ 42) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #5 0x55d30339ade8 i resource:///org/gnome/shell/ui/extensionSystem.js:70 (0x7fc5746592b8 @ 229) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #6 0x55d30339ad60 i resource:///org/gnome/shell/ui/extensionSystem.js:194 (0x7fc5746594d8 @ 18) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #7 0x55d30339acd0 i resource:///org/gnome/shell/ui/extensionDownloader.js:73 (0x7fc57465e890 @ 93) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #8 0x55d30339ac50 i resource:///org/gnome/shell/ui/shellDBus.js:403 (0x7fc57415c230 @ 15) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #9 0x7fffc05e9a40 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7fc5841b5de0 @ 71) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #10 0x55d30339ab88 i resource:///org/gnome/gjs/modules/overrides/Gio.js:256 (0x7fc5841e5450 @ 65) Jul 05 12:32:48 karim org.gnome.Shell.desktop[1964]: #11 0x55d30339aae0 i resource:///org/gnome/gjs/modules/overrides/Gio.js:326 (0x7fc5841e5670 @ 34) Jul 05 12:32:48 karim gnome-shell[1964]: g_settings_get_value: assertion 'G_IS_SETTINGS (settings)' failed Jul 05 12:32:48 karim gnome-shell[1964]: g_variant_get_type: assertion 'value != NULL' failed Jul 05 12:32:48 karim gnome-shell[1964]: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed Jul 05 12:32:48 karim gnome-shell[1964]: g_variant_get_boolean: assertion 'g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)' failed Jul 05 12:32:48 karim gnome-shell[1964]: g_variant_unref: assertion 'value != NULL' failed Jul 05 12:32:48 karim gnome-shell[1964]: st_widget_get_theme_node called on the widget [0x55d305d6dda0 StBin:insensitive] which is not in the stage. Jul 05 12:32:48 karim gnome-shell[1964]: st_widget_get_theme_node called on the widget [0x55d305d6dda0 StBin:insensitive] which is not in the stage. Jul 05 12:32:49 karim gnome-software[3155]: State change on user///shell-extension/hibernate-status_dromi/* from installed to available is not OK Jul 05 12:32:49 karim gnome-shell[1964]: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.78/org/ayatana/NotificationItem/dropbox_client_2245 Jul 05 12:32:49 karim gnome-shell[1964]: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.89/org/ayatana/NotificationItem/software_update_available Jul 05 12:32:49 karim gnome-shell[1964]: [AppIndicatorSupport-WARN] while calling AboutToShow: Gio.IOErrorEnum: Method 'com.canonical.dbusmenu.AboutToShow' returned type '()', but expected '(b)' Jul 05 12:32:55 karim gnome-shell[1964]: JS WARNING: [resource:///org/gnome/shell/ui/extensionDownloader.js 96]: reference to undefined property "GLocalFileOutputStream" Jul 05 12:32:55 karim org.gnome.Shell.desktop[1964]: Archive: /tmp/940X3Z.shell-extension.zip Jul 05 12:32:55 karim org.gnome.Shell.desktop[1964]: inflating: /home/karim/.local/share/gnome-shell/extensions/hibernate-status@dromi/README.md Jul 05 12:32:55 karim org.gnome.Shell.desktop[1964]: inflating: /home/karim/.local/share/gnome-shell/extensions/hibernate-status@dromi/LICENSE Jul 05 12:32:55 karim org.gnome.Shell.desktop[1964]: inflating: /home/karim/.local/share/gnome-shell/extensions/hibernate-status@dromi/confirmDialog.js Jul 05 12:32:55 karim org.gnome.Shell.desktop[1964]: inflating: /home/karim/.local/share/gnome-shell/extensions/hibernate-status@dromi/extension.js Jul 05 12:32:55 karim org.gnome.Shell.desktop[1964]: extracting: /home/karim/.local/share/gnome-shell/extensions/hibernate-status@dromi/metadata.json Jul 05 12:32:55 karim gnome-shell[1964]: Some code accessed the property 'ENABLED_EXTENSIONS_KEY' on the module 'extensionSystem'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway. *Jul 05 12:32:55 karim gnome-software[3155]: State change on user///shell-extension/hibernate-status_dromi/ from available to installed is not OK**

Jul 05 12:33:10 karim org.gnome.Nautilus[1831]: SchedulePriorTracktype called Jul 05 12:33:10 karim org.gnome.Nautilus[1831]: GetDntDataPriorQueue sql exec success

federicoon commented 5 years ago

@ksonbol I meant the tools icon with the tooltip "Configure this extension". I can't see any upgrade button, I only have a sliding button to switch the extension on and off

federicoon commented 5 years ago

I tried again the suggested procedure, after uninstalling and then reinstalling the extension. Here is journalctl output (note that opening the menu has no effect, as previously reported by ksonbol):

lug 05 19:31:39 Home gnome-shell[2072]: [AppIndicatorSupport-FATAL] unable to update overlay icon lug 05 19:31:40 Home org.gnome.Shell.desktop[2072]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a). lug 05 19:31:40 Home org.gnome.Shell.desktop[2072]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11). lug 05 19:31:40 Home org.gnome.Shell.desktop[2072]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12). lug 05 19:31:40 Home org.gnome.Shell.desktop[2072]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b). lug 05 19:31:40 Home org.gnome.Shell.desktop[2072]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c). lug 05 19:31:40 Home org.gnome.Shell.desktop[2072]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d). lug 05 19:31:40 Home org.gnome.Shell.desktop[2072]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e). lug 05 19:31:40 Home org.gnome.Shell.desktop[2072]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f). lug 05 19:31:40 Home org.gnome.Shell.desktop[2072]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10). lug 05 19:32:40 Home org.gnome.Shell.desktop[2072]: Window manager warning: META_CURRENT_TIME used to choose focus window; focus window may not be correct. lug 05 19:32:40 Home gnome-shell[2072]: Object Meta.BackgroundActor (0x563b46fa7750), has been already deallocated — 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. lug 05 19:32:40 Home org.gnome.Shell.desktop[2072]: == Stack trace for context 0x563b44a6c220 == lug 05 19:32:40 Home org.gnome.Shell.desktop[2072]: #0 7fff91ef7a20 b resource:///org/gnome/gjs/modules/overrides/GObject.js:468 (7ff0842b90d0 @ 25) lug 05 19:32:40 Home org.gnome.Shell.desktop[2072]: #1 563b496c6110 i /home/giacof/.local/share/gnome-shell/extensions/desktop-icons@csoriano/desktopGrid.js:190 (7ff051190160 @ 75) lug 05 19:32:40 Home org.gnome.Shell.desktop[2072]: #2 563b496c6098 i /home/giacof/.local/share/gnome-shell/extensions/desktop-icons@csoriano/desktopGrid.js:111 (7ff051189d30 @ 12) lug 05 19:32:40 Home org.gnome.Shell.desktop[2072]: #3 563b496c6020 i resource:///org/gnome/shell/ui/main.js:202 (7ff0842d2e50 @ 12) lug 05 19:32:40 Home polkitd(authority=local)[1384]: Unregistered Authentication Agent for unix-session:2 (system bus name :1.330, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale it_IT.UTF-8) (disconnected from bus) lug 05 19:32:41 Home /usr/lib/gdm3/gdm-x-session[1918]: (II) modeset(0): EDID vendor "AUO", prod id 8685 lug 05 19:32:41 Home /usr/lib/gdm3/gdm-x-session[1918]: (II) modeset(0): Printing DDC gathered Modelines: lug 05 19:32:41 Home /usr/lib/gdm3/gdm-x-session[1918]: (II) modeset(0): Modeline "1920x1080"x0.0 140.00 1920 1968 2068 2082 1080 1090 1100 1120 +hsync -vsync (67.2 kHz eP) lug 05 19:32:41 Home /usr/lib/gdm3/gdm-x-session[1918]: (II) modeset(0): Modeline "1920x1080"x0.0 140.00 1920 1968 2068 2520 1080 1090 1100 1388 +hsync -vsync (55.6 kHz e) lug 05 19:32:41 Home gsd-media-keys[2255]: g_variant_get_va: assertion 'value != NULL' failed lug 05 19:32:41 Home gsd-media-keys[2255]: g_variant_unref: assertion 'value != NULL' failed lug 05 19:32:42 Home org.gnome.Shell.desktop[2072]: current session already has an ibus-daemon. lug 05 19:32:42 Home gsd-media-keys[2255]: g_variant_get_va: assertion 'value != NULL' failed lug 05 19:32:42 Home gsd-media-keys[2255]: g_variant_unref: assertion 'value != NULL' failed lug 05 19:32:43 Home gnome-shell[2072]: g_dir_open_with_errno: assertion 'path != NULL' failed lug 05 19:32:43 Home gnome-shell[2072]: g_filename_to_utf8: assertion 'opsysstring != NULL' failed lug 05 19:32:43 Home gnome-shell[2072]: g_dir_open_with_errno: assertion 'path != NULL' failed lug 05 19:32:43 Home gnome-shell[2072]: g_filename_to_utf8: assertion 'opsysstring != NULL' failed lug 05 19:32:43 Home dbus-daemon[1277]: [system] Activating via systemd: service name='org.freedesktop.GeoClue2' unit='geoclue.service' requested by ':1.859' (uid=1000 pid=2072 comm="/usr/bin/gnome-shell " label="unconfined") lug 05 19:32:43 Home systemd[1]: Starting Location Lookup Service... lug 05 19:32:44 Home PackageKit[19743]: daemon start lug 05 19:32:44 Home gnome-shell[2072]: Some code accessed the property 'Prefs' on the module 'prefs'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway. lug 05 19:32:44 Home gnome-shell[2072]: Extension desktop-icons@csoriano already installed in /home/giacof/.local/share/gnome-shell/extensions/desktop-icons@csoriano. /usr/share/gnome-shell/extensions/desktop-icons@csoriano will not be loaded lug 05 19:32:44 Home gsd-media-keys[2255]: g_variant_get_va: assertion 'value != NULL' failed lug 05 19:32:44 Home gsd-media-keys[2255]: g_variant_unref: assertion 'value != NULL' failed lug 05 19:32:45 Home gnome-shell[2072]: JS WARNING: [/usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com/appIcons.js 1054]: unreachable code after return statement lug 05 19:32:45 Home dbus-daemon[1277]: [system] Successfully activated service 'org.freedesktop.PackageKit' lug 05 19:32:45 Home systemd[1]: Started PackageKit Daemon. lug 05 19:32:45 Home systemd[1]: Started Run anacron jobs. lug 05 19:32:45 Home anacron[19753]: Anacron 2.3 started on 2019-07-05 lug 05 19:32:45 Home systemd[1]: anacron.service: Succeeded. lug 05 19:32:45 Home anacron[19753]: Normal exit (0 jobs run) lug 05 19:32:45 Home gnome-shell[2072]: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.80/org/ayatana/NotificationItem/software_update_available lug 05 19:32:45 Home NetworkManager[1282]: [1562347965.7320] agent-manager: req[0x7fc38c0042e0, :1.859/org.gnome.Shell.NetworkAgent/1000]: agent registered lug 05 19:32:45 Home gnome-shell[2072]: [AppIndicatorSupport-FATAL] unable to update overlay icon lug 05 19:32:45 Home gnome-shell[2072]: [AppIndicatorSupport-FATAL] unable to update overlay icon lug 05 19:32:45 Home gnome-shell[2072]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation lug 05 19:32:45 Home gnome-shell[2072]: JS ERROR: Exception in callback for signal: show: TypeError: this._player.trackArtists.join is not a function _update@resource:///org/gnome/shell/ui/mpris.js:60:23 MediaMessage@resource:///org/gnome/shell/ui/mpris.js:47:9 _addPlayer/<@resource:///org/gnome/shell/ui/mpris.js:222:31 _emit@resource:///org/gnome/gjs/modules/signals.js:128:27 _updateState@resource:///org/gnome/shell/ui/mpris.js:187:17 _onPlayerProxyReady@resource:///org/gnome/shell/ui/mpris.js:169:9 _makeProxyWrapper/</<@resource:///org/gnome/gjs/modules/overrides/Gio.js:191:21 lug 05 19:32:46 Home org.gnome.Shell.desktop[2072]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b). lug 05 19:32:46 Home org.gnome.Shell.desktop[2072]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11). lug 05 19:32:46 Home org.gnome.Shell.desktop[2072]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f). lug 05 19:32:46 Home org.gnome.Shell.desktop[2072]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12). lug 05 19:32:46 Home org.gnome.Shell.desktop[2072]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d). lug 05 19:32:46 Home org.gnome.Shell.desktop[2072]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c). lug 05 19:32:46 Home org.gnome.Shell.desktop[2072]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10). lug 05 19:32:46 Home org.gnome.Shell.desktop[2072]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e). lug 05 19:32:46 Home org.gnome.Shell.desktop[2072]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a). lug 05 19:32:46 Home gnome-shell[2072]: GNOME Shell started at Fri Jul 05 2019 19:32:44 GMT+0200 (CEST)

ksonbol commented 5 years ago

@ksonbol I meant the tools icon with the tooltip "Configure this extension". I can't see any upgrade button, I only have a sliding button to switch the extension on and off

Yeah, I don't have that. I have the upgrade icon instead.

federicoon commented 5 years ago

Great news! After some search on the web, I created a file named com.ubuntu.enable-hibernate.pkla in the directory /etc/polkit-1/localauthority/50-local.d, with the following content:

[Enable hibernate by default in power]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes

and then the hibernate button has magically come back!

ksonbol commented 5 years ago

Thank you @federicoon, that worked for me as well! But I don't understand, is this an alternative to the extension or is it just enabling it?

federicoon commented 5 years ago

No, it's not an alternative, rather a prerequisite. You can check it yourself, just by temporarily disabling the Gnome extension: you'll see the hibernate botton will disappear from the menu.

p91paul commented 5 years ago

Thanks for finding a workaround! @davidbailey00 you should probably add this to the README, as others are going to be affected.