Inkscape cannot import svg correctly

Bug #196898 reported by Savvas Radevic
4
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Rygle
inkscape (Ubuntu)
Fix Released
Medium
Unassigned
Declined for Hardy by Henrik Nilsen Omma
Declined for Intrepid by Bryce Harrington

Bug Description

Binary package hint: inkscape

Latest tested version:
$ apt-cache policy inkscape
inkscape:
  Installed: 0.46-2ubuntu1
  Candidate: 0.46-2ubuntu1
  Version table:
 *** 0.46-2ubuntu1 0
        500 http://archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status

Reproduced on:
- Ubuntu intrepid ibex 8.10 alpha 5 (updated)
- Ubuntu hardy heron 8.04

I've just imported an svg file http://en.wikipedia.org/wiki/Image:Heckert_GNU_white.svg using file -> import
It appeared fine in firefox and in eye of gnome.
I'd like to note that the svg appears fine through file -> open or by double-clicking the file

I'll attach the svg and a screenshot

Tags: importing svg

Related branches

Revision history for this message
Savvas Radevic (medigeek) wrote :
Revision history for this message
Savvas Radevic (medigeek) wrote :
Revision history for this message
Bryce Harrington (bryce) wrote :

Issue still occurs with 0.46

Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
sas (sas-sas) wrote :

The problem is that the 'style' element is lost on import.

Revision history for this message
Henrik Nilsen Omma (henrik) wrote :

We will not pull in an inkscape version > 0.46 for Hardy. The bug should be tracked for Intrepid when that's opened.

Ryan Lerch (ryanlerch)
Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
sas (sas-sas) wrote :

I've posted a patch for this in bug 227472.

Revision history for this message
Rygle (rygle) wrote :

Have not been able to test on Ubuntu, however this issue does not seem to be platform specific as it occurs on the latest trunk on Win32. Changing bug description.

The patch has been applied to trunk with other related patches at SVN revision 18579. See LP #227472 for more info.

Changed in inkscape:
assignee: nobody → rygle
milestone: none → 0.47
status: Confirmed → Fix Released
Revision history for this message
Rygle (rygle) wrote :

Setting this as fix committed for Ubuntu, as it has to wait for Intrepid to be "released". Assigning to medigeek who reported the bug and has nominated for Ubuntu Intrepid. Should be covered by the Inkscape 0.47 release, which should be out by then, but just in case see LP#227472 for the patch, which should apply to 0.46.x.

Changed in inkscape:
assignee: nobody → medigeek
status: Confirmed → Fix Committed
Revision history for this message
Savvas Radevic (medigeek) wrote :

I followed Henrik 's suggestion to nominate it for Intrepid.
I must warn you, it's going to take a while, since I usually test the pre-releases when they're alpha 4 or alpha 5 :)
If anyone's up to the task to check it before me, please do!

Revision history for this message
Lucio (lumatemp-nospam) wrote :

I've got similar issue with the svg file I attach here: eye of gnome and firefox 3 show the file correctly, while inkscape doesn't (also if I use open or import menu).

Using ubuntu Hardy, all patches applied.

Revision history for this message
sas (sas-sas) wrote :

@Lucio:
That's a very different issue. If you feel that Inkscape isn't rendering your file correctly, please submit a new bug report. However, I think you are mistaken when you say that Eye of Gnome and Firefox 3 show the file correctly - the file has several errors, and I believe the correct rendering according to SVG's error-handling rules is a blank page (which is how Batik displays it).

Revision history for this message
Savvas Radevic (medigeek) wrote :

Ok, I'm trying out alpha 5, installed inkscape:
inkscape:
  Installed: 0.46-2ubuntu1
  Candidate: 0.46-2ubuntu1
  Version table:
 *** 0.46-2ubuntu1 0
        500 http://archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status

The bug is still there.

Once again, the steps to reproduce:
1) menu Applications > accessories > inkscape
2) menu File > Import
3) choose the file (Heckert_GNU_white.svg)

Results: Appears black

Revision history for this message
Savvas Radevic (medigeek) wrote :

reverting to "confirmed"

Changed in inkscape:
assignee: medigeek → nobody
status: Fix Committed → Confirmed
description: updated
Revision history for this message
Savvas Radevic (medigeek) wrote :

oops, sorry, my mistake, I've just re-read that it should be covered by 0.47 :)

Changed in inkscape:
status: Fix Released → Confirmed
status: Confirmed → Fix Released
Bryce Harrington (bryce)
Changed in inkscape (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package inkscape - 0.46-5ubuntu2

---------------
inkscape (0.46-5ubuntu2) jaunty; urgency=low

  * Add 100_svg_import_improvements.dpatch:
    - 'style' elements at the top level are not lost on import
      (LP: #196898)
    - Contents of top-level 'defs' elements are not lost on import
      (LP: #209296)
    - layers are unlocked when they are converted to ordinary groups
      (LP: #221888)
  * Add 101_gtk_marshal.dpatch: Fix build errors against gtk+-2.13.x
    (LP: #238217)

 -- Bryce Harrington <email address hidden> Tue, 07 Apr 2009 22:32:31 -0700

Changed in inkscape (Ubuntu):
status: Fix Committed → Fix Released
su_v (suv-lp)
tags: added: importing
removed: import
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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