Bug 94826 - Big image in header completely freezes modern hardware
Summary: Big image in header completely freezes modern hardware
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.0.3 release
Hardware: x86-64 (AMD64) All
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, perf, regression
Depends on:
Blocks: Writer-Images
  Show dependency treegraph
 
Reported: 2015-10-06 13:16 UTC by Andrew Kornilov
Modified: 2021-12-07 08:01 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Document with big image in the header freezes everything (967.75 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2015-10-06 13:16 UTC, Andrew Kornilov
Details
Example file in ODT format (596.28 KB, application/vnd.oasis.opendocument.text)
2018-06-30 18:32 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Kornilov 2015-10-06 13:16:22 UTC
Created attachment 119355 [details]
Document with big image in the header freezes everything

Hi,

Just got a document from our partners in DOCX format and after opening i got my hi end top hardware (latest i7 CPU,16GB RAM, SSD etc) completely frozen.
Tried both LO4 and LO5, both DOCX and ODT formats - it behaves very slow until i deleted the image from the header.

Please check the attached example document, without any text except image in the header.

Thank you.
Comment 1 Buovjaga 2015-10-08 16:31:36 UTC
Doesn't freeze my system, but the document is slow to scroll and manipulate, so setting to NEW.

Win 7 Pro 64-bit, Version: 5.0.2.2 (x64)
Build ID: 37b43f919e4de5eeaca9b9755ed688758a8251fe
Locale: fi-FI (fi_FI)
Comment 2 Andrew Kornilov 2015-10-09 01:38:29 UTC
I meant that - LO just eats all CPU resources while scrolling, so my system becomes slow and unresponsive.
Comment 3 Buovjaga 2015-10-09 08:40:28 UTC
Confirmed same slowness on Linux, too.

Kubuntu 15.04 64-bit KDE Plasma 5.4
Version: 5.0.2.2
Build ID: 00m0(Build:2)
Locale: en-US (en_US.UTF-8)
Comment 4 Robinson Tryon (qubit) 2015-12-09 18:08:23 UTC Comment hidden (obsolete)
Comment 5 Telesto 2016-12-18 11:24:47 UTC
Repro with:
Version: 5.4.0.0.alpha0+
Build ID: 53edf60c4ce6ed32f87471e018878c40b788005a
CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2016-12-18_06:57:59
Locale: nl-NL (nl_NL); Calc: CL

and with:
Versie: 4.4.6.3 
Build ID: e8938fd3328e95dcf59dd64e7facd2c7d67c704d
Locale: nl_NL

and with:
Version: 4.3.0.4
Build ID: 62ad5818884a2fc2e5780dd45466868d41009ec0

and with:
Versie 4.0.0.3 (Bouw-id: 7545bee9c2a0782548772a21bc84a9dcc583b89)

but not with:
LibreOffice 3.5.7.2 
Build ID: 3215f89-f603614-ab984f2-7348103-1225a5b

and
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 6 QA Administrators 2017-12-19 03:32:37 UTC Comment hidden (obsolete)
Comment 7 Buovjaga 2018-05-30 18:30:39 UTC
Still sluggish.

Arch Linux 64-bit
Version: 6.2.0.0.alpha0+
Build ID: c1452e73091412ba0bb72306329e1912df2ba513
CPU threads: 8; OS: Linux 4.16; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group threaded
Built on May 30th 2018
Comment 8 Buovjaga 2018-06-30 18:01:46 UTC
(In reply to Telesto from comment #5)
> but not with:
> LibreOffice 3.5.7.2 
> Build ID: 3215f89-f603614-ab984f2-7348103-1225a5b
> 
> and
> LibreOffice 3.3.0 
> OOO330m19 (Build:6)
> tag libreoffice-3.3.0.4

Does this mean you see the image in the header with these versions? Because I don't.
Comment 9 Telesto 2018-06-30 18:32:32 UTC
Created attachment 143232 [details]
Example file in ODT format

(In reply to Buovjaga from comment #8)
> Does this mean you see the image in the header with these versions? Because
> I don't.

No, not with docx import. I saved the file as ODT first ;-).
Comment 10 Buovjaga 2018-07-01 16:02:59 UTC
(In reply to Telesto from comment #9)
> Created attachment 143232 [details]
> Example file in ODT format
> 
> (In reply to Buovjaga from comment #8)
> > Does this mean you see the image in the header with these versions? Because
> > I don't.
> 
> No, not with docx import. I saved the file as ODT first ;-).

Thanks, with 43all Linux repo I get range https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=9db88e11882c38cd22564c4a76bb0b878de5fe86...77987eacff20dec40caf29aae61d262239d441e9

Not sure what might be the culprit. There are several commits from Luboš related to graphics.
Comment 11 QA Administrators 2019-07-02 02:43:11 UTC Comment hidden (obsolete)
Comment 12 Luboš Luňák 2021-12-07 07:55:26 UTC
I cannot reproduce, no response from the reporter, assuming it works fine now.
Comment 13 Buovjaga 2021-12-07 08:01:45 UTC
Yep, tested in Linux 7.4 bibisect repo and there is no slowness anymore