Description: Writer unresponsive for 20 seconds when saving a DOCX file (or saving it as ODT) Steps to Reproduce: 1. Open http://oval.mitre.org/language/version5.10.1/OVAL_Unix_Component_Specification.04-04-2012.docx 2. Press Save Actual Results: Writer doesn't respond for 20 seconds or so * no CPU hammering * no progress bar (in case of DOCX) Follow up save is fast. File -> Reload and it's slow again Expected Results: * At minimum a progress bar for the DOCX case. * Ideally some speed-up Reproducible: Always User Profile Reset: No Additional Info: Version: 25.8.0.0.alpha1+ (X86_64) / LibreOffice Community Build ID: 17e8dbead42e2d4b55815b1b7b2846b03d62a15d CPU threads: 4; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win Locale: nl-NL (nl_NL); UI: en-US Calc: CL threaded and in Version: 7.0.7.0.0+ (x64) Build ID: 626ea4e62a3e5005fe9825923a1c0c5bdb61cc08 CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win Locale: nl-NL (nl_NL); UI: en-US Calc: CL also in Versie: 4.4.7.2 Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600 Locale: nl_NL and in Versie: 4.2.0.4 Build ID: 05dceb5d363845f2cf968344d7adab8dcfb2ba71
Repro - but only when Visio is installed on the system. Windows-only. The reason is, that during that period, for each of the 28 embedded objects, an instance of Visio starts, opens that object, and reports some information back. That takes time; it's unclear why do we really need to activate all OLE objects now - can't we just re-use the information that we already have?
Created attachment 201129 [details] Some MS Word OLE embeddings This sample has the same problem, but depends on more easily available MS Word.
Created attachment 201130 [details] Some Acrobat Reader OLE objects And finally - the same problem using Acrobat Reader (i.e., a freeware, so anyone can install it to test).
An interesting detail is: the slow save is only when opening DOCX. If you open the ODT saved from that DOCX, or a DOC from that DOCX - their save is instant. So definitely, there's some sub-optimal processing, likely in the DOCX *import* stage (which results in slow save not only back to DOCX, but to any formats, this time).