Bug 149102

Summary: Excessive memory use with a certain file with external data
Product: LibreOffice Reporter: ralf.fehlau
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: 79045_79045, ilmari.lauhakangas, sclewell
Priority: medium    
Version: 7.3.3.2 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 122652    
Attachments: with this file you ca reproduce the bug

Description ralf.fehlau 2022-05-15 21:51:47 UTC
As the summary says, there is no data displayed. The attached file was created  and modified with older versions of libreoffice.

Additionally, again there is a memory leak when updating data, until all ram is used by libreoffice (about 12 GB of RAM)!!!
Comment 1 ralf.fehlau 2022-05-15 21:58:49 UTC
Created attachment 180132 [details]
with this file you ca reproduce the bug
Comment 2 Scott Clewell 2022-06-14 23:55:47 UTC
Thanks for reporting but I got the external data using:

Version: 7.3.3.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.3~rc2-0ubuntu0.20.04.1~lo1
Calc: threaded

Would you please provide steps you use to reproduce...maybe I'm doing something different.
Comment 3 ralf.fehlau 2022-06-24 06:20:13 UTC
I tried it again, and I cannot reproduce the bug with the current version. Thanks for fixing this bug.  

But the memory consumption is unchanged. When there are several other references to external data, Libreoffice will be killed by the system, when memory usage exeeds the limits. 

In my case Libreoffice uses 12 GB of memory just before it is killed by the kernel.
Comment 4 QA Administrators 2022-06-25 03:39:09 UTC Comment hidden (obsolete)
Comment 5 Buovjaga 2022-06-25 06:48:37 UTC
For me it crashed after some seconds when I clicked to allow external data, so I guess this merits further investigation.

NixOS
Version: 7.3.3.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 16; OS: Linux 5.18; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Comment 6 Buovjaga 2022-06-27 19:06:59 UTC
Now I can't repro any crash of excessive memory use on my desktop machine with

Arch Linux 64-bit
Version: 7.3.4.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 8; OS: Linux 5.18; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
7.3.4-2
Calc: threaded

or

Version: 7.4.0.0.beta1+ / LibreOffice Community
Build ID: cdf48e57da6b8a6a5eb4131340fa2c14be135714
CPU threads: 8; OS: Linux 5.18; UI render: default; VCL: gtk3
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded

Ralf: can you copy and paste here the contents of your Help - About by clicking the copy button? This allows us to know more about your system.
Comment 7 ralf.fehlau 2022-07-10 21:24:02 UTC
Sorry, a little bit late. Here is my system:

Version: 7.3.4.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 2; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Ubuntu package version: 1:7.3.4-0ubuntu0.22.04.1
Calc: threaded