Bug 144501 - FILEOPEN DOCX: Crash or hang opening 5013 pages
Summary: FILEOPEN DOCX: Crash or hang opening 5013 pages
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.0.0 alpha0+
Hardware: All All
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, haveBacktrace
: 148584 (view as bug list)
Depends on:
Blocks: Crash
  Show dependency treegraph
 
Reported: 2021-09-14 15:04 UTC by Buovjaga
Modified: 2024-02-10 12:08 UTC (History)
9 users (show)

See Also:
Crash report or crash signature:


Attachments
bt with debug symbols (16.28 KB, text/plain)
2021-09-14 17:42 UTC, Julien Nabet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Buovjaga 2021-09-14 15:04:15 UTC
1. Open attachment 156926 [details] from bug 129766

Tries to open it for a while, but then crashes.

Bibisected with linux-64-7.3 to
https://git.libreoffice.org/core/commit/732b08b22eee2682351a9295be29188852fb0489
tdf#143399 DOCX import: fix lost endnotes or footnotes

Adding Cc: to László Németh
Comment 1 Jean-Baptiste Faure 2021-09-14 16:48:22 UTC
Tests with master updated 2 days ago:

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 0a9b68c9f9880655576e3220d8b70064b367dbee
CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Ubuntu_20.04_x86-64
Calc: threaded

trial n°1: no problem, file opens fine, no crash
trial n°2: try to open from the startcenter, freeze at the beginning of the progress bar
trial n°3: try from menu file > open, freeze at the end of the progress bar

Best regards. JBF
Comment 2 Julien Nabet 2021-09-14 17:42:17 UTC
Created attachment 175024 [details]
bt with debug symbols

On pc Debian x86-64 with master sources updated today, I could reproduce this.
Comment 3 BogdanB 2022-01-27 22:33:52 UTC
1 CPU at 100% for 1 minute. Freezing. I give up, so I don't know how much time I would have to wait.

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 2f4f4cbeb8e50081d607b86b0475b93971c40ab8
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 4 Timur 2022-04-20 12:15:03 UTC
I don't see crash but it hangs on open with memory of 2 GB and counting just 17 pages. 
I don't see regression, it shows 11 pages in 7.2 also with hang for me. 

MSO is also slow to open and then it repaginates for a really long time until it reaches 5013 pages. 
MSO has better workflow to show something and then continue to read content in the background. And it has better memory mgmt as it consumes up to 150 MB. 

I decrease from Critical as I'm skeptic about some simple fix. And it may have duplicates.
Comment 5 Timur 2022-04-26 14:20:07 UTC
*** Bug 148584 has been marked as a duplicate of this bug. ***
Comment 6 Tex2002ans 2024-02-10 12:08:12 UTC
Loaded attachment in comment 0 and timed it using:

Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

- - -

LO 24.2.0:

- 4 mins 48 secs = first paint
- 33+ minutes = ...
   - But still wasn't fully loaded, so I canceled.

Word 365 (2401 Build 17231.20194):

- ~53 secs = first load
- ~3 mins = fully loaded the entire 5013 pages.

(But Word—after first paint—only showed the first 3 pages, rest had to load as you scrolled down.)

- - -

(In reply to Timur from comment #4)
> MSO has better workflow to show something and then continue to read content in the background. And it has better memory mgmt as it consumes up to 150 MB. 

Hmm, I didn't see that. I saw Word at ~1.7 GB after fully loaded.

LO was blasting at a full core for all 33 minutes, and the RAM was ~1 GB by the time I canceled. Who knows how high it would've went!

- - -

But good thing is, no crash... so things have gotten better since 2021! :P