GNOME Bugzilla – Bug 344659
Thunar Crash in gtk_tree_view
Last modified: 2006-07-10 17:15:21 UTC
Please describe the problem: When using the open location dialog, thunar crashed. You can find the Xfce bugreport (including bt) here: http://bugzilla.xfce.org/show_bug.cgi?id=1891 gtk2 2.8.18 glib2 2.10.3 Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 67184 [details] Backtrace
I was only able to compile 0.3.0beta1 (the latest on the website ...) against gtk+ 2.10.x, and couldnt reproduce the crash. Could you verify whether this issue is fixed by gtk+ 2.10.0?
Problem is still there with gtk 2.10.
I spend some more time installing a newer version of Thunar and the problem appeared (just the asserts, no segfaults here). After a bunch of debugging it looks like the problem is caused by bugs in the implementation of ThunarListModel. When the various signals (row-inserted, row-deleted) are emitted, the state of the model (the data structure + store->nrows) is not in sync with the information which has been given via the signals at that point. For example row-inserted is emitted for the third inserted row, but nrows is already 10. I'll attach a small diff with the changes I made to thunar-list-model.c to correct the implementation. With this patch the problems disappear. Please note that this is just an overview of the modifications I made; I am not planning to spend time turning this hack into a proper patch.
Created attachment 68691 [details] overview of modifications needed
Not a problem in GTK+, closing as NOTABUG.
Benny suggested a slightly different patch, based on yours, and that solved the problem. Thanks for helping Kristian.