GNOME Bugzilla – Bug 313397
crashes with broken SVG file
Last modified: 2005-10-24 21:51:27 UTC
Distribution/Version: Debian eog uglily crashes or freezes with an improper/broken SVG file, as reported on Debian bug #322879 - http://bugs.debian.org/322879. Of course, I don't expect it to work, but showing a friendly dialog telling the user what went wrong is surely better than crashing, etc. I'll attach the example file for convenience. Thanks!
Created attachment 50652 [details] Broken SVG that causes eog to crash
Reproducable, though not able to create a decent backtrace because of stripped libraries: ruben@tokyo:~/Desktop $ eog broken.svg (eog:12184): librsvg-WARNING **: rsvg_start_svg: width too large (eog:12184): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed Eog-ERROR **: file eog-image.c: line 843 (real_image_load): assertion failed: (image != NULL) aborting...
backtrace with 2.11.91: (eog:32423): librsvg-WARNING **: rsvg_start_svg: width too large Eog-ERROR **: file eog-image.c: line 813 (eog_image_real_load): assertion failed: (priv->image != NULL) aborting... Program received signal SIGABRT, Aborted.
+ Trace 62522
Thread NaN (LWP 32426)
Created attachment 51884 [details] [review] Fixes the broken SVG crash.
Created attachment 52839 [details] [review] Improved patch.
Applied, thanks!
*** Bug 300072 has been marked as a duplicate of this bug. ***
*** Bug 156274 has been marked as a duplicate of this bug. ***
*** Bug 305886 has been marked as a duplicate of this bug. ***