GNOME Bugzilla – Bug 642612
unable to load this SVG file
Last modified: 2012-11-11 18:08:45 UTC
Created attachment 181163 [details] an SVG file that crashes eog When you try to open the attached SVG file, it crashes eog. It also crashes firefox. No preview appears for this file in nautilus. So it's probably a bug in a library that they have in common. Inkscape can open it with no problem. The file was exported from Mathematica.
I can confirm this report. here the backtrace. [Thread debugging using libthread_db enabled] Core was generated by `eog /home/fabio/Desktop/attachment.cgi'. Program terminated with signal 11, Segmentation fault.
+ Trace 226008
Thread 1 (Thread 0xb6cffb70 (LWP 7073))
could be cairo problem
I've poked around with this file in Inkscape some more. It seems that there's a really big rectangle in it just a couple of lines down: <rect fill='rgb(100%,100%,100%)' stroke='none' x='-2.2518e+15' y='-2.2518e+15' width='4.5036e+15' height='4.5036e+15' /> I don't know why that's there. It's not really part of the picture. But still, eog shouldn't crash because of it.
> #0 rsvg_cairo_to_pixbuf (pixels=0x97238008 "", rowstride=11644972, height=2911181) at /usr/include/bits/string3.h:52 I'd say it's rsvg, isn't it? Most likely the rowstride and/or height are just insanely big.
If it is the size it could be related to bug 340963. But it's not crashing on my F14 laptop here (while it does on the other bug). Maybe there's some 32bit<->64bit trickery involved here.
Could be -- My workstation where I first noticed the crash is 64 bit.
Just noted that it doesn't crash anymore with the latest librsvg from git. It simply fails to load the image and tells you so.
eog 3.4.2-1 from Debian wheezy doesn't crash anymore on this file. It fails loading the image and displays this error message: "Could not load image 'Bad file PenroseTriangle.svg'. Image loading failed." Firefox loads the image correctly. Changing title and severity accordingly.
This is likely failing due to a cairo limitation now: bug 672990. Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 672990 ***