Bug 167331 - Memory leak in Calc; <500kb spreadsheet file open in the morning can consume all system memory (16GB) by the end of the workday.
Summary: Memory leak in Calc; <500kb spreadsheet file open in the morning can consume ...
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.8.7.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-01 19:50 UTC by Yukon.Hugh
Modified: 2025-07-02 22:58 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Win10 Task manager screenshot #1 (76.14 KB, image/png)
2025-07-01 19:56 UTC, Yukon.Hugh
Details
Win10 Task manager screenshot #1 (67.75 KB, image/png)
2025-07-01 19:56 UTC, Yukon.Hugh
Details
Win10 Task manager screenshot #2 (67.75 KB, image/png)
2025-07-01 19:57 UTC, Yukon.Hugh
Details
Win10 Task manager screenshot #3 (69.16 KB, image/png)
2025-07-01 19:58 UTC, Yukon.Hugh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yukon.Hugh 2025-07-01 19:50:37 UTC
Description:
Open LO/Calc at 7:30AM with 447kb .ODS file.
LO is using about 280MB at that time, per Win10 Task Manager
By 12:30 PM, memory usage is up to ~3GB and will continue to climb throughout the day. The file in question gets intermittent usage during the day, but even when the computer is.
By the end of the workday, as much as all of the system memory (16GB) can be filled by LO, even if the single file is just sitting there unused throughout the day. At that point, the pagefile is working very hard.

This behavior never occured with my prior 7.x.x.2 installs, yet almost always occurs with 24.8.5.2 / 24.8.7.2.

Steps to Reproduce:
1. Open <500KB .ODS file in the morning
2. Either wait all day or lightly use the single file.
3. Check Windows Task Manager by end of day, to see as much as 12GB being utilized by LO/Calc for the same file.

Actual Results:
Memory usage by LO/Calc after 9 hours can be up to 12GB, for just the single <500 KB file

Expected Results:
Closing LO/Calc & reopening with the existing file gets usage back down to <300 MB. I would expect some escalation to occur throught the day based on user operations, but have even seen this extreme memory usage with an unattended PC running LO/Calc


Reproducible: Always


User Profile Reset: No

Additional Info:
Have been doing this exact usage for the past few years, with no abnormal memory usage until very recently.  The only other change from past years is that I had LO finally save the particular file as .ODS rather than .XLSX.  So only two system operational changes of significance.

I will attempt to attach three screenshots of Windows Task Manager
Comment 1 Yukon.Hugh 2025-07-01 19:56:29 UTC
Created attachment 201593 [details]
Win10 Task manager screenshot #1
Comment 2 Yukon.Hugh 2025-07-01 19:56:53 UTC
Created attachment 201594 [details]
Win10 Task manager screenshot #1
Comment 3 Yukon.Hugh 2025-07-01 19:57:41 UTC
Created attachment 201595 [details]
Win10 Task manager screenshot #2
Comment 4 Yukon.Hugh 2025-07-01 19:58:19 UTC
Created attachment 201596 [details]
Win10 Task manager screenshot #3
Comment 5 m_a_riosv 2025-07-02 22:58:03 UTC
Please test in safe mode, Menu/Help/Restart in Safe Mode

Please attach a sample file, reduce the size as much as possible without private information,
and paste the information in Menu/Help/About LibreOffice, there is a copy icon.