Bug 121058 - Memory usage increasing from 133 to +/- 255 MB after scrolling down with page down
Summary: Memory usage increasing from 133 to +/- 255 MB after scrolling down with page...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.2.0.0.alpha1+
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Memory
  Show dependency treegraph
 
Reported: 2018-10-30 13:03 UTC by Telesto
Modified: 2024-02-09 04:45 UTC (History)
2 users (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-30 13:03:34 UTC
Description:
Memory usage increasing from 133 to +/- 255 MB after scrolling down with page down

Steps to Reproduce:
The issue is fixed in the strict sense, when looking at file open. However the issue still present:

1. Open the attachment 145863 [details]
2. Wait until the memory drops to 133MB (fine) (since 30-10-2018; see bug 120735) 
3. Now hold page down until the end, memory usage is back to 255

Actual Results:
255 MB memory usage

Expected Results:
Somewhere around the 133 MB


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 6.2.0.0.alpha1+
Build ID: 2e184378da6058af14acf208d6469fadf44d04ed
CPU threads: 4; OS: Windows 6.3; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2018-10-30_03:29:39
Locale: nl-NL (nl_NL); Calc: threaded
Comment 1 Telesto 2018-10-30 13:09:14 UTC
Not sure how to bibisected, it's obvious after the bugfix for bug 120735
Comment 2 Buovjaga 2018-11-08 16:05:50 UTC
Confirmed in bug 121059.
Comment 3 QA Administrators 2021-06-08 03:29:13 UTC Comment hidden (obsolete)
Comment 4 Carlo 2021-09-29 21:43:35 UTC
Version: 7.2.2.1 (x64) / LibreOffice Community
Build ID: 0e408af0b27894d652a87aa5f21fe17bf058124c
CPU threads: 12; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: it-IT (it_IT); UI: it-IT
Calc: threaded

Actual Results:
Scrolling the document down and up, memory usage increase rapidly.
In my case I reached 326 MB.

Reproducible: Always
Comment 5 QA Administrators 2023-09-30 03:17:43 UTC Comment hidden (obsolete)
Comment 6 Tex2002ans 2024-02-09 04:45:13 UTC
Retested in:

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

- - -

Followed the steps in Comment #0 exactly:

~538 MB on load
~480 MB while holding Page Down
   + constant ~20% CPU usage (on my 8 core CPU) while scrolling.

The page loading was jerky/stuttery as it went through the pages... but besides that, my memory usage actually WENT DOWN while I was scrolling.

When I:

- held Page Up
- made it back to Page 1

my RAM usage was:

~490 MB

- - -

I also tried Comment #4:

> Scrolling the document down and up, memory usage increase rapidly.

I was:

1. Holding Page Down for a while
2. Stop
3. Holding Page Up for a while
4. Stop
5. (Repeat Steps 1–4.)

and I wouldn't call it "increasing rapidly".

My RAM slowly rose ~1–4 MB per 50ish pages—I assume because LO was holding/loading nearby pages in memory—because as I went up/down:

- the CPU dropped
   - Instead of ~20% while scrolling, it was ~12–15%.
- + I was able to scroll through all those previous pages much more quickly.
   - LO was moving through pages MUCH faster/snappier.

(Hence, why I think those pages/layouts/spellchecking-squigglies were now sitting more efficiently in memory.)

So... it seems like this may have been squished somewhere along the line... at least for this specific document.