Bug 120440 - Memory usage is increasing rather fast when creating lots of empty documents (45) and pasting a plain text in it
Summary: Memory usage is increasing rather fast when creating lots of empty documents ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.2.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, regression
Depends on:
Blocks: Memory
  Show dependency treegraph
 
Reported: 2018-10-09 09:11 UTC by Telesto
Modified: 2025-06-15 01:57 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2018-10-09 09:11:17 UTC
Description:
Memory usage is increasing rather fast when creating lots of empty documents (45) and pasting a plain text in it

Steps to Reproduce:
1. Open attachment 145507 [details]
2. CTRL+A & CTRL+C
3. Hold CTRL+N until around 35-50 documents are open 
4. Start pasting the text in every document

Actual Results:
Memory usage will increase with easy to 1 GB or more. A drop in memory usage will happen at some point (but takes to long to happen in my opinion & not enough)

Expected Results:
Opening the same amount of document with the same text needs 566


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.2.0.0.alpha0+
Build ID: d9ad59da50c1172fe98f94370221c9c1b688200a
CPU threads: 4; OS: Windows 6.3; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2018-10-08_23:34:44
Locale: nl-NL (nl_NL); Calc: CL
Comment 1 Buovjaga 2018-10-27 15:23:28 UTC
Repro, but not in 6.1.2. Tried bibisecting, but even the latest commit from 9 Oct does not show the problem, stayed below 300MB (weird). Ran installed 6.2 in safe mode, but problem was still seen.

Looks like Linux shows the same mem behaviour.

Version: 6.2.0.0.alpha1+ (x64)
Build ID: 8274c4c62df5b937b3f0bec9e1eeca85f3b219d4
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-10-22_01:47:50
Locale: fi-FI (fi_FI); Calc: threaded

Arch Linux 64-bit
Version: 6.2.0.0.alpha0+
Build ID: 9a373521d7a328197a4bf9abeb0a981b7acba896
CPU threads: 8; OS: Linux 4.18; UI render: default; VCL: gtk3_kde5; 
Locale: fi-FI (fi_FI.UTF-8); Calc: threaded
Built on 19 October 2018
Comment 2 Buovjaga 2020-06-13 12:42:35 UTC
Still repro with master.

Arch Linux 64-bit
Version: 7.1.0.0.alpha0+
Build ID: de1b634a151c198584dc152676183f519c50a2da
CPU threads: 8; OS: Linux 5.6; UI render: default; VCL: kf5
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 12 June 2020
Comment 3 QA Administrators 2022-06-14 03:28:08 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2024-06-14 03:17:54 UTC Comment hidden (obsolete)
Comment 5 Dominick 2025-06-13 03:53:20 UTC
Repro with oldest and master of the versions stated below. Memory increases from 400MB to 1.4GB after opening all the empty documents. Pasting text from the attachment to all empty documents did not change memory usage.

Version: 7.6.8.0.0+ (X86_64) / LibreOffice Community
Build ID: 3a0801282a0aabc64a15f9afc3aedeac6226a979
CPU threads: 24; OS: Windows 10.0 Build 26100; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Version: 25.2.2.0.0+ (X86_64) / LibreOffice Community
Build ID: d3c332aa2d721601b14ecfff3f4f83ab8e9cb5a5
CPU threads: 24; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 41ab24cecd6ad74312843f113d2faa13259cdb7d
CPU threads: 24; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 6 Alan B. 2025-06-15 01:57:16 UTC
Confirmed still reproducible in 26.2, though it only grows from ~450 MB usage with one document to ~730 MB usage for me with about 55 documents.

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: cc99f7736e10c8290d34eeb96aa6a3b7fd63a212
CPU threads: 16; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded