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 113086 - GtkTreeView crash if item is dispose in focus_in_event
GtkTreeView crash if item is dispose in focus_in_event
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
2.2.x
Other Linux
: Normal normal
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks:
 
 
Reported: 2003-05-15 22:04 UTC by Felipe Heidrich
Modified: 2011-02-04 16:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Example (1.65 KB, text/plain)
2003-05-15 22:05 UTC, Felipe Heidrich
  Details
proposed patch (1.39 KB, patch)
2003-05-25 21:09 UTC, Kristian Rietveld
none Details | Review

Description Felipe Heidrich 2003-05-15 22:04:52 UTC
Gtk app crashes if a GtkTreeView has only one item and it is removed in the
focus in callback.

Here is the error message:
Gtk-ERROR **: file gtkrbtree.c: line 1189 (_gtk_rbtree_find_offset):
assertion failed: (tree)
aborting...
Aborted

To reproduce the problem:
Compile & Run the example, when it come up click in the table. 
Note: if the Tab key is used to move the focus from the button to the table
the problem doesn't happen.
Comment 1 Felipe Heidrich 2003-05-15 22:05:47 UTC
Created attachment 16557 [details]
Example
Comment 2 Kristian Rietveld 2003-05-25 21:09:53 UTC
Created attachment 16833 [details] [review]
proposed patch
Comment 3 Kristian Rietveld 2003-05-29 16:29:09 UTC
Thanks for the testcase!


Committed the patch on gtk-2-2 and HEAD.