Bug 139993 - Extreme lagging with SVG's containing gradients
Summary: Extreme lagging with SVG's containing gradients
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Object-Fill-Gradient Performance
  Show dependency treegraph
 
Reported: 2021-01-29 10:05 UTC by Gellért Gyuris
Modified: 2023-11-08 04:50 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Test files for lagging with SVG gradients (497.49 KB, application/zip)
2021-01-29 10:05 UTC, Gellért Gyuris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gellért Gyuris 2021-01-29 10:05:36 UTC
Created attachment 169262 [details]
Test files for lagging with SVG gradients

I experience lagging during typing text when there is an inserted SVG.

1) No problem with other formats: I tested EMF, EPS, JPG, PNG, WMF, ODG, not event with PDF.

2) As I researched the cause of the bug I found that it occurs when there is gradient in the SVG.

3) Affected versions:
- LibreOffice 6.4.7.2: There is no problem with real graphics, but with prepared SVG I can cause the lagging.
- LibreOffice 7.0.3.1; 7.0.4.2, 7.1.0.2; 7.2.0.0α: All are affected with real graphics and there is an extreme lagging with prepared SVGs.

Step to reproduce:
- Open a new document
- Insert > Insert image... chose one attached SVG file.
- Start typing some text after inserted image. The characters appear very slowly with lagging and they usually appear at the same time with a small or big delay depending on how many gradient there is in SVG.

Test files:
Real graphics:
- LibreOffice logo.svg: No noticeable lagging with 6.4, but the lagging is experienced with 7.0+.
- Ghostscript_Tiger.svg: Same as above.
Prepared SVG's for testing this bug:
- svg_objects.svg (There is no gradient, only transparency): No problem.
- svg_many_objects.svg (Lot of object without gradients): No problem.
- svg_many_objects_with_gradient (Only a few gradients): Lagging in all versions.
- svg_many_objects_with_gradient.svg (Lot of object with gradients): Extreme lagging, especially in 7.0+


I tested on Linux (Ubuntu 20.10, XOrg).
Comment 1 Telesto 2021-01-30 07:01:15 UTC
I assume this being caused by bug 138068

*** This bug has been marked as a duplicate of bug 138068 ***
Comment 2 Xisco Faulí 2021-02-15 17:11:03 UTC
Hello Gellért Gyuris,
I believe this issue might be fixed now after
https://git.libreoffice.org/core/commit/27a4aea50a9efa5c839b0ae2de1f9f14a7782f11.
Could you please try to reproduce it with a master build from
http://dev-builds.libreoffice.org/daily/master/ ?
You can install it alongside the standard version.
Comment 3 Gellért Gyuris 2021-02-15 18:47:31 UTC
Hi Xisco Faulí,
I tested, but nothing changed. The described bug is present. Below is the tested version. Maybe this bug is not duplicate of #138068. Please test the "svg_many_objects_with_gradient__test_for_lagging[extreme_lagging].odt" file from   the attached test suite. The lagging is very long.

As I mentioned above I assume that the lagging is caused by gradients.

Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: 197f3a97842a9fb75788ba891de652591edd73d4
CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-02-14_20:10:53
Calc: threaded
Comment 4 Gellért Gyuris 2021-02-17 16:36:24 UTC
I made new tests with never daily builds and on windows too. Result:

1) On Linux the bug is still present. No change in daily builds:
Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: 41cffc379259fec626a282ca243a9750d96d1c63
CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-02-15_20:07:52
Calc: threaded

2) On Windows the bug is not present but not only in development builds but also in stable:
Version: 7.1.0.3 (x64) / LibreOffice Community
Build ID: f6099ecf3d29644b5008cc8f48f42f4a40986e4c
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: threaded

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 2c8ffa41ec8e1ab2af95d5e033a445c17d29cf5a
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: threaded

So, I assume this is an new bug, not duplicate of 138068 and this is a Linux specified bug. (I cannot test on OSX)

I mark this bug to new for now.
Comment 5 QA Administrators 2023-02-18 03:24:15 UTC Comment hidden (obsolete)
Comment 6 Gellért Gyuris 2023-02-18 18:32:33 UTC
The bug is still present: 

Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: en-US
Calc: threaded