Bug 142789 - Memory usage around 1000 MB for 70 page document with file size of 27 MB (images); 360 MB with 6.4
Summary: Memory usage around 1000 MB for 70 page document with file size of 27 MB (ima...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.0.0.beta1+
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, regression
: 141814 (view as bug list)
Depends on:
Blocks: Memory Skia
  Show dependency treegraph
 
Reported: 2021-06-11 09:47 UTC by Telesto
Modified: 2023-11-20 20:03 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 2021-06-11 09:47:05 UTC
Description:
Memory usage around 1000 MB for 70 page document with file size of 27 MB (images)

Steps to Reproduce:
1. open attachment 164149 [details]
2. Take process manager
3. Scroll down.. like you normally do (you might use multi-pageview) -> 900 MB
4. Hit export PDF button.. and save notice bump to 1200

Actual Results:
Around 1000 MB

Expected Results:
400 MB?


Reproducible: Always


User Profile Reset: No



Additional Info:
Found in
Version: 7.2.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: 3b57ebb445df8a2bc3d916ea79f8af45e20e4e62
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

not in
Version: 6.4.0.0.beta1+ (x64)
Build ID: 20be5cd0bdc57d812bf34a2debfe48caa51de881
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win; 
Locale: nl-NL (nl_NL); UI-Language: en-US
Calc: CL
Comment 1 Telesto 2021-06-11 09:49:05 UTC
Also in
Version: 7.0.0.0.beta1+ (x64)
Build ID: 2891e91a513520d68ea2b8c59c14335861a15253
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 2 Telesto 2021-06-11 15:38:41 UTC
My guess, catching the same stuff twice.

1. at Cairo
commit 828504974d70111e4a35b31d579cf42fe660a660	[log]
author	Armin Le Grand (Collabora) <armin.le.grand@me.com>	Fri Feb 21 16:58:17 2020 +0100
committer	Armin Le Grand <Armin.Le.Grand@me.com>	Fri Feb 21 20:16:59 2020 +0100
tree 4c2f7720b3efaecf55b8fa7b9b3eeccb278160e6
parent 813cde918338bccc4f711230616340cad2c1d4a0 [diff]
tdf#130768 speedup huge pixel graphics Cairo
2. At in depended cache at Skia

Both landing in 7.0
Comment 3 Telesto 2021-06-11 15:39:12 UTC
*** Bug 141814 has been marked as a duplicate of this bug. ***
Comment 4 Roman Kuznetsov 2021-06-14 19:13:57 UTC
Skia related. I got ~900mb of used memory after scrolling down of all document in

Version: 7.2.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: 31ed81ea71a20ec119805f66a42f99b3f80d2dc5
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: CL


but, when I checked it with disabled Skia I got only ~500mb of used memory .

and I'm not sure it's a bug. Only Lubos can say it for sure. 

I set this one to NEW (because I really see the difference in used memory). Let's wait
Comment 5 Roman Kuznetsov 2021-06-14 19:19:56 UTC
on Windows 7:

7.0 - ~500mb with Skia enabled (oops!)
7.1 - ~700mb with Skia enabled

so strange
Comment 6 Luboš Luňák 2021-11-17 13:49:39 UTC
(In reply to Roman Kuznetsov from comment #5)
> on Windows 7:
> 
> 7.0 - ~500mb with Skia enabled (oops!)
> 7.1 - ~700mb with Skia enabled

And how much is it with Skia disabled? I don't see any difference.

> so strange

The document contains ~0.5G of image data, so it's not really so strange. This is a trade-off between between memory and speed.
Comment 7 Roman Kuznetsov 2021-11-18 18:59:29 UTC
(In reply to Luboš Luňák from comment #6)
> (In reply to Roman Kuznetsov from comment #5)
> > on Windows 7:
> > 
> > 7.0 - ~500mb with Skia enabled (oops!)
> > 7.1 - ~700mb with Skia enabled
> 
> And how much is it with Skia disabled? I don't see any difference.
 
You should open the file and scroll it to its end using any method (mouse wheel or Page Down key)

515 mb without Skia enabled
675 mb with Skia enabled

in

Version: 7.3.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: 4be0ae19065b1b50870bc0b2a28189ad39c96a8a
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: default; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL
Comment 8 QA Administrators 2023-11-19 03:12:39 UTC Comment hidden (obsolete)
Comment 9 Telesto 2023-11-20 20:03:08 UTC
Unchanged
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ff3fb42b48c70ba5788507a6177bf0a9f3b50fdb
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