After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 761811 - Critical in gtk_widget_get_parent and gtk_widget_destroy
Critical in gtk_widget_get_parent and gtk_widget_destroy
Status: RESOLVED OBSOLETE
Product: epiphany
Classification: Core
Component: General
3.18.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-02-10 10:10 UTC by Andres Gomez
Modified: 2018-08-03 20:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
BT from gdb, when running epiphany with the env variable G_DEBUG=fatal_criticals (24.05 KB, text/plain)
2016-02-10 10:10 UTC, Andres Gomez
Details

Description Andres Gomez 2016-02-10 10:10:55 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
Comment 1 Michael Catanzaro 2016-02-10 14:43:57 UTC
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.
Comment 2 GNOME Infrastructure Team 2018-08-03 20:44:44 UTC
-- 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.