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
Document source: bug 75972
Created attachment 156926 [details] that very stupid DOCX file with 1000 copies of the same content
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...
Another sample document (performance is better but still slow) Attachment 148657 [details]
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
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.
(In reply to Buovjaga from comment #6) > 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. 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
(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
Crash upon open is now bug 144501
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.