Bug 151858 - Crash in: __scrt_throw_std_bad_alloc() memory usage keeps increasing after file open until system freeze or crash
Summary: Crash in: __scrt_throw_std_bad_alloc() memory usage keeps increasing after fi...
Status: RESOLVED DUPLICATE of bug 151736
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.2.3 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: perf
Depends on:
Blocks: Crash
  Show dependency treegraph
 
Reported: 2022-11-01 22:08 UTC by ScootrKDEbug Richards
Modified: 2024-02-20 04:05 UTC (History)
3 users (show)

See Also:
Crash report or crash signature: ["__scrt_throw_std_bad_alloc()"]


Attachments
File hangs Writer during load. (200.97 KB, application/vnd.oasis.opendocument.text)
2022-11-01 22:08 UTC, ScootrKDEbug Richards
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ScootrKDEbug Richards 2022-11-01 22:08:39 UTC
Created attachment 183367 [details]
File hangs Writer during load.

This bug was filed from the crash reporting server and is br-a3dea0ef-d335-4912-9708-a497e4de722a.
=========================================
Trying to open 201kbyte file saved from Writer 7.4.2.1 (I think - it's from 1 rev back, I get all the updates recommended.)
Libre hung, using 2.8 Gbyte, 49% Cpu 

Version info:
Version: 7.4.2.3 (x64) / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 2; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

Writer was able to open other files of same age & Writer version.  Am working on a book, typically am working on 3 files at a time, so I know those files were saved with the same version of Writer.
Hang persisted through reboots of Windows 10, restarts of Writer.
File that hangs is attached. It is coprighted material, so don't copy/spread it around ecept as needed to check out the bug.
Comment 1 ScootrKDEbug Richards 2022-11-01 22:14:04 UTC
Crash report automatically generated is from task manager termination by user, but Writer seemed solidly hung at time.
Comment 2 Telesto 2022-11-02 10:05:52 UTC
Confirm
Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 7a89eae97a970939174d59aa58147eaa194acaee
CPU threads: 8; OS: Mac OS X 12.3.1; UI render: Skia/Raster; VCL: osx
Locale: nl-NL (nl_NL.UTF-8); UI: en-US
Calc: threaded
Comment 3 Telesto 2022-11-02 13:27:38 UTC
Strange file does open with
Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 9cd0f4c2d25462feba0ffcbd906c199273821243
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL threaded

and with
Version: 7.1.8.0.0+ (x64) / LibreOffice Community
Build ID: a94b58277c7aeaa83ce14347cd0b8f7137969d03
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 4 ScootrKDEbug Richards 2022-11-11 17:46:11 UTC
Is there a workaround for this? I really need that file that crashes on load.
Comment 5 Stéphane Guillou (stragu) 2023-06-19 13:40:41 UTC
(In reply to ScootrKDEbug Richards from comment #4)
> Is there a workaround for this? I really need that file that crashes on load.

Have you tried opening it with the latest 7.5 version?
Telesto confirmed the issue with a build from July 2022, but couldn't with a build from October 2022.

No reproduced on Linux with:

Version: 7.5.4.2 (X86_64) / LibreOffice Community
Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: fr-FR (en_AU.UTF-8); UI: en-US
Calc: threaded

Editing and navigating the file plateaus at 350 mb of memory and normal % of CPU.
Comment 6 Tex2002ans 2024-02-16 21:39:06 UTC
The ODT works fine for me on:

Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

I opened it, scrolled all the way up and down, clicked around, and didn't get any crashes.
Comment 7 Stéphane Guillou (stragu) 2024-02-20 04:05:00 UTC
Indeed, I can reproduce with the linux-64-releases repo checked out at libreoffice-7.4.2.3: memory leaks dramatically, 100% of one core used.

Already resolved in libreoffice-7.4.3.2, started at the same time as bug 151736 (not reproduced in 7.3.6.2), and traces point to the same issue -> marking as duplicate.

Thanks everyone!

*** This bug has been marked as a duplicate of bug 151736 ***