Skip to main content
Topic: GLib-CRITICAL g_once_init_leave: assertion 'result != 0' failed (Read 2427 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

GLib-CRITICAL g_once_init_leave: assertion 'result != 0' failed

Hi everybody. I removed kde and it's applications from an Artix Plasma fresh installation and installed cinnamon instead. Now some gui apps won't get started. Running them (vlc, falkon etc.) in cli ends up in this glib critical errors:

Code: [Select]
eli-pc:[eli]:~$ vlc
VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
[0000560f72c1e580] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.

(vlc:5801): GLib-GObject-WARNING **: 03:38:59.120: cannot register existing type 'GdkDisplayManager'

(vlc:5801): GLib-CRITICAL **: 03:38:59.120: g_once_init_leave: assertion 'result != 0' failed

(vlc:5801): GLib-GObject-CRITICAL **: 03:38:59.120: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

(vlc:5801): GLib-GObject-WARNING **: 03:38:59.120: invalid (NULL) pointer instance

(vlc:5801): GLib-GObject-CRITICAL **: 03:38:59.120: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(vlc:5801): GLib-GObject-WARNING **: 03:38:59.120: invalid (NULL) pointer instance

(vlc:5801): GLib-GObject-CRITICAL **: 03:38:59.120: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(vlc:5801): GLib-GObject-WARNING **: 03:38:59.121: cannot register existing type 'GdkDisplay'

(vlc:5801): GLib-CRITICAL **: 03:38:59.121: g_once_init_leave: assertion 'result != 0' failed

(vlc:5801): GLib-GObject-CRITICAL **: 03:38:59.121: g_type_register_static: assertion 'parent_type > 0' failed

(vlc:5801): GLib-CRITICAL **: 03:38:59.121: g_once_init_leave: assertion 'result != 0' failed

(vlc:5801): GLib-GObject-CRITICAL **: 03:38:59.121: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
Segmentation fault

Tried full upgrading system as a blind workaround, followed arch wiki cinnamon installation walkthrough, as long as some others solutions according to other forums, but no chance to get rid of it.

Re: GLib-CRITICAL g_once_init_leave: assertion 'result != 0' failed

Reply #1
Does starting vlc as

Code: [Select]
QT_QPA_PLATFORMTHEME=fusion vlc

solve the problem?