Nautilus fails to render svg thumb, and then freezes

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
User avatar
ottadini
Posts: 34
Joined: Thu Sep 24, 2009 4:27 pm
Location: Australia

Nautilus fails to render svg thumb, and then freezes

Postby ottadini » Wed Oct 05, 2011 3:22 pm

I cannot work out what is happening. I have an SVG file created within 0.48.1 Inkscape. Whenever I try to view the directory it's in, Nautilus shows a clock (meaning it's working) instead of the thumb, and then freezes. Dolphin (KDE file manager) has no problems.

The problem goes away when I change Nautilus prefs to never preview files. So, there is something going on with the thumbnail image. What could it be?
I think the problem might be due to the artboard being smaller than the drawing?

System:
Ubuntu Linux 10.04
Inkscape 0.48.1 r9760
Attachments
Section09.tar.gz
an example SVG file - contains a linked bitmap.
(40 KiB) Downloaded 220 times

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Nautilus fails to render svg thumb, and then freezes

Postby brynn » Wed Oct 05, 2011 6:20 pm

Nautilus is a file manager?

I can't open your file, because honestly I don't know how (what program opens a TAR.GZ file). (I'm a rather non-technically inclined Windows user, and as such, might not be able to open such file formats at all?) But your description may be gold! If it contains a linked bitmap (raster?), and you have moved the bitmap, or otherwise Nautilus can't find it, it's probably looking and looking, and endlessly looking for and not finding it. You can probably avoid that by embedding the bitmap (either at import, or later using the extension).

That might not be the problem, since the other file manager apparently does find it. Usually if a linked image is not found, Inkscape displays the text "Linked image not found". And I have seen that in previews on my system. Maybe Nautilus has a problem with that for some reason? Or maybe that's not the problem at all. If not, there are plenty of Linux users around :D

"artboard smaller than drawing".....not sure if by "artboard" you mean "canvas" or "image border" or if artboard is a technical term that I don't understand. But if it means canvas or image border, that shouldn't cause this problem to my knowledge. But again, my knowledge doesn't include Nautilus.

User avatar
ottadini
Posts: 34
Joined: Thu Sep 24, 2009 4:27 pm
Location: Australia

Re: Nautilus fails to render svg thumb, and then freezes

Postby ottadini » Wed Oct 05, 2011 7:30 pm

Yeh, I think the linked image might be a red herring. I also created a copy of this file, got rid of the layer with the linked image, and I'm still having the problem. Attached is the other file.

.tar.gz files are a type of compressed file, and can be opened on Windows using 7-zip.
Attachments
Section09-combined.svg
linked image removed.
(25.36 KiB) Downloaded 220 times

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Nautilus fails to render svg thumb, and then freezes

Postby ~suv » Wed Oct 05, 2011 8:19 pm

AFAIK the library used by Nautilus to render the preview thumbnails for SVG files (librsvg) supports fewer SVG features than Inkscape, and chokes on certain filter effects and linked images (IIRC of type 'jpeg' or 'tiff'), and possibly other items too.

See also: Bug #305546 in librsvg (Ubuntu): “Nautilus crashing/freezing when opening folder with svg file”.

Nothing Inkscape can do about that-> needs to be addressed in Nautilus (don't freeze) and librsvg (handle failures to render certain SVG files more graciously).

User avatar
ottadini
Posts: 34
Joined: Thu Sep 24, 2009 4:27 pm
Location: Australia

Re: Nautilus fails to render svg thumb, and then freezes

Postby ottadini » Thu Oct 06, 2011 9:03 am

Thanks for the info ~suv, that's just awesome :(

User avatar
BobSongs
Posts: 324
Joined: Fri Sep 14, 2007 2:18 pm
Location: Montreal, Canada

Re: Nautilus fails to render svg thumb, and then freezes

Postby BobSongs » Thu Oct 06, 2011 11:04 am

Essentially, Inkscape's ability to create images seems to be a few steps a head of what GNOME's file browser, Nautilus, can handle.

Try creating a drawing that includes a few simple elements such as an ellipse, a rectangle and triangle. Save the file and view its thumbnail in Nautilus. You'll see it is rendered correctly. But my files contain far more detail than what Nautilus can render. I just chalk that up to the file's complexity.

I guess I'm not fussy. Windows doesn't render SVG at all in its Windows Explorer. That a few more complex files aren't rendered aren't an issue for me.


Return to “Discuss Software Issues”