GNOME Bugzilla – Bug 659877
Gtk-CRITICAL **: gtk_tree_path_compare: assertion `b->depth > 0' failed
Last modified: 2011-09-23 16:13:06 UTC
I get the following critical message with the last git version of glib/gtk/empathy, when Empathy starts: Gtk-CRITICAL **: gtk_tree_path_compare: assertion `b->depth > 0' failed This is caused by model_row_inserted() in gtktreeviewaccessible.c. The attached patch fixes it.
Created attachment 197292 [details] [review] [PATCH] gtktreeviewaccessible: do not trigger an assertion The following assertion was triggered in model_row_inserted() because iterate_thru_children() modifies the parameter tree_model before passing it to traverse_cells(). Gtk-CRITICAL **: gtk_tree_path_compare: assertion `b->depth > 0' failed The stack with the bug was: #0 gtk_tree_path_compare at gtktreemodel.c #1 traverse_cells at gtktreeviewaccessible.c #2 model_row_inserted at gtktreeviewaccessible.c This patch calls iterate_thru_children() with a copy of the path so that the original is not modified. --- gtk/a11y/gtktreeviewaccessible.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-)
Review of attachment 197292 [details] [review]: Looks good to me, thanks.
Review of attachment 197292 [details] [review]: Committed on gtk+ git master: commit 6ab7b87a02b5eb1af2703dc3f151442b2cf4ce9a Author: Alban Crequy <alban.crequy@collabora.co.uk> Date: Thu Sep 22 16:39:06 2011 -0400