gnome-shell-system-monitor-applet icon indicating copy to clipboard operation
gnome-shell-system-monitor-applet copied to clipboard

Extension fails to load on Gnome 3.36.1

Open bendavis78 opened this issue 5 years ago • 13 comments

The error shows as below in lg:

image

bendavis78 avatar May 07 '20 20:05 bendavis78

+1, using Ubuntu 20.04

lucas-varela avatar May 07 '20 22:05 lucas-varela

Fails to load on latest Manjaro testing which went from gdm 3.34.1 to 3.36.2

dpriedel avatar May 08 '20 13:05 dpriedel

Same error as @bendavis78 on Fedora 32. Then I try manual download v29 from https://extensions.gnome.org/extension/120/system-monitor/ it works, but it aligned to center and check-button in settings do nothing.

hary777 avatar May 12 '20 19:05 hary777

After upgrading to f32, it broke, then I found that fedora has started packaging this, and it works using the fedora package. Hope this helps.

HinTak avatar May 13 '20 15:05 HinTak

Is there an RPM available somewhere without downloading the whole distribution?

I've tried the other suggestions above but still no joy for my Manjaro system. (It had been working fine for a while) Thanks

dpriedel avatar May 13 '20 16:05 dpriedel

https://koji.fedoraproject.org is fedora's build farm, with current /beta / testing rpm's there. I occasionally go grab the next release packages when I cannot wait for it to hit release . The release packages are available under www.redhat.com or download.redhat.com eventually too.

HinTak avatar May 13 '20 16:05 HinTak

I had the same problem with Manjaro Testing when it went to gdm 3.36.2.

I found a solution.

Somehow, my system got reset to use the 'C' locale. Once I set it back to UTF-8, this extension loads and runs correctly

dpriedel avatar May 17 '20 13:05 dpriedel

@dpriedel can you post your output from locale and /etc/default/locale? Mine are as follow and don't work (Ubuntu 20.04 )

~$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

~$ cat /etc/default/locale 
#  File generated by update-locale
LANG="en_US.UTF-8"

kk49 avatar May 28 '20 14:05 kk49

Here it is/

locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=

then I logged out and logged back in.  Everything worked.

locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= On 5/28/20 10:21 AM, Krys Kamieniecki wrote:

@dpriedel https://github.com/dpriedel can you post your output from locale and /etc/default/locale? Mine are as follow and don't work (Ubuntu 20.04 )

|~$ locale LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= ~$ cat /etc/default/locale # File generated by update-locale LANG="en_US.UTF-8" |

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet/issues/607#issuecomment-635380107, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABUOHSXES5DIHNXJF37KLRLRTZXNLANCNFSM4M3USMSQ.

dpriedel avatar May 28 '20 20:05 dpriedel

Thanks! Unfortunately it looks like our locale match :/

kk49 avatar May 28 '20 21:05 kk49

This is the from the /var/log/syslog when the extension is installed (Gnome Shell 3.36.2)

JS ERROR: Extension [email protected]: Error: Tried to construct an object without a GType; are you using GObject.registerClass() when inheriting from a GObject type?
SystemMonitor_smDialog@/home/krys/.local/share/gnome-shell/extensions/[email protected]/extension.js:286:9
enable@/home/krys/.local/share/gnome-shell/extensions/[email protected]/extension.js:2309:23
_callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:166:32
_onEnabledExtensionsChanged/<@resource:///org/gnome/shell/ui/extensionSystem.js:475:18
_onEnabledExtensionsChanged@resource:///org/gnome/shell/ui/extensionSystem.js:474:11
_init/createCheckedMethod/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:529:46
enableExtension@resource:///org/gnome/shell/ui/extensionSystem.js:193:29
callback@resource:///org/gnome/shell/ui/extensionDownloader.js:233:44
gotExtensionZipFile/<@resource:///org/gnome/shell/ui/extensionDownloader.js:115:13

kk49 avatar May 29 '20 00:05 kk49

@dpriedel 's solution worked for me!! Here is a wrapper for the solution create file named locale.txt and set it's contents as -

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

then run

for l in $(cat locale.txt)
do
sudo update-locale $l
done

Log out and log back in to find the system monitor extension back. :)

markroxor avatar Jun 09 '20 19:06 markroxor

@markroxor but does this only work with en_US.UTF-8 locals or also other with others?

theScrabi avatar Dec 17 '20 12:12 theScrabi