Bug 129766 - LibreOffice hangs (not responding) for a while when closing a document.
Summary: LibreOffice hangs (not responding) for a while when closing a document.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx, haveBacktrace, perf
Depends on:
Blocks: Memory
  Show dependency treegraph
 
Reported: 2020-01-03 16:42 UTC by Telesto
Modified: 2023-09-07 08:43 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
that very stupid DOCX file with 1000 copies of the same content (10.75 MB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-01-04 13:43 UTC, Roman Kuznetsov
Details
Perf flamegraph (96.98 KB, image/svg+xml)
2021-09-10 17:59 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-01-03 16:42:23 UTC
Description:
LibreOffice hangs (not responding) for a while when closing a document. 

Steps to Reproduce:
1. Open attachment https://drive.google.com/file/d/0B6ccfQG2Kep-Nzk5QW1sc3kxNkk/edit?usp=sharing (takes a while to load; 2-3 minutes)
2. Wait until fully loaded (page counter 4372 pages) (can take a while 5 minutes). LibreOffice can hang for a while
3. Close the document with the grey cross -> LibreOffice is not responding

Actual Results:
LibreOffice is unresponsive for ~2-3 minutes

Expected Results:
A faster closing of the document in question (and/or more responsive)


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.5.0.0.alpha0+ (x64)
Build ID: 42a1a1c6b91907f81e15066ffab219411f18c4db
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: GL; VCL: win; 
Locale: nl-NL (nl_NL); UI-Language: en-US
Calc: CL
Comment 1 Telesto 2020-01-03 16:45:08 UTC
Document source: bug 75972
Comment 2 Roman Kuznetsov 2020-01-04 13:43:34 UTC
Created attachment 156926 [details]
that very stupid DOCX file with 1000 copies of the same content
Comment 3 Roman Kuznetsov 2020-01-04 14:18:15 UTC
yep, closing takes 3:30 min for me in

Version: 6.5.0.0.alpha0+ (x64)
Build ID: c97f9af5e47ea234ad709a1f66c1e8ed20640066
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: GL; VCL: win; 
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: CL

possible memory problem...
Comment 4 Telesto 2020-01-12 17:23:50 UTC
Another sample document (performance is better but still slow)
Attachment 148657 [details]
Comment 5 Buovjaga 2021-09-10 17:59:20 UTC
Created attachment 174953 [details]
Perf flamegraph

Takes like 25 secs to close for me.

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: e6a8d312d3d7e5d81c56d5ccc0508116dd283f1f
CPU threads: 8; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Comment 6 Buovjaga 2021-09-10 18:00:10 UTC
Perf trace taken with attachment 156926 [details]. When opening it says:

An error occurred during opening the file. This may be caused by incorrect file contents.
The error details are:
SAXException: [word/document.xml line 2]: unknown error /home/user/libreofficetwo/sax/source/fastparser/fastparser.cxx:610
Proceeding with import may cause data loss or corruption, and application may become unstable or crash.
Comment 7 Telesto 2021-09-10 19:52:22 UTC Comment hidden (obsolete)
Comment 8 Buovjaga 2021-09-11 06:14:42 UTC
(In reply to Telesto from comment #7)
> Odd, no SAXException here
> 
> Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
> Build ID: 96d1240adf946c443fb2c369a1c84e31e259c7a8
> CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
> Locale: nl-NL (nl_NL); UI: nl-NL
> Calc: CL

On Windows, it actually gets stuck for me and never opens (I used safe mode as it crashed without it):

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: b573ce5683ee648ed391ea3223208e584cf2f868
CPU threads: 2; OS: Windows 10.0 Build 19042; UI render: default; VCL: win
Locale: fi-FI (fi_FI); UI: fi-FI
Calc: threaded
Comment 9 Buovjaga 2021-09-14 15:04:46 UTC
Crash upon open is now bug 144501
Comment 10 Sophie Sipasseuth 2023-09-07 08:43:36 UTC
Repro directly after opening the document with:

Version: 7.0.0.0.alpha1+ (x64)
Build ID: 574c57090642347980d2395e1e183cc7b5c171ad
CPU threads: 8; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win
Locale: fr-FR (fr_FR); UI: en-US
Calc: threaded

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: df3b95a39472e18ea8acdaae447b7176e37a9256
CPU threads: 8; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded

Both make crash LO.