Description: When using OOO_EXIT_POST_STARTUP=1 to profile LibreOffice startup on Windows debug build, it leads to crash with abort(). Steps to Reproduce: 1. Build LibreOffice from sources on Windows in debug mode 2. Run LibreOffice with: OOO_EXIT_POST_STARTUP=1 instdir/program/soffice Actual Results: "Debug Error!" popup appears on the screen with the text "abort() has been called", and these push buttons: "Abort", "Retry" and "Ignore". This is the console log: warn:i18nlangtag:24168:8608:i18nlangtag/source/isolang/mslangid.cxx:105: MsLangId::getConfiguredSystemLanguage() - not configured yet warn:extensions.olebridge:24168:8608:extensions/source/ole/olethread.cxx:39: CoInitializeEx failed (expectedly): Cannot change thread mode after it is set. warn:extensions.olebridge:24168:8608:extensions/source/ole/olethread.cxx:59: Thread is in a main single-threaded apartment. Assertion failed: !mIpcThread.is(), file C:/cygwin64/home/user/lode/dev/core/desktop/source/app/officeipcthread.cxx, line 895 Expected Results: LibreOffice should not crash. Reproducible: Always User Profile Reset: No Additional Info: Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: b7544484e122ee9314007e7238507d005c2a4bab CPU threads: 20; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win Locale: en-US (en_DE); UI: en-US Calc: CL threaded Using safe mode did not help.
Created attachment 188756 [details] Backtrace using Visual Studio 2022