Bug 117684 - soffice.bin uses 100% CPU -- resolves when 'saving' document
Summary: soffice.bin uses 100% CPU -- resolves when 'saving' document
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.0.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Performance CPU-AT-100%
  Show dependency treegraph
 
Reported: 2018-05-18 07:48 UTC by Geoffrey
Modified: 2024-04-25 06:39 UTC (History)
5 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 Geoffrey 2018-05-18 07:48:05 UTC
Description:
On two different computers running Ubuntu 16.04, and LibreOffice 6 (now on version: 6.0.4.2 Build ID: 1:6.0.4~rc2-0ubuntu0.16.04.1

When I have Writer documents open in the background, and occasionally (can happen several times a day) soffice.bin uses 100% CPU. I found that clicking on the save button in all documents brings CPU usage down to normal - even when the document has been saved and not modified previously (in other words, even if the save button is not showing a red dot).

I could not figure out why this happens sometimes but not others, a day might go by without problem even with several docs open. Also, does not seem to depend on document format. I mainly use Writer, so not sure if it happens with other components. The problem started after I upgraded from a LO version 5 to 6.

Steps to Reproduce:
1. open Writer documents
2. wait
3. check CPU usage (or fan noise)
4. try saving documents to bring CPU usage down

Actual Results:  
CPU at 100%

Expected Results:
CPU usage normal


Reproducible: Sometimes


User Profile Reset: No



Additional Info:


User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0
Comment 1 Joao Farias 2018-06-04 18:47:58 UTC
@Geoffrey, thank you for your report.

Could you provide the documents which cause the issue, as well as the configuration of your machine when the problem arises (e.g., RAM/Processor - both total and usage at the time of the issue)?

Setting to NEEDINFO. When the request information is provided, please, move back to UNCONFIRMED.
Comment 2 Geoffrey 2018-06-19 15:01:50 UTC
I have tried to identify files that cause the problem, but could not single out any. A document might be causing the issue one day, but the next day another document is causing the problem. So I am now almost sure that it is not specific documents that are causing this - nor file formats, it happens with .doc, .odt, .docx. 

When left for a period of time, soffice.bin uses between 97 and 102% CPU. This stops (temporarily) when I either save, or close, the document causing the issue. After a period of time, it might be another document causing the problem. The processor on one of the computers is an Intel Core i5-5200U CPU @ 2.20GHz × 4 (the other computer is an i7 2.5GHzx4)
Comment 3 Buovjaga 2018-06-24 18:27:36 UTC
You could try letting it run in Safe mode and see, if the problem surfaces with it as well.
You can launch it from the command line with libreoffice --safe-mode
or Help - Restart in safe mode and then Continue in safe mode.
Comment 4 Jonatham E. Snow 2018-10-17 19:23:52 UTC
Confirm. 6.0.6.2 running on gentoo linux with kernel 4.9.76

When running in the background with .doc, .docx, .ppt documents, soffice.bin goes to 100% of one cpu and stays there until I maximize a window. Sometimes it will do this right away when I minimize a window, sometimes it takes a while. 

Out in the interwebs, the problem is claimed to be associated with gtk2. But I run a KDE system.
Comment 5 Buovjaga 2018-10-17 20:04:32 UTC
(In reply to Jonatham E. Snow from comment #4)
> Confirm. 6.0.6.2 running on gentoo linux with kernel 4.9.76
> 
> When running in the background with .doc, .docx, .ppt documents, soffice.bin
> goes to 100% of one cpu and stays there until I maximize a window. Sometimes
> it will do this right away when I minimize a window, sometimes it takes a
> while. 
> 
> Out in the interwebs, the problem is claimed to be associated with gtk2. But
> I run a KDE system.

In addition to maximizing, does it go away if you save the document (like it does for Geoffrey)?
Comment 6 QA Administrators 2019-05-08 17:32:01 UTC Comment hidden (obsolete)
Comment 7 Geoffrey 2019-06-03 07:41:08 UTC
Still having this problem, on two different laptops. 
I tried restarting in 'safe mode' as suggested, on both computers, but the problem persists.
Comment 8 Jonatham E. Snow 2019-06-03 16:06:57 UTC
Still having this issue. Using 6.0.6.2
Comment 9 Buovjaga 2019-06-03 16:11:14 UTC
(In reply to Buovjaga from comment #5)
> In addition to maximizing, does it go away if you save the document (like it
> does for Geoffrey)?

Jonatham: I was interested in this information back in October.

Would also be interested in hearing your results with an appimage of 6.3 alpha: https://libreoffice.soluzioniopen.com/
Comment 10 QA Administrators 2019-12-01 03:40:55 UTC Comment hidden (obsolete)
Comment 11 QA Administrators 2020-01-01 03:28:17 UTC Comment hidden (obsolete)
Comment 12 sdc.blanco 2020-01-01 08:11:11 UTC
Have experienced similar situations in Windows 10, at least up to LO 6.3.3.2, so changed hardware to ALL.

Unfortunately, it is not systematic or file-specific - but here is what I notice.

1.  Only happens after "sleeping/"hibernating" Windows (leaving LO open with several files open) and then continuing -- but only occasionally, not every time, but sufficiently frequently to be irritating. (not exactly 100% CPU, more like 30%)

2.  Sometimes the CPU use can be returned to normal by saving an unsaved document.  (there can still be others that are unsaved).

3.  Sometimes the CPU use can be returned to normal by closing a saved document.

4.  But as noted, no obvious pattern as why this starts or what gets it to stop.  Maybe this will remain a NEEDINFO or RESOLVED-INSUFFICIENTDATA.
Comment 13 Buovjaga 2020-01-04 20:36:56 UTC
Setting this to NEW, so it does not go away
Comment 14 sdc.blanco 2020-02-03 12:37:07 UTC
(In reply to Geoffrey from comment #0)
> I found that clicking
> on the save button in all documents brings CPU usage down to normal - even
> when the document has been saved and not modified previously (in other
> words, even if the save button is not showing a red dot)
Have encountered similar cases, where closing an unmodified document will bring CPU usage down.  Often (but not always) these documents are long (50+ pages) and have many bookmarks and images.  (I thought it could be an interaction with the Windows .NET framework, but I can understand that linux users have same problem.)
(will have to try the "save unmodified" technique next time.)
Comment 15 Geoffrey 2020-08-20 13:04:32 UTC
Update: I upgraded to Ubuntu 20.04 in April (now using Libreoffice 6.4.4.2) and I have not had this issue since.
Comment 16 Buovjaga 2020-08-20 13:21:36 UTC
Great, let's close.