argos icon indicating copy to clipboard operation
argos copied to clipboard

Error: Tried to construct an object without a GType; are you using GObject

Open pm314 opened this issue 5 years ago • 5 comments

In Gnome 3.34.2 (solus) Argos runs but when I click on the "extension" header, no drop down appears. Same behavior on several scripts and types (sh, py) Looking at the log I see the error above repeated many times (as many times as menu items?). I disabled all scripts but the Argos.sh and restarted and see the error just a couple of times. I've already completely uninstalled Argos, manually removed any leftovers, etc just to be sure but the problem is still there. Downgrading to 3.34.1 seems to fix it.

The error above was also recently reported in github for Gnome Shell System Monitor extension by someone on Arch Gnome. There is an explanation of the fix needed. I may take a shot at this with Argo but I am not a JS developer.

pm314 avatar Dec 24 '19 20:12 pm314

Just an update. This is the same issue as previous closed issue which is caused by a change in gjs. It was reverted back temporarily in gjs 1.58.3 but is now back (for good) in gjs 1.63.2.

pm314 avatar Jan 01 '20 03:01 pm314

The extensions runs well in Gnome 3.42 (Arch linux) but the system log is flooded by the following message: JS WARNING: [/home/focus/.local/share/gnome-shell/extensions/[email protected]/menuitem.js 25]: Tried to construct an object without a GType; are you using GObject.registerClass() when inheriting from a GObject type?

I've cloned and copied the source code from github. Is it possible to solve that or to remove the warning message in the log ?

LaurentOngaro avatar Feb 04 '20 17:02 LaurentOngaro

The extensions runs well in Gnome 3.42 (Arch linux) but the system log is flooded by the following message: JS WARNING: [/home/focus/.local/share/gnome-shell/extensions/[email protected]/menuitem.js 25]: Tried to construct an object without a GType; are you using GObject.registerClass() when inheriting from a GObject type?

I've cloned and copied the source code from github. Is it possible to solve that or to remove the warning message in the log ?

Just came here to post this same issue, logs being flooded with this.

image

image

image

ElijahLynn avatar Feb 05 '20 04:02 ElijahLynn

I've just seen in the followinq PR that the author, p-e-w, has stopped maintaining argos. So this issue won't be fixed for a while. Bad news for us !

LaurentOngaro avatar Feb 08 '20 13:02 LaurentOngaro

Now this appears again with the release of Gnome 3.36 as expected, see https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet/issues/551#issuecomment-558302621

real-or-random avatar Mar 08 '20 18:03 real-or-random