GNOME Bugzilla – Bug 761811
Critical in gtk_widget_get_parent and gtk_widget_destroy
Last modified: 2018-08-03 20:44:44 UTC
Created attachment 320777 [details] BT from gdb, when running epiphany with the env variable G_DEBUG=fatal_criticals I'm using WebKitGtk+ with my own JHBuild setting: https://github.com/tanty/jhbuild-epiphany/tree/master Epiphany 3.18.0 and WebKit 2.10.7 I'm running Epiphany with the dconf key: "process-model" = "shared-secondary-process" The compilation was done with CMake args: '-DPORT=GTK -DCMAKE_BUILD_TYPE=Release -DENABLE_MINIBROWSER=ON -DCMAKE_C_FLAGS_RELEASE="-O0 -g1 -DNDEBUG -DG_DEBUG=fatal-criticals -DG_DISABLE_CAST_CHECKS" -DCMAKE_CXX_FLAGS_RELEASE="-O0 -g1 -DNDEBUG -DNDEBUG -DG_DEBUG=fatal-criticals -DG_DISABLE_CAST_CHECKS"' --- I launch Epiphany from the command line. When browsing, I see every now and then some message in my terminal like: (epiphany:13340): Gtk-CRITICAL **: gtk_widget_get_parent: assertion 'GTK_IS_WIDGET (widget)' failed (epiphany:13340): Gtk-CRITICAL **: gtk_widget_get_parent: assertion 'GTK_IS_WIDGET (widget)' failed (epiphany:13340): Gtk-CRITICAL **: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
I have never seen this before. It's coming from the EPHY_GET_EMBED_FROM_EPHY_WEB_VIEW macro in tab_has_modified_forms_cb: #define EPHY_GET_EMBED_FROM_EPHY_WEB_VIEW(view) (EPHY_EMBED (gtk_widget_get_parent (gtk_widget_get_parent (gtk_widget_get_parent ((GTK_WIDGET (view))))))) So somehow the EphyWebView has become unparented (no clue how this might happen), the first call to gtk_widget_get_parent returns NULL, the next two hit criticals and so does the call to ephy_window_close_tab(). To debug, I would connect to notify::parent and printf when it changes.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/epiphany/issues/299.