Description: LibreOffice is quite unstable after (one or more) large files are opened. I always get it to crash at some point. Simply crash; crashing will opening a file with bad alloc or osl::Thread::create failed. Only getting to the tipping point is quite hard and inconsistent. Sometimes opening a second large file is enough, sometimes I have to open multiple small and large files. If the crash happens while loading the file, memory usage mostly at 1,2 GB or more. And it seems to me its happening when loading is nearly done (when LibO is freeing memory). Bad alloc If the crash is happening when trying to open a file: the File button stops responding; scrolling in one of the opened documents will create a crash (osl::Thread::create failed) Steps to Reproduce: 1. Open http://documentation.libreoffice.org/assets/Uploads/Documentation/en/GS5.2/GS52-GettingStartedLO.odt 2. Open http://documentation.libreoffice.org/assets/Uploads/Documentation/en/GS5.2/GS52-GettingStartedLO.pdf 3. Scroll a bit around in Draw PDF 4. Open a new Writer document 5. Open an existing document 6. Open a copy of http://documentation.libreoffice.org/assets/Uploads/Documentation/en/GS5.2/GS52-GettingStartedLO.pdf 7. Open some LibO file.. 8. Open a new document paste something from the web. 9. Open a copy of http://documentation.libreoffice.org/assets/Uploads/Documentation/en/GS5.2/GS52-GettingStartedLO.odt Tipping point is mostly at step 6 Actual Results: A crash. Without warning. With bad alloc or osl::Thread::create failed Expected Results: No crash Reproducible: Always User Profile Reset: No Additional Info: Found in Version: 5.4.0.0.alpha0+ CPU threads: 4; OS: Windows 6.19; UI render: default; TinderBox: Win-x86@42, Branch:master, Time: 2017-04-05_23:32:27 Locale: nl-NL (nl_NL); Calc: CL and in Version: 5.2.5.0.0+ Build ID: a4d4fbeb623013f6377b30711ceedb38ea4b49f8 CPU Threads: 4; OS Version: Windows 6.2; UI Render: default; TinderBox: Win-x86@62-merge-TDF, Branch:libreoffice-5-2, Time: 2016-12-24_14:43:55 Locale: nl-NL (nl_NL); Calc: CL User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
Reproducible at step 2 Version: 5.3.2.2 (x64) Build ID: 6cd4f1ef626f15116896b1d8e1398b56da0d0ee1 CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; Layout Engine: new; Locale: es-ES (es_ES); Calc: group
Same crash (bad alloc) will also occur with Calc, when opening two copies of this spreadsheet (attachment 130698 [details], bug 105491)
std::bad_alloc is an out of memory error.