Bug 111806 - Regression: Cannot Export to SVG ( ubuntu packages )
Summary: Regression: Cannot Export to SVG ( ubuntu packages )
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.4.0.3 release
Hardware: x86-64 (AMD64) Linux (All)
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
: 111394 (view as bug list)
Depends on:
Blocks: 91315
  Show dependency treegraph
 
Reported: 2017-08-14 15:42 UTC by Mathias Henry
Modified: 2019-01-08 13:26 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Original Document Generating Corrupt SVG (47.99 KB, application/vnd.oasis.opendocument.spreadsheet)
2017-08-14 15:42 UTC, Mathias Henry
Details
svg export of the chart (655.35 KB, image/svg+xml)
2017-08-19 08:05 UTC, Jean-Baptiste Faure
Details
Chart exported as SVG image from Calc in 5.3.2.2/5.4.2.2 on Ubuntu 16.04 (uploaded as PNG) (144.68 KB, image/png)
2017-10-15 12:27 UTC, James
Details
Distorted_SVG_Exports (32.12 KB, image/png)
2018-01-04 18:27 UTC, Kai Struck
Details
Simple 4-point filled polygon LO Draw project (8.49 KB, application/vnd.oasis.opendocument.graphics)
2018-01-07 05:33 UTC, Razor T
Details
Corrupt simple 4-point polygon LO Draw exported SVG (4.87 KB, image/svg+xml)
2018-01-07 05:35 UTC, Razor T
Details
Corrected simple 4-point polygon LO Draw exported SVG (4.88 KB, image/svg+xml)
2018-01-07 05:51 UTC, Razor T
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Henry 2017-08-14 15:42:24 UTC
Created attachment 135548 [details]
Original Document Generating Corrupt SVG

New to 5.4.0.3

SpreadSheet exports SVG images that are distorted
Draw        exports SVG images that are distorted
Impress     exports SVG images that won't open
Writer doesn't export to SVG (not a feature?)

For Draw and SpreadSheet, the previous "Fresh" version of LO exported perfect SVGs.

This applies to Ubuntu 16.04 LO 5.4.0.3

To reproduce:
1) Open the attached file
2) Right-click on chart -> Export
3) Save as .svg
Comment 1 MM 2017-08-14 19:37:45 UTC
Unconfirmed on ubuntu 16.04 x64 with

Version: 6.0.0.0.alpha0+
Build ID: 4e2b44860c2c304ea728c512b47ca07aaf1cd452
CPU threads: 2; OS: Linux 4.4; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2017-08-10_23:01:09
Locale: en-US (en_US.UTF-8); Calc: single
Comment 2 raal 2017-08-15 06:03:55 UTC
I cannot confirm with Version: 6.0.0.0.alpha0+
Build ID: b6e32d53ce9c98bfba517c40f53d40e97a091b0e
CPU threads: 4; OS: Windows 6.1; UI render: default;
Comment 3 Xisco Faulí 2017-08-15 17:05:11 UTC
I can't reproduce it in

Version: 6.0.0.0.alpha0+
Build ID: ef2e6260fad38e26c8591ea88ded348db618270d
CPU threads: 4; OS: Linux 4.10; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group

To be certain the reported issue is not related to corruption in the user profile, could you please reset your Libreoffice profile ( https://wiki.documentfoundation.org/UserProfile ) and re-test?
Comment 4 Mathias Henry 2017-08-15 18:08:27 UTC
Resetting User Profile - no affect

Using java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)

Uninstalling Java (and fresh user profile) - no affect

System Ubuntu 16.04
HP EliteBook 8440p
Comment 5 Jean-Baptiste Faure 2017-08-19 08:05:10 UTC
Created attachment 135653 [details]
svg export of the chart

Reproducible with LO 5.4.0 from Ubuntu PPA and with LO 5.4.2.0.0+ built at home under Ubuntu 16.04 x86-64.

Setting as NEW
Best regards. JBF
Comment 6 Jean-Baptiste Faure 2017-08-19 10:46:27 UTC
Indeed not reproducible in LO 6.0.0.0.alpha0+ built at home under Ubuntu 16.04 x86-64.

Changed importance to high/major because an important feature is broken in current release.

Best regards. JBF
Comment 7 woernsn 2017-08-22 19:21:22 UTC
Reproduceable under LibreOffice 5.4.0.3
System: Debian 4.12.6-1 (2017-08-12) x86_64 GNU/Linux

The export is working as expected with LibreOffice 5.3.5.2 on the same machine.
Comment 8 Mathias Henry 2017-09-02 16:08:28 UTC
Issue persists in LO 5.4.1.2 on Ubuntu 16.04.

I suggest this issue be downgraded to trivial because export to pdf works fine and pdf easily converts to svg.
Comment 9 Jean-Baptiste Faure 2017-09-02 17:12:15 UTC
(In reply to Mathias Henry from comment #8)
[...]
> I suggest this issue be downgraded to trivial because export to pdf works
> fine and pdf easily converts to svg.

I strongly disagree because a regression is always a serious bug. The availability of a workaround does not change that.
If a regression  affects a function and is viewed as minor problem, that means you can remove this function.

Best regards. JBF
Comment 10 Mathias Henry 2017-09-02 17:49:52 UTC
Point well taken. I certainly prefer the svg option remain as it takes the user (me) directly to the desired result without any extra thinking.
Comment 11 James 2017-10-15 12:27:38 UTC
Created attachment 136988 [details]
Chart exported as SVG image from Calc in 5.3.2.2/5.4.2.2 on Ubuntu 16.04 (uploaded as PNG)

This SVG export bug also present in 5.4.2.2 installed using DEBs on Ubuntu 16.04. On 5.3.2.2 works absolutely fine. Attaching examples.
Checked and not due to corrupted user profile.
Copying and pasting into Draw and exporting to SVG gives the same problem.

Version: 5.4.2.2
Build ID: 22b09f6418e8c2d508a9eaf86b2399209b0990f4
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk2; 
Locale: en-GB (en_GB.UTF-8); Calc: group
Comment 12 Lior Kaplan 2017-10-15 13:59:13 UTC
I tried to export an SVG file from Impress and the created file is empty (when viewing the SVG).

Version: 6.0.0.0.alpha0+
Build ID: 9685532bc859167c1aa856c6f6792559904b8fb9
CPU threads: 8; OS: Linux 4.13; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); Calc: group
Comment 13 Kai Struck 2018-01-04 18:26:13 UTC
I can confirm a heavily distorted SVG-Export on Linux Mint 18 Mate 64bit using official LO 4.5.5.2
LibreOffice_5.4.4_Linux_x86-64_deb.tar.gz

see attachment. 
(It is a Draw-Object in Writer created and exported with the extension
ChordDiagrams
https://extensions.libreoffice.org/extensions/chorddiagrams)

It works correctly with master~2018-01-03_23.50.04_LibreOfficeDev_6.1.0.0.alpha0_Linux_x86-64_deb.tar.gz

(Also No Problems on Windows 10 64bit with official LO 5.4.4)
Comment 14 Kai Struck 2018-01-04 18:27:03 UTC
Created attachment 138884 [details]
Distorted_SVG_Exports
Comment 15 Razor T 2018-01-07 05:33:39 UTC
Created attachment 138933 [details]
Simple 4-point filled polygon LO Draw project
Comment 16 Razor T 2018-01-07 05:35:21 UTC
Created attachment 138934 [details]
Corrupt simple 4-point polygon LO Draw exported SVG
Comment 17 Razor T 2018-01-07 05:51:42 UTC
Created attachment 138935 [details]
Corrected simple 4-point polygon LO Draw exported SVG

Hi. Confirmed on openSUSE Tumbleweed, LO Version: 5.4.3.2
Build ID: 40m0(Build:2)

I know what the problem is.
I have looked deep in the LO source and cannot seem to find
 where the fault is.

The attached Draw project exports a corrupted SVG, also attached.
An example of a corrected SVG file is also attached. I think my
 correction is actually not quite the right point sequence but it works.

Take a close look. Do you see what happens? It happens consistently
 with every project no matter how many points.

The corrupted:
--------------
<path style="fill:url(#gradient1)" d="M 483,0 L 1118,292 483,800 610,1308 483,800 Z"/>
<path fill="none" stroke="rgb(0,0,0)" stroke-width="28" stroke-linejoin="round" d="M 483,0 L 1118,292 483,800 610,1308 483,800 Z"/>

The corrected:
--------------
<path style="fill:url(#gradient1)" d="M 610,800 L 483,292 1118,800 483,1308 610,800 Z"/>
<path fill="none" stroke="rgb(0,0,0)" stroke-width="28" stroke-linejoin="round" d="M 610,800 L 483,292 1118,800 483,1308 610,800 Z"/>

There are two ways to correct it: 
Shift each of the Y values to the RIGHT, or
Shift each of the X values to the LEFT.
(My corrected SVG file probably should have used the latter, not former.)

After that, correct the M point with the last point value.

See what I mean? Something in the exporter is mismatching the X and Y values,
 they are "out of phase" by one point so to speak.

Possible to whip up a quick fix and release while we wait for 6.x?
I need this to work. I get such fixed release packages in a few days
 here on openSUSE Tumbleweed.
 
Thank you.
Comment 18 raal 2018-01-07 09:16:51 UTC
*** Bug 111394 has been marked as a duplicate of this bug. ***
Comment 19 QA Administrators 2019-01-08 03:42:48 UTC Comment hidden (obsolete)
Comment 20 Mathias Henry 2019-01-08 13:26:49 UTC
This bug is obsolete as it does not affect current versions of LibreOffice and therefore has no need for further attention.

Status is being set in accordance to the instructions in the automated follow-up e-mail.