Bug#671594: Crashes if directory changes while showing file dialog

Ben Hutchings ben at decadent.org.uk
Thu May 10 14:43:35 UTC 2012


On Thu, 2012-05-10 at 14:29 +0200, Michael Biebl wrote:
> Hi Ben,
> 
> On 05.05.2012 06:49, Ben Hutchings wrote:
> > When a Gtk+ file dialog is open and a file in the directory it shows
> > is renamed, the application crashes:
> > 
> > Gtk:ERROR:/build/buildd-gtk+3.0_3.4.1-2-i386-xTOFDg/gtk+3.0-3.4.1/./gtk/gtkfilesystemmodel.c:751:gtk_file_system_model_sort: assertion failed: (r == n_visible_rows)
> 
> can you describe the exact steps how you triggered this bug. I tried the
> following
> 
> mkdir ~/foo
> touch ~/foo/bar
> start gedit, open the file selector and switch to directory ~/foo
> mv ~/foo/bar ~/foo/baz
> 
> this worked without problems and the file selector was updated and
> showed the renamed file.

Basically like that.  I can't reproduce it either now.  But it was
*repeatedly* reproducible in both Totem and Evince when I made the
report.

If you run this in the directory that the file selector is pointing at,
you'll either hit this assertion or make it start allocating tons of
memory (be prepared to kill it in the latter case):

mkdir -p a b c
while true; do
    case $RANDOM in
    *[01]) touch foo.mp3;;
    *[23]) touch quux.txt;;
    *[45]) rm -f foo.mp3 bar.mp3;;
    *[67]) rm -f quux.txt;;
    *[89]) mv foo.mp3 bar.mp3 || mv bar.mp3 foo.mp3;;
    esac
    sleep 0.1
done

Ben.

-- 
Ben Hutchings
Life is what happens to you while you're busy making other plans.
                                                               - John Lennon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20120510/fba3d8c1/attachment-0001.pgp>


More information about the pkg-gnome-maintainers mailing list