elvetemedve / gnome-shell-extension-system-monitor

Gnome Shell extension for displaying resource usage
GNU General Public License v3.0
87 stars 15 forks source link

Latest version not activatable #13

Open xasx opened 7 years ago

xasx commented 7 years ago

After upgrading on the Gnome extensions Website, the extension does not show as installed anymore.

Additionally, after installing it by switching it on on https://extensions.gnome.org/extension/1064/system-monitor/, it immediately turns to OFF again. This effectively prevents the extension's usage.

Using

The only thing I get from jouralctl is:

Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]: Archive:  /tmp/Z38AOY.shell-extension.zip
Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]:   inflating: /home/<username>/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/schemas/org.gnome.shell.extensions.system-monitor.gschema.xml
Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]:    creating: /home/<username>/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/icons/hicolor/scalable/devices/
Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]:   inflating: /home/<username>/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/util.js
Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]:   inflating: /home/<username>/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/widget.js
Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]:   inflating: /home/<username>/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/indicator.js
Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]:   inflating: /home/<username>/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/helpers/README.md
Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]:   inflating: /home/<username>/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/helpers/promise.js
Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]:   inflating: /home/<username>/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/view.js
Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]:   inflating: /home/<username>/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/convenience.js
Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]:   inflating: /home/<username>/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/meter.js
Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]:   inflating: /home/<username>/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/icons/hicolor/scalable/devices/cpu-symbolic.svg
Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]:   inflating: /home/<username>/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/helpers/file.js
Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]:   inflating: /home/<username>/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/prefs.js
Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]:   inflating: /home/<username>/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/extension.js
Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]:   inflating: /home/<username>/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/factory.js
Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]:   inflating: /home/<username>/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/stylesheet.css
Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]:   inflating: /home/<username>/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/icons/hicolor/scalable/devices/memory-symbolic.svg
Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]:   inflating: /home/<username>/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/file.js
Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]:   inflating: /home/<username>/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/schemas/gschemas.compiled
Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]:   inflating: /home/<username>/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/prefs_keys.js
Sep 20 08:24:26 <hostname> org.gnome.Shell.desktop[3155]:  extracting: /home/<username>/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/metadata.json
jeremy447 commented 7 years ago

I found that you need to press Alt + F2 and type the command r to restart Gnome Shell before/after installing/updating the extension. It will be great if it can be "fixed".

elvetemedve commented 7 years ago

@xasx The log you pasted here shows a normal installation output. Which is basically extracting the extension ZIP file into a specific sub-directory of your home directory. I have no idea what does Gnome do in addition to get extensions installed. If turning on the switch does not produces an error, then there is not much I can do.

As a workaround you can try what Paviluf suggested, or log out and log back in again.

caseyjp11 commented 7 years ago

This is the error I'm getting via the Tweak tool:

GLib.FileError: Failed to open file '/home/casey/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/schemas/gschemas.compiled': open() failed: No such file or directory

Stack trace: getSettings@/home/casey/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/convenience.js:82 SystemMonitorPrefsWidget<._init@/home/casey/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/prefs.js:195 wrapper@resource:///org/gnome/gjs/modules/lang.js:178 buildPrefsWidget@/home/casey/.local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com/prefs.js:258 Application<._selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:90 wrapper@resource:///org/gnome/gjs/modules/lang.js:178 Application<._onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:238 wrapper@resource:///org/gnome/gjs/modules/lang.js:178 main@resource:///org/gnome/shell/extensionPrefs/main.js:376 @

:1

I will note that all other extensions are working.

xasx commented 7 years ago

Well, after a reboot, I can install it again.

However, updating makes the users losing the extension once, in turn forcing them to re-install after a re-load/boot. If you don't consider this as a problem, feel free to close.

elvetemedve commented 7 years ago

@xasx Well, I can reproduce this bug by deleting the extension and try to install it again. Most likely some resource weren't freed up after removing. Restarting the Shell resolves this. However I have no idea what could be that resource allocation. I'll try to track it down.

@caseyjp11 I don't get such an error using the Tweak Tool. Furthermore if I look at the log from @xasx, it's clear that gschemas.compiled has been extracted from the ZIP.

elvetemedve commented 7 years ago

I went back to the version 1.0.0 of the extension, installed it and tries to update. Same thing happened. So this bug is there from the start.

elvetemedve commented 7 years ago

I reported the bug upstream. Hopefully somebody will be able to give guidance.

caseyjp11 commented 7 years ago

I've tried to upgrade two other extensions, and they both install, and the folders empty out. Tweak tool then reports the same errors. To get around the issue, I reinstalled both extensions manually and restarted the shell. Both extensions work, but show up as "upgradeable" at that point.

Unfortunately with the latest release of this extension it does not start or show up. I'm going to revert to the older version and try to install it manually to see if there is any difference.

caseyjp11 commented 7 years ago

Two more attempts to install, via tweaktool and a manual copy into the directory both generate the same error I posted above. I'm seeing no errors with any other extension. Just fyi.

caseyjp11 commented 7 years ago

I use the chrome-extensions plugin. It was updated today, and no more issues. Your extension is behaving normally. fyi.

elvetemedve commented 7 years ago

@caseyjp11 Thanks for the feedback.

alexeymuranov commented 7 years ago

I cannot install it in Ubuntu GNOME 16.04.1. On the Gnome Extensions Web site, the switch returns to "off" by itself. No directory .local/share/gnome-shell/extensions/System_Monitor@bghome.gmail.com is even created.

elvetemedve commented 7 years ago

@alexeymuranov Do you have the dependencies installed for Ubuntu? See installation instructions.

alexeymuranov commented 7 years ago

No, i didn't know about dependencies. Now it works, thanks! Maybe the dependencies should be mentioned on GNOME Extensions page?

bagage commented 7 years ago

By the way for any user encountering issue related to extensions installation, you can grab some error logs with dbus-monitor. For instance you may see logs like:

error time=1487276417.235767 sender=:1.15 -> destination=:1.963 error_name=org.gnome.Shell.DownloadExtensionError reply_serial=46
   string "404"

For instance if you did not install libgtop, you will have the following error when trying to install:

error time=1487276692.164984 sender=:1.967 -> destination=:1.963 error_name=org.gnome.Shell.LoadExtensionError reply_serial=99
   string "Error: Requiring GTop, version none: Typelib file for namespace 'GTop' (any version) not found"
jeremy447 commented 6 years ago

I installed Fedora 26 and I could install the extension without any problem.