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)
(earliest affected) alpha0+
Hardware: All All
: high major
Assignee: Not Assigned
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: 2022-04-26 14:20 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:
Regression By:

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

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
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: / 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
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: / 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. ***