GNOME Bugzilla – Bug 761745
GLib-GObject-CRITICAL **: g_object_get_qdata: assertion 'G_IS_OBJECT (object)' failed when starting application mode
Last modified: 2016-09-17 20:34:59 UTC
I see these criticals starting Ephy in application mode: (epiphany-duolingo-55f0d44bf9217fa2c4eaf7c958f50dcd257d4e05:29908): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion 'G_IS_OBJECT (object)' failed (epiphany-duolingo-55f0d44bf9217fa2c4eaf7c958f50dcd257d4e05:29908): GLib-GObject-CRITICAL **: g_object_set_qdata: assertion 'G_IS_OBJECT (object)' failed (epiphany-duolingo-55f0d44bf9217fa2c4eaf7c958f50dcd257d4e05:29908): Gtk-CRITICAL **: gtk_action_set_sensitive: assertion 'GTK_IS_ACTION (action)' failed (epiphany-duolingo-55f0d44bf9217fa2c4eaf7c958f50dcd257d4e05:29908): Gtk-CRITICAL **: gtk_action_set_visible: assertion 'GTK_IS_ACTION (action)' failed The first one is coming from here, in ephy_window_constructor: /* We don't need to show the page menu in web application mode. */ action = gtk_action_group_get_action (toolbar_action_group, "PageMenu"); ephy_action_change_sensitivity_flags (action, SENS_FLAG_CHROME, TRUE); There, gtk_action_group_get_action() returns NULL (not sure why) and ephy_action_change_sensitivity_flags is not prepared for that.
The following fix has been pushed: 2c79655 window: Fix criticals when starting in app mode
Created attachment 335776 [details] [review] window: Fix criticals when starting in app mode Need to be careful to get the actions from the right action group here. Also, use a typechecking cast to catch errors like this earlier.