Bug 132492 - Regression: Incorrect rendering of SVG files - cloned paths not displayed
Summary: Regression: Incorrect rendering of SVG files - cloned paths not displayed
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
6.4.3.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-28 15:27 UTC by Callegar
Modified: 2021-03-12 19:55 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
test case (72.36 KB, application/vnd.oasis.opendocument.presentation)
2020-04-28 15:27 UTC, Callegar
Details
svg file (5.18 KB, image/svg+xml)
2020-04-28 15:32 UTC, Callegar
Details
Comparison Firefox and LibreOffice 7.0 master (120.50 KB, image/png)
2020-05-11 11:32 UTC, Xisco Faulí
Details
Screenshot showing the issue (40.19 KB, image/png)
2020-05-11 13:31 UTC, Callegar
Details
SVG file and the Visio file it was converted from (43.94 KB, application/x-zip-compressed)
2020-05-13 21:21 UTC, David García
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Callegar 2020-04-28 15:27:27 UTC
Description:
Draw, impress, writer and calc render some svg images incorrectly, with missing elements.

Interesting enough:

- LibO impress renders correctly the same svg image
- Exporting to pdf leads to a pdf file where the image is rendered correctly
- Asking draw to "break" the svg image, that is to transform it from svg in its internal object representation causes the image to be shown (almost) correctly. I.e. the missing elements are there and the only issues are some misalignments.

I am experiencing this in LibO 6.4.3.2 re-opening slide lectures I made about the same time in the past year (i.e., spring 2019) and I am sure I saw no issue like that at that time.

Hence there is some regression in the svg rendering paths.

Issue does not seem to be influenced by hardware acceleration or opengl.

Steps to Reproduce:
1. Open the test document attached to this bug.
2. See the image
3. Start a presentation or export to pdf and view the pdf
4. See that the image is different.

Actual Results:
SVG image is rendered incorrectly

Expected Results:
SVG image should be rendered correctly


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: PresentationDocument
[Information guessed from browser]
OS: Linux (All)
OS is 64bit: yes
Comment 1 Callegar 2020-04-28 15:27:58 UTC
Created attachment 160031 [details]
test case
Comment 2 Callegar 2020-04-28 15:32:13 UTC
Created attachment 160032 [details]
svg file
Comment 3 Telesto 2020-04-28 18:53:01 UTC
Looks fine on Windows
Versie: 6.4.3.2 (x64)
Build ID: 747b5d0ebf89f41c860ec2a39efd7cb15b54f2d8
CPU-threads: 4; Besturingssysteem: Windows 6.3 Build 9600; UI-render: GL; VCL: win; 
Locale: nl-NL (nl_NL); UI-taal: nl-NL
Calc: CL
Comment 4 Callegar 2020-05-05 10:32:35 UTC
I see the same issue also in LibO 6.3.5.2.

Issue is present also with other VCLs.

The svg elements that are not shown are clones of other paths that have multiple clones.

Unlinking the clones using an svg editor is sufficient to make the SVG file display correctly in LibO.
Comment 5 Xisco Faulí 2020-05-11 11:32:50 UTC
Created attachment 160660 [details]
Comparison Firefox and LibreOffice 7.0 master
Comment 6 Xisco Faulí 2020-05-11 11:33:22 UTC
I can't reproduce it in

Version: 7.0.0.0.alpha1+
Build ID: 86bc13248c1d9f63b10aac304bdf0361d1dcc47f
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Please attach a screenshot and try in a master build
Comment 7 Callegar 2020-05-11 13:31:03 UTC
Created attachment 160666 [details]
Screenshot showing the issue
Comment 8 Callegar 2020-05-11 13:34:38 UTC
I have attached a screenshot showing the misrendering that I see on 6.4.x.
I will try LibO 7 as soon as possible and report.
Comment 9 Xisco Faulí 2020-05-11 13:58:25 UTC
(In reply to sergio.callegari from comment #8)
> I have attached a screenshot showing the misrendering that I see on 6.4.x.
> I will try LibO 7 as soon as possible and report.

what happens if you zoom in and zoom out ?
Comment 10 Telesto 2020-05-11 14:28:36 UTC
Image looks like bug 132498 I based on this for Skia.. but couldn't reproduce with 6.4.3
Comment 11 Callegar 2020-05-11 14:45:16 UTC
Only very partially sensitive to zoom. Connector to bottom right node of the test diagram almost completely disappears at some zoom levels (as in the screenshot) and fully reappears at others. Other connector remain invisible at all zoom levels.
Comment 12 QA Administrators 2020-05-12 03:53:19 UTC Comment hidden (obsolete)
Comment 13 David García 2020-05-13 21:21:36 UTC
Created attachment 160791 [details]
SVG file and the Visio file it was converted from
Comment 14 David García 2020-05-13 21:26:41 UTC
Comment on attachment 160791 [details]
SVG file and the Visio file it was converted from

Hi,

I've also experienced problems with SVG files.

My SVG file was converted and exported by Drawio from an original Visio file.

When I open it in Draw, I get the following message: "Viewer does not support full SVG 1.1".

I've detected the following problems in LO 6.4.3 and 7.0 alpha for Windows 10:

1. The imported object doesn't look like my diagram.

2. It's imported as an image, which means that I can't select any of its elements.
Comment 15 Telesto 2020-05-13 21:44:12 UTC
(In reply to David García from comment #14)
> Comment on attachment 160791 [details]
> SVG file and the Visio file it was converted from
> 
> Hi,
> 
> I've also experienced problems with SVG files.
> 
> My SVG file was converted and exported by Drawio from an original Visio file.
> 
> When I open it in Draw, I get the following message: "Viewer does not
> support full SVG 1.1".
> 
> I've detected the following problems in LO 6.4.3 and 7.0 alpha for Windows
> 10:
> 
> 1. The imported object doesn't look like my diagram.
> 
> 2. It's imported as an image, which means that I can't select any of its
> elements.

Thanks for reporting.. I confirm; the image part. Please create a new bug report. It's a different issue
Comment 16 David García 2020-05-13 21:49:00 UTC
(In reply to Telesto from comment #15)
> (In reply to David García from comment #14)
> > Comment on attachment 160791 [details]
> > SVG file and the Visio file it was converted from
> > 
> > Hi,
> > 
> > I've also experienced problems with SVG files.
> > 
> > My SVG file was converted and exported by Drawio from an original Visio file.
> > 
> > When I open it in Draw, I get the following message: "Viewer does not
> > support full SVG 1.1".
> > 
> > I've detected the following problems in LO 6.4.3 and 7.0 alpha for Windows
> > 10:
> > 
> > 1. The imported object doesn't look like my diagram.
> > 
> > 2. It's imported as an image, which means that I can't select any of its
> > elements.
> 
> Thanks for reporting.. I confirm; the image part. Please create a new bug
> report. It's a different issue

I will. Thanks.
Comment 17 Xisco Faulí 2020-06-17 12:05:27 UTC
Hello sergio.callegari,
is this issue still reproducible with a recent daily build ?
Comment 18 Callegar 2020-09-26 00:15:54 UTC
Issue seems to be gone for me (now testing with 7.0.2.1). Please consider closing.
Comment 19 QA Administrators 2020-09-26 03:54:43 UTC Comment hidden (obsolete)
Comment 20 Roman Kuznetsov 2021-03-12 19:55:50 UTC
Close as WFM by Comment 18