Bug 67521 - FILESAVE: Invalid svg file exported by LO Draw
Summary: FILESAVE: Invalid svg file exported by LO Draw
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
4.0.3.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:7.3.0
Keywords:
Depends on:
Blocks: SVG-Save
  Show dependency treegraph
 
Reported: 2013-07-30 06:41 UTC by Florent Angly
Modified: 2021-10-31 20:08 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
ODG file that generates the invalid SVG file (17.29 KB, application/vnd.oasis.opendocument.graphics)
2013-07-30 06:42 UTC, Florent Angly
Details
Invalid SVG file (14.35 KB, image/svg+xml)
2013-07-30 06:42 UTC, Florent Angly
Details
Manually corrected SVG file (14.36 KB, image/svg+xml)
2013-07-30 06:43 UTC, Florent Angly
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Florent Angly 2013-07-30 06:41:14 UTC
I am running LO 4.0.3.3 on Linux3.9-1-amd64 #1 SMP Debian 3.9.8-1 x86_64 GNU/Linux.

I generated a chart in LO Calc that I wanted to export to SVG for further editing with Inkscape. From Calc, I copy-pasted the chart to an empty Draw picture and exported it as SVG. The SVG file I obtained appears to be invalid and did not open in Inkscape.

No detailed error message was produced by Inkscape, but Firefox and EOG both complained about the invalid file and gave some details:

EOG: "Error domain 1 code 76 on line 131 column 213 of file:///home/floflooo/Work/Copyrighter/db_copy_number/rrNDB/graph/bug/graph_test.svg: Opening and ending tag mismatch: tspan line 0 and text"

Firefox: "XML Parsing Error: mismatched tag. Expected: </tspan>.
Location: file:///home/floflooo/Work/Copyrighter/db_copy_number/rrNDB/graph/bug/graph_test.svg
Line Number 131, Column 373"

Upon further inspection of the XML, there seem to be two errors:
* missing </tspan> tag at the end of line 130
* extra slash in tag <text class="TextShape"/> at line 131

I have attached the ODG file that generates the invalid SVG file, the invalid SVG file itself, and my corrected version of the SVG file.

Best,

Florent
Comment 1 Florent Angly 2013-07-30 06:42:28 UTC
Created attachment 83271 [details]
ODG file that generates the invalid SVG file
Comment 2 Florent Angly 2013-07-30 06:42:59 UTC
Created attachment 83272 [details]
Invalid SVG file
Comment 3 Florent Angly 2013-07-30 06:43:23 UTC
Created attachment 83273 [details]
Manually corrected SVG file
Comment 4 Maxim Monastirsky 2013-08-19 16:37:45 UTC
Reproducible under Fedora 19 (64-bit) with 4.1.0.4, and also with 4.2.0.0.alpha0+
Build ID: f4004429d339009bec6babe30becdc9c727940b8
TinderBox: Linux-x86-64@8-SLED11, Branch:master, Time: 2013-08-18_23:20:11
Comment 5 Owen Genat (retired) 2014-07-20 10:49:47 UTC
Bug 65788 added to See Also list. Both issues deal with a Calc chart pasted into Draw and then exported to SVG with the resultant SVG being treated differently (or not at all in this case) by Inkscape.
Comment 6 Owen Genat (retired) 2014-07-20 10:54:30 UTC
Problem still reproducible (neither Draw nor Inkscape v0.48.3.1 r9886 can open the exported SVG) under GNU/Linux using:

- v4.3.0.3 Build ID: 08ebe52789a201dd7d38ef653ef7a48925e7f9f7
- v4.4.0.0.alpha0+ Build ID: 4aa9b041de3129f19b48e66d349f48657b73f33e (2014-07-19)
Comment 7 QA Administrators 2015-09-04 02:49:32 UTC Comment hidden (obsolete)
Comment 8 Florent Angly 2015-09-04 15:55:01 UTC
LibreOffice 4.4.5.2: still affected by the bug
LibreOffice 5.0.1.2: all seems to work alright
This is on Linux x86-64
Comment 9 Commit Notification 2021-10-31 20:08:34 UTC
Caolán McNamara committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/82047d042e9d5d24b334eba63fd7e4c5bbbb022e

crashtesting: assert on conversion of fdo67521-1.odg to pdf

It will be available in 7.3.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.