GNOME Bugzilla – Bug 735095
gtk3-demo crashes when clicking on an empty TreeView
Last modified: 2014-08-26 13:15:02 UTC
Created attachment 283962 [details] backtrace from gdb I'm experiencing this issue in two different boxes: - openSUSE 13.1 with jhbuild - using current gtk master - Fedora rawhide - up-to-date Steps to reproduce the problem: 1. Launch gtk3-demo 2. Go to "TreeView" and expand it - Open "Editable Cells" demo 3. Click on "Remove item" until all the elements are gone 4. Perform a "Left-Click" inside the treeview ("Right-Click" doesn't crash the demo) Expected result: Nothing Result: gtk3-demo crashes with the following message: ** Gtk:ERROR:gtkrbtree.c:1044:_gtk_rbtree_find_offset: assertion failed: (tree) Aborted I'm attaching a text file with a backtrace of it.
Created attachment 284397 [details] [review] treeview: bail out on row dragging/rubberband if there's no GtkRBTree Just cancel the drag gesture and return early, instead of crashing on code that assumes there's a model/RB tree.
Review of attachment 284397 [details] [review]: ok
(In reply to comment #2) > Review of attachment 284397 [details] [review]: > > ok Looks like you pushed a similar fix for bug 735300 :) *** This bug has been marked as a duplicate of bug 735300 ***
Yes, https://git.gnome.org/browse/gtk+/commit/?id=d5876e99f59f8ef7404778aee7bdad4e0cb89fd5 fixed the issue here. Thanks!