firecat53 / networkmanager-dmenu

Control NetworkManager via dmenu
MIT License
783 stars 74 forks source link

G_IS_OBJECT failed warning #97

Closed RaZ0rr-Two closed 2 years ago

RaZ0rr-Two commented 2 years ago

I am running mx linux 19.4 based on debian 10 (buster). I am getting the following error when running the networkmanager-dmenu script. I have installed all the mentioned dependencies

(process:19628): GLib-GObject-CRITICAL **: 22:03:00.909: g_object_get_qdata: assertion 'G_IS_OBJECT (object)' failed

(process:19628): GLib-GObject-CRITICAL **: 22:03:00.910: g_object_set_qdata_full: assertion 'G_IS_OBJECT (object)' failed

(process:19628): GLib-GObject-CRITICAL **: 22:03:00.910: g_object_set_qdata_full: assertion 'G_IS_OBJECT (object)' failed

(process:19628): GLib-GObject-CRITICAL **: 22:03:00.910: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
RaZ0rr-Two commented 2 years ago

Found the cause for the issue (atleast partially). I commented out each settings in my config.ini and found that the issue occurs when list_saved = True or list_saved = False is uncommented. When the option is commented out as whole, it runs fine. Don't know the underlying reason is though but it is strange that both values of the option is throwing errors.

The errors themselves are not of concern maybe (correct me if I'm wrong) because nm_dmenu runs fine with them (only showing when its closed)

firecat53 commented 2 years ago

I see those same errors on fully updated Fedora 34. I poked at it for awhile, but I have no idea where they are coming from. I also could not replicate your results with the list_saved option. I typically launch it using a keyboard shortcut in i3, so I rarely have seen the errors and they don't seem to affect anything.

I'll leave this open in case someone with some deeper Glib/Gobject knowledge has any insight.

RaZ0rr-Two commented 2 years ago

I read somewhere that those gtk warnings are not serios and can be ignored ( or & , /dev/null ). But I'm more concerned about the reason my nm_dmenu doesn't work when I uncomment out list_saved option.

firecat53 commented 2 years ago

Oh, it wasn't clear from your post that nmdm didn't work at all with that option inserted. I get the Glib errors constantly when running the script, but it still functions normally.

  1. Are you getting any other errors?
  2. Are you sure you are running the latest version? The commits to add that functionality were just added about a month ago.
  3. Please post your config.ini.
  4. What distro are you running? Up to date?
firecat53 commented 2 years ago

Did you ever get this working?

RaZ0rr-Two commented 2 years ago

Oops sorry for not closing. It does work without an issue. The errors are still there. But these errors also show when I open any gtk app from terminal like thunar, firefox. Anyway, it is working for me