Bug 133328 - Memory usage increased when changing fonts/ formatting
Summary: Memory usage increased when changing fonts/ formatting
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.0.0.alpha1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Memory
  Show dependency treegraph
 
Reported: 2020-05-23 21:08 UTC by Telesto
Modified: 2020-10-19 00:35 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (49.70 KB, application/vnd.oasis.opendocument.text)
2020-05-23 21:08 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-05-23 21:08:25 UTC
Description:
Memory usage increased when changing fonts/ formatting

Steps to Reproduce:
1. Open the attached file
2. Select all text
3. Change the font and enable or disable different types of formatting

Memory usage will steadily grow.. 

Actual Results:
Memory usage will steadily grow

Expected Results:
Stops at around 228 mb in 6.4


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.0.0.alpha1+ (x64)
Build ID: b587de60d4e6aa96238766272d94f1499b22f696
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 1 Telesto 2020-05-23 21:08:38 UTC
Created attachment 161206 [details]
Example file
Comment 2 Telesto 2020-05-24 17:24:20 UTC
Probably another way to reproduce
1. Open LibreOffice (start center)
2. Open Writer
3. Close the writer document (back to start center)
4. Repeat... 5x.. and notice the memory usage increasing
Comment 3 Abhi 2020-06-19 03:30:03 UTC
Thank you for reporting the bug. I can confirm that the bug is present in version 7.1.0.0.alpha0
Build ID: 4c4b3218b8595a9809ffade0cfd064f3d9335dff
Comment 4 Buovjaga 2020-06-25 13:02:57 UTC
I noticed the simplest way was just to select all and toggle bold on and off. Each toggling increased the memory.

I bibisected with Linux 6.5 repo to https://git.libreoffice.org/core/+/2d341a75c083cf2336fd14db66e850109fe83c89%5E!/
tdf#120734 Increase max lookup value to 10.000

Telesto: this is actually a fix for a report from you.
Comment 5 Buovjaga 2020-06-25 13:19:54 UTC
Discussed with Samuel in the chat and will close this as notabug. We are probably seeing the undo stack growing. No evidence of an actual memory leak. Didn't investigate a method to clear the undo stack (maybe some macro?), but at least mem is freed upon closing the doc.

Samuel referred to https://www.valgrind.org/docs/manual/faq.html#faq.reports