Bug 89331 - [WMF/EMF] Slow performance scrolling doc and missing items
Summary: [WMF/EMF] Slow performance scrolling doc and missing items
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Whiteboard: target:7.4.0
Keywords: filter:doc, perf
Depends on:
  Show dependency treegraph
Reported: 2015-02-12 09:42 UTC by Antoine Pitrou
Modified: 2022-05-27 13:14 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:

file (422.00 KB, application/msword)
2015-02-13 15:26 UTC, raal
How it should looks like (568.35 KB, application/pdf)
2021-06-11 10:16 UTC, Bartosz
File converted to docx (311.77 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-06-11 10:17 UTC, Bartosz
Extracted EMF with missing texts in boxes (147.24 KB, image/x-emf)
2022-04-29 09:56 UTC, Bartosz
Screenshot which shows the holes in the line (141.76 KB, image/png)
2022-05-06 07:29 UTC, Bartosz

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Pitrou 2015-02-12 09:42:45 UTC
The following document is a compilation of real estate statistics by a French researcher. It should display many graphs. Those graphs display incorrectly with LibreOffice:

This is with the Ubuntu 14.10 build of LibreOffice ("Build ID: 430m0(Build:2)"). I'm sorry if this is already fixed in mainline.
Comment 1 raal 2015-02-13 15:25:16 UTC
I can confirm with Version:
Build ID: 62969accf9c01b71b738424d4d643db8bfaed182
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:master, Time: 2015-02-08_23:22:32
Comment 2 raal 2015-02-13 15:26:38 UTC
Created attachment 113370 [details]
Comment 3 QA Administrators 2016-02-21 08:35:12 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2019-05-14 03:00:07 UTC Comment hidden (obsolete)
Comment 5 Antoine Pitrou 2019-05-14 08:23:43 UTC
This has gotten worse with:

Build ID: 1:6.0.7-0ubuntu0.18.04.5
Threads CPU : 16; OS : Linux 4.15; UI Render : par défaut; VCL: gtk3; 
Locale : fr-FR (fr_FR.UTF-8); Calc: group

Now the document makes LibreOffice entirely unusable.  It takes a lot of time to import (more than one minute perhaps?) and then the UI becomes extremely sluggish or unresponsive.
Comment 6 Timur 2019-05-14 11:10:05 UTC
This DOC had multiple bugs: 
1. Opening in Writer splits the page into two, so 8 pages in document instead of 7 on open, reproducible from both in Windows and Linux - but Bug 86468 was closed as WontFix. 
2. accidental crash on scrolling down (with mouse on vertical scroll) to the end and up - tested in Windows 7 x64 with LO 4.3.2 - no repro anymore
3. crash on PDF export, original report in bug 80508, confirmed in Linux Mint -  no repro anymore
4. PDF export incomplete, there are items missing in WMF or EMF (legend, caption) - not tested again
5. WMF images in DOC file not rendered correctly in Linux - Bug 80503 closed as a duplicate of fixed bug (not verified)
6. EMF images on original page 6 not rendered correctly both Win, Lin - new bug

This bug was not correctly/exactly reported ("Those graphs display incorrectly" is not specific thus incorrect) but it was likely a duplicate of some. 

Previous comment points to different issue "UI becomes extremely sluggish or unresponsive". I confirm it's sluggish, but not extremely, master both in Win and Lin. So I'll update the title.

Note: current link and 2015. attached file are different. I tested with link.
Comment 7 Xisco Faulí 2019-05-29 20:32:24 UTC
So the hang seems to be a recent regression.


Build ID: 9feb7f7039a3b59974cbf266922177e961a52dd1
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group

it takes

real	0m5,432s
user	0m2,902s
sys	0m0,380s

to open with OOO_EXIT_POST_STARTUP=1

and in

Build ID: aa687b22991e6c674b1d8653d52fbe9a50080174
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded

it takes

real	0m29,191s
user	0m9,430s
sys	0m0,357s
Comment 8 Xisco Faulí 2019-05-30 11:32:30 UTC
So, there are two different performance problems, once recently introduced and another one while scrolling, let's use this one to track the slow performance while scrolling
Comment 9 Bartosz 2021-06-11 10:16:37 UTC
Created attachment 172805 [details]
How it should looks like
Comment 10 Bartosz 2021-06-11 10:17:45 UTC
Created attachment 172806 [details]
File converted to docx
Comment 11 Bartosz 2022-04-29 09:56:13 UTC
Created attachment 179837 [details]
Extracted EMF with missing texts in boxes
Comment 12 Bartosz 2022-05-06 07:29:36 UTC
Created attachment 179962 [details]
Screenshot which shows the holes in the line
Comment 13 Commit Notification 2022-05-09 09:09:58 UTC
Bartosz Kosiorek committed a patch related to this issue.
It has been pushed to "master":


tdf#89331 EMF/WMF Fix holes in lines created with LINETO

It will be available in 7.4.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:

Affected users are encouraged to test the fix and report feedback.
Comment 14 Roman Kuznetsov 2022-05-25 09:01:23 UTC
I have no scrolling problems in

Version: (x64) / LibreOffice Community
Build ID: b6266207b55a7633dc82b02142215757512adfb7
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Vulkan; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: threaded

Xisco, Timur, please retest it too.
Comment 15 Bartosz 2022-05-27 08:24:04 UTC
The scrolling issue is no longer exists from LibreOffice 7.0:

Build ID: 144abb84a525d8e30c9dbbefa69cbbf2d8d4ae3b
CPU threads: 8; OS: Mac OS X 10.16; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

The issue is still reproducible with:
Build ID: 639b8ac485750d5696d7590a72ef1b496725cfb5
CPU threads: 8; OS: Mac OS X 10.16; UI render: default; VCL: osx; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded

I think we could close ticket as Fixed
Comment 16 Timur 2022-05-27 13:14:00 UTC
Really seems as Bartosz wrote.