GNOME Bugzilla – Bug 710436
Assertion failure using GtkFileChooserDialog with a file filter
Last modified: 2015-02-24 11:16:23 UTC
Created attachment 257613 [details] Glade UI file demonstrating bug If a file chooser dialog has a filter attached to it, file operations in the directory displayed in the file chooser can corrupt the list of displayed files, eventually causing a crash with this error: Gtk:ERROR:gtkrbtree.c:465:_gtk_rbtree_insert_after: assertion failed: (_gtk_rbtree_is_nil (tree->root)) Sometimes the following nonfatal assertion can also be seen: (glade:1694): Gtk-CRITICAL **: _gtk_rbtree_reorder: assertion 'tree->root->count == length' failed To reproduce, load the attached file in Glade, then (in a separate terminal) repeatedly touch and rm a file which does _not_ match the file filter (in this case *.foo) in Glade's cwd. In my case, the nonfatal assertion failure appears on the second "touch", and subsequently attempting to remove the filter from the dialog triggers the fatal assertion. The file operations will also sometimes cause an unrelated entry to be removed from the file list.
Your testcase works fine for me with gtk3-3.14.8-2.fc21.x86_64. I'm wondering if you can confirm?
*** Bug 692546 has been marked as a duplicate of this bug. ***
(In reply to Lubomir Rintel from comment #1) > Your testcase works fine for me with gtk3-3.14.8-2.fc21.x86_64. > > I'm wondering if you can confirm? I can indeed no longer reproduce the bug using gtk+-3.14.8. It seems to have been fixed sometime since 3.12.2. Marking FIXED.