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 735095 - gtk3-demo crashes when clicking on an empty TreeView
gtk3-demo crashes when clicking on an empty TreeView
Status: RESOLVED DUPLICATE of bug 735300
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
3.13.x
Other Linux
: Normal critical
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks:
 
 
Reported: 2014-08-20 11:00 UTC by Javier Hernández
Modified: 2014-08-26 13:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
backtrace from gdb (4.95 KB, text/plain)
2014-08-20 11:00 UTC, Javier Hernández
  Details
treeview: bail out on row dragging/rubberband if there's no GtkRBTree (1.08 KB, patch)
2014-08-25 12:25 UTC, Carlos Garnacho
accepted-commit_now Details | Review

Description Javier Hernández 2014-08-20 11:00:56 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.
Comment 1 Carlos Garnacho 2014-08-25 12:25:40 UTC
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.
Comment 2 Matthias Clasen 2014-08-25 23:27:30 UTC
Review of attachment 284397 [details] [review]:

ok
Comment 3 Carlos Garnacho 2014-08-26 11:08:49 UTC
(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 ***
Comment 4 Javier Hernández 2014-08-26 13:15:02 UTC
Yes,

https://git.gnome.org/browse/gtk+/commit/?id=d5876e99f59f8ef7404778aee7bdad4e0cb89fd5 fixed the issue here.

Thanks!