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 759768 - gtkinspector crashes app on termination, when selecting 'cancel' on initial prompt
gtkinspector crashes app on termination, when selecting 'cancel' on initial p...
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Debugging
3.19.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-12-22 08:06 UTC by Daiki Ueno
Modified: 2015-12-27 02:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
inspector: Avoid weak ref problem in object-tree (1.52 KB, patch)
2015-12-22 08:07 UTC, Daiki Ueno
none Details | Review

Description Daiki Ueno 2015-12-22 08:06:37 UTC
I believe this is not related to bug 759764, but exposed by that bug.  If I choose "Cancel" on the initial prompt and continue using the app, then close the app manually, it crashes:

  • #0 gtk_object_tree_remove_dead_object
    at inspector/object-tree.c line 638
  • #1 weak_refs_notify
    at gobject.c line 2636
  • #2 gdk_frame_clock_idle_dispose
    at gdkframeclockidle.c line 154
  • #3 g_object_run_dispose
    at gobject.c line 1082
  • #4 _gdk_window_destroy_hierarchy
    at gdkwindow.c line 2035
  • #5 gdk_window_destroy
    at gdkwindow.c line 2135
  • #6 gtk_widget_real_unrealize
    at gtkwidget.c line 12504
  • #7 gtk_window_unrealize
    at gtkwindow.c line 7418

Comment 1 Daiki Ueno 2015-12-22 08:07:37 UTC
Created attachment 317771 [details] [review]
inspector: Avoid weak ref problem in object-tree

The object-tree associated with a GtkInspectorWindow is automatically
cleared when the window is destroyed, so make sure we don't try to use
the dead object-tree through weak refs.
Comment 2 Matthias Clasen 2015-12-27 02:44:14 UTC
fixed in a different way