Bug 150948 - LibreOffice using too much RAM for no reason especially while left to run in the background
Summary: LibreOffice using too much RAM for no reason especially while left to run in ...
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.0.3 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Memory
  Show dependency treegraph
 
Reported: 2022-09-14 09:45 UTC by mvk1234321
Modified: 2023-12-04 03:18 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshots of RAM usage (I don't know what else I can share since this happens with literally any document, big or small) (244.21 KB, application/x-zip-compressed)
2022-09-14 09:45 UTC, mvk1234321
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mvk1234321 2022-09-14 09:45:59 UTC
Created attachment 182432 [details]
Screenshots of RAM usage (I don't know what else I can share since this happens with literally any document, big or small)

OS: Windows 10 Home 21H2 OS Build 19044.1989
LibreOffice version: 7.4.0.3

Issue: LibreOffice Writer uses too much RAM if left in the background for a while (the excessive RAM usage usually starts after a few hours in the background but sometimes it runs for days without guzzling RAM). RAM usage increases by about 20-40 MB per minute when it starts taking more RAM. However, I do not have any other information since this is a totally random bug and I don't know what triggers it. I only have screenshots from Task Manager showing it consuming large amounts of RAM for a 2-page document.

The first time it took up too much RAM however, Windows' Task Manager reported that Writer took 500 MB only (it was 4.7 GB according to the RAM usage graph since it was at 10.6 GB usage before I closed Writer and 5.9 GB after I closed it). The second and third time however, Task Manager has correctly reported RAM usage at 2.1-2.4 GB.

How to reproduce: Happens at random, but this issue usually happens if I leave LibreOffice open in the background for a while without saving.
Comment 1 Telesto 2022-09-14 09:54:23 UTC
Would you mind to post the menu -> help -> about information?
I'm especially interest if you're using Skia Vulkan or Raster

If Vulkan, try forcing Raster by checking: Tools -> Options -> View -> Force Skia Software Rendering.
Comment 2 Telesto 2022-09-14 09:58:50 UTC
Resetting the user profile might help too:
https://wiki.documentfoundation.org/UserProfile#Resolving_corruption_in_the_user_profile
Comment 3 mvk1234321 2022-09-14 10:08:54 UTC
(In reply to Telesto from comment #1)
> Would you mind to post the menu -> help -> about information?
> I'm especially interest if you're using Skia Vulkan or Raster
> 
> If Vulkan, try forcing Raster by checking: Tools -> Options -> View -> Force
> Skia Software Rendering.

It says the following:

Version: 7.4.0.3 (x64) / LibreOffice Community
Build ID: f85e47c08ddd19c015c0114a68350214f7066f5a
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: threaded

I have disabled Skia, does that automatically enable Raster rendering? I can't find an option that specifically says "Raster". Anyways, now, the about info is:

Version: 7.4.0.3 (x64) / LibreOffice Community
Build ID: f85e47c08ddd19c015c0114a68350214f7066f5a
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: default; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: threaded

Is the "default UI render" the same as Raster?
Comment 4 mvk1234321 2022-09-14 13:27:55 UTC
(In reply to Telesto from comment #2)
> Resetting the user profile might help too:
> https://wiki.documentfoundation.org/
> UserProfile#Resolving_corruption_in_the_user_profile

I have left Writer running in the background for a few hours, and it seems it isn't guzzling RAM. But I still have to test it for longer.

By the way, is there any way to make Raster more readable? The lack of anti-aliasing (and the slightly different letter shapes due to the rendering) is making it a bit more difficult to read (though that's partially because my laptop screen is 1366x768 and just 100ppi in pixel density).
Comment 5 Buovjaga 2022-09-14 13:48:31 UTC
You can also test an unstable build Win-x86_64@tb77-TDF from https://dev-builds.libreoffice.org/daily/master/current.html

I noticed there were some memory leak fixes in the past couple of months that are not in 7.4.
Comment 6 mvk1234321 2022-09-14 15:57:10 UTC
(In reply to Buovjaga from comment #5)
> You can also test an unstable build Win-x86_64@tb77-TDF from
> https://dev-builds.libreoffice.org/daily/master/current.html
> 
> I noticed there were some memory leak fixes in the past couple of months
> that are not in 7.4.

Is it possible to install it as a separate program so that I can switch between the unstable version and the one I already have?
Comment 7 Buovjaga 2022-09-14 16:01:35 UTC
(In reply to mvk1234321 from comment #6)
> (In reply to Buovjaga from comment #5)
> > You can also test an unstable build Win-x86_64@tb77-TDF from
> > https://dev-builds.libreoffice.org/daily/master/current.html
> > 
> > I noticed there were some memory leak fixes in the past couple of months
> > that are not in 7.4.
> 
> Is it possible to install it as a separate program so that I can switch
> between the unstable version and the one I already have?

By default it installs separately and also uses a separate user profile directory.
Comment 8 mvk1234321 2022-09-15 11:53:30 UTC
(In reply to Buovjaga from comment #7)
> By default it installs separately and also uses a separate user profile
> directory.

I tried installing the program, but it is giving this error: Warning 1946. Property 'System.AppUserModel.ID' for shortcut 'LibreOfficeDev Math.lnk' could not be set.
Comment 9 Buovjaga 2022-09-15 12:20:06 UTC
(In reply to mvk1234321 from comment #8)
> (In reply to Buovjaga from comment #7)
> > By default it installs separately and also uses a separate user profile
> > directory.
> 
> I tried installing the program, but it is giving this error: Warning 1946.
> Property 'System.AppUserModel.ID' for shortcut 'LibreOfficeDev Math.lnk'
> could not be set.

That's a warning, though, not an error. So it seems to have merely skipped the creation of one shortcut.
Comment 10 Roman Kuznetsov 2023-05-06 14:32:29 UTC
Do you still have the problem with memory leak?
Comment 11 QA Administrators 2023-11-03 03:15:39 UTC Comment hidden (obsolete)
Comment 12 QA Administrators 2023-12-04 03:18:16 UTC
Dear mvk1234321,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp