Comment 14 for bug 1203349

I've got something very comparable: "nautilus crashed with SIGSEGV in gnome_desktop_thumbnail_factory_generate_thumbnail()". I think it is best to add my info

When creating an empty image file, the thumbnail-function gnome_desktop_thumbnail_factory_generate_thumbnail() makes Nautilus crash.

This error is only given when running nautilus as root, as normal user it just crashes without any message.

To get this error:

- open Nautilus
- go to your home-directory with Nautilus
- create an empty jpg or png in your home-directory ("gedit file.png" and then save this file)
- wait up to 3 seconds
- Nautilus crashes

From what I read form the code, it seems not to check if data-size is 0 (gdk_pixbuf_get_byte_length is not used), or gets a non-zero width and length.

See https://developer.gnome.org/gdk-pixbuf/stable/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf for documentation and https://github.com/GNOME/libgnomeui/blob/master/libgnomeui/gnome-thumbnail.c for the source.