Bug 96143 - Table with a lot of images is Denial of Service for Writer 5.x
Summary: Table with a lot of images is Denial of Service for Writer 5.x
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.7.2 release
Hardware: All All
: high critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: perf
Depends on:
Blocks: Writer-Images
  Show dependency treegraph
 
Reported: 2015-11-29 19:15 UTC by Maxim Britov
Modified: 2019-04-28 18:38 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
A lot of images in tabel cells (denial of service for Writer) (1.66 MB, application/vnd.oasis.opendocument.text)
2015-11-29 19:19 UTC, Maxim Britov
Details
Empty menus at my home pc, but work fine on my another pc. (130.63 KB, application/vnd.oasis.opendocument.text)
2015-11-29 19:27 UTC, Maxim Britov
Details
Callgrind output from master (5.27 MB, application/x-xz)
2017-11-12 18:28 UTC, Buovjaga
Details
perf (960.37 KB, image/svg+xml)
2019-04-28 18:34 UTC, Julien Nabet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Britov 2015-11-29 19:15:42 UTC
When open Writer's document with table and image in every cell Writer unresponsive.
I will attach two files with different effects.
Please look.
Comment 1 Maxim Britov 2015-11-29 19:19:08 UTC
Created attachment 120883 [details]
A lot of images in tabel cells (denial of service for Writer)

5.x: x86 not respondind, amd64 out of memory on my pc.
4.3 can open and can  print, but very slow.
File saved in 4.4beta (from metadata).
Comment 2 Maxim Britov 2015-11-29 19:27:52 UTC
Created attachment 120884 [details]
Empty menus at my home pc, but work fine on my another pc.

At my home pc (win7 64 / nvidia 9500gt) Writer 5.x show empty menus.
At my another pc it work fine.
Comment 3 Buovjaga 2015-11-30 11:45:35 UTC
Confirmed.

My whole operating system ground to a halt and I had to take a long break while it thought about the document.

Win 7 Pro 64-bit, Version: 5.0.3.2 (x64)
Build ID: e5f16313668ac592c1bfb310f4390624e3dbfb75
Locale: fi-FI (fi_FI)
Comment 4 Robinson Tryon (qubit) 2015-12-09 18:05:58 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2017-01-03 19:39:14 UTC Comment hidden (obsolete)
Comment 6 Xavier Van Wijmeersch 2017-11-12 15:25:15 UTC
tested with attachment and no denial of service but very slow opening/closing, very slow saving and almost unworkable.

Version: 5.3.1.2
Build ID: e80a0e0fd1875e1696614d24c32df0f95f03deb2
CPU Threads: 8; OS Version: Linux 4.9; UI Render: default; VCL: kde4; Layout Engine: new; 
Locale: nl-BE (en_US.UTF-8); Calc: group

Version: 5.3.8.0.0+
Build ID: 7f1297d9b4f449eb9ada8008fb21b7046d1a8f19
CPU Threads: 8; OS Version: Linux 4.9; UI Render: default; VCL: kde4; Layout Engine: new; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:libreoffice-5-3, Time: 2017-11-10_15:56:34
Locale: nl-BE (en_US.UTF-8); Calc: group

Version: 6.0.0.0.alpha1+
Build ID: 3ca4d1169c1b6d35eecc980251d6d89ff120ee70
CPU threads: 8; OS: Linux 4.9; UI render: default; VCL: kde4; 
Locale: nl-BE (en_US.UTF-8); Calc: group
Comment 7 Telesto 2017-11-12 18:23:54 UTC
Attachment 120883 [details] contains the same large PNG over and over. It's probably same issue as bug 113038

Working pretty decent with LibO 4.0.0.3
Comment 8 Buovjaga 2017-11-12 18:28:49 UTC
Created attachment 137700 [details]
Callgrind output from master

Arch Linux 64-bit, KDE Plasma 5
Version: 6.0.0.0.alpha1+
Build ID: d73225119476de1826f648acca9e93bf6797e813
CPU threads: 8; OS: Linux 4.13; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on November 12th 2017
Comment 9 Telesto 2017-11-15 11:27:14 UTC Comment hidden (obsolete)
Comment 10 Telesto 2017-11-15 11:29:36 UTC
(In reply to Telesto from comment #9)
Oops, mixed up both attachments. Comment 9 is obsolete
Comment 11 Telesto 2018-02-14 15:58:25 UTC
Repro with
LibreOffice 3.5.7.2 
Build ID: 3215f89-f603614-ab984f2-7348103-1225a5b
Comment 12 QA Administrators 2019-02-19 03:43:16 UTC Comment hidden (obsolete)
Comment 13 Julien Nabet 2019-04-28 18:34:28 UTC
Created attachment 151056 [details]
perf

On pc Debian x86-64 with master sources updated today + enable-symbols without debug, I retrieved a trace from the moment the file was opened.
I clicked on 2 images then closed LO.
Comment 14 Julien Nabet 2019-04-28 18:38:29 UTC
Tomaz: noticing your work about rendering, does the Flamegraph perf graph may help to find what to optimize?