Crash when thumbnailing an SVG file

Bug #438484 reported by Krzysztof Kosinski
34
This bug affects 5 people
Affects Status Importance Assigned to Milestone
librsvg
Fix Released
Critical
librsvg (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs
Lucid
Fix Released
Low
Sebastien Bacher

Bug Description

TESTCASE:
* download http://launchpadlibrarian.net/32660852/replace-hue.svg.gz
* rsvg-view replace-hue.svg.gz

before upgrade the rsvg-view call segfaults, with the update it displays the image

other testcase description:

I have a 100% reproducible crash with Nautilus while browsing Inkscape's examples directory from SVN.

1. Check out inkscape:
svn co -r 22330 https://inkscape.svn.sourceforge.net/svnroot/inkscape/inkscape/trunk inkscape
2. Navigate to inkscape/share/examples
3. Crash

Revision history for this message
Krzysztof Kosinski (tweenk) wrote :
Revision history for this message
Krzysztof Kosinski (tweenk) wrote :

The crash happens when thumbnailing this file. I send it gzipped, because otherwise Firefox also hangs when I navigate into the directory where it's located to select it for upload.

summary: - Crash when browsing Inkscape examples
+ Crash when thumbnailing an SVG file
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Confirmed, will get a backtrace.

Changed in nautilus (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Medium
status: New → Confirmed
affects: nautilus (Ubuntu) → librsvg (Ubuntu)
Revision history for this message
Pedro Villavicencio (pedro) wrote :

trace matches: https://bugzilla.gnome.org/show_bug.cgi?id=579286 ;linking the report.

Changed in librsvg (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Troy James Sobotka (troy-sobotka) wrote :

Nautilus needs to be insulated from thumbnailers crashing the entire system.

As it is now, and has been for at least four or five releases, I can easily drag down my entire desktop file browser via an SVG thumbnail or video codec thumbnail.

Medium seems like a low priority given that these sorts of bugs completely prevent Nautilus from starting up - or worse - if the file is located on the audience member's desktop. It results in a system that is unrecoverable in terms of browsing a system, searching for files, etc.

Is there a way of preventing a thumbnailer from crashing Nautilus? It would seem more logical to patch Nautilus at the source and have a generic icon displayed instead of having the entire system get stuck in a loop of crashing.

Changed in librsvg:
status: Unknown → Fix Released
Revision history for this message
Pedro Villavicencio (pedro) wrote :

this has been fixed upstream now, thanks for reporting.

Changed in librsvg (Ubuntu):
status: Triaged → Fix Committed
description: updated
Changed in librsvg (Ubuntu Lucid):
assignee: nobody → Sebastien Bacher (seb128)
importance: Undecided → Low
status: New → Fix Committed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Debdiff without the documentation, tests and svg updates

Revision history for this message
Sebastien Bacher (seb128) wrote :

The changes are non trivial but quite some bugs are fixed and the update is in debian testing too now

Revision history for this message
Colin Watson (cjwatson) wrote : Please test proposed package

Accepted into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

I've tested the proposed package, it indeed fixes the crash and did not noticed any regression so far, marking this as verification done, thanks all.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package librsvg - 2.26.3-0ubuntu1

---------------
librsvg (2.26.3-0ubuntu1) lucid-proposed; urgency=low

  * New upstream version:
    - Bug fixed:
    143300 wrong bounding box when importing SVG
    403274 text in thumbnail too large
    404976 Unicode decomposed chars are not rendered well
    524690 text alignment incorrect with text-anchor:end
    545158 Segfault or bad rendering when displaying a SVG file
    563933 corrupted rendering of a card in 'Paris' aisleriot card theme
    564527 rsvg_handle_get_dimensions_sub weird behaviour
    564544 shape-rendering crispEdges property is antialiasing line elements
    566433 Could not read a valid svg file
    579286 This SVG-File crashes nautilus/rsvg-view (lp: #438484)
    581491 rsvg rendering is broken when encounters a 0px styled <text>
    589612 EOG error when loading a large SVG
    592207 Object cannot be rendered with more than 1 CSS {} rule
    597873 glib-mkenums cannot be invoked when GLib is uninstalled.
    597988 incorrect pkgconfig file let's others fail to detect librsvg
    598151 Incorrect rendering of svg file
    608575 Hang on particular SVG input
    612951 SVG not rendered if header contains width or height in percentage
    614123 librsvg builds tests even if tests are not run
    614555 should remove unused rsvg_filter_adobe_blend function
    614566 Needless G_OBJECT macro should be removed.
    614606 !important is not respected
    614643 does not handle comma separated CSS selector without libcroco
    614703 Need tests for get_dimensions.
    614704 css style doesn't override presentation attributes
    614730 Rendering not disabled for 0 sized objects
    614866 tests for CSS handling
    615490 rsvg-view should scale image size by default if the image has huge canvas.
    615699 rsvg-view should show zoom ratio.
    615701 class directive in svg element is not used at all
    615715 .class#id type selector is not supported.
    616187 rsvg-view crashes when open a svg image
    616835 Fix linking with pedantic linkers
    617163 !important directive support without libcroco.
  * debian/patches/90_bugzilla_svg_crash.patch:
    - the change is in the new version
 -- Sebastien Bacher <email address hidden> Tue, 18 May 2010 12:05:46 +0200

Changed in librsvg (Ubuntu Lucid):
status: Fix Committed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

the new version is in maverick now too

Changed in librsvg (Ubuntu):
status: Fix Committed → Fix Released
Changed in librsvg:
importance: Unknown → Critical
Revision history for this message
Romano Giannetti (romano-giannetti) wrote :

Hmmm... I have 2.26.3 and *still* have the crash. Please see bug#305546.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.