Bug 136365 - Writer: 100% CPU when FILEOPEN specific odt
Summary: Writer: 100% CPU when FILEOPEN specific odt
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.3.6.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Performance
  Show dependency treegraph
 
Reported: 2020-09-01 11:48 UTC by Côme Desplats
Modified: 2021-07-05 16:15 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
100 percent cpu.odt (119.81 KB, application/vnd.oasis.opendocument.text)
2020-09-01 11:48 UTC, Côme Desplats
Details
Windows 10 100% CPU (408.02 KB, image/png)
2020-09-17 13:00 UTC, Côme Desplats
Details
Ubuntu 20.04 (284.18 KB, image/png)
2020-09-17 13:02 UTC, Côme Desplats
Details
not 100% (100.50 KB, image/png)
2020-09-18 07:07 UTC, BogdanB
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Côme Desplats 2020-09-01 11:48:38 UTC
Created attachment 164959 [details]
100 percent cpu.odt

After opening the file attached, LibreOffice is stuck at 100% CPU. It is possible to edit and save the document, but not to export as PDF or save as docx.

LibreOffice 6.3 to 7.0 have this problem, whereas LibreOffice 6.2 to 5.3 don't.
Comment 1 Xisco Faulí 2020-09-17 12:07:15 UTC
I can't reproduce it in

Version: 7.1.0.0.alpha0+
Build ID: 6f1e02c96b887750f974c187a82ecd6236e6a435
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

To be certain the reported issue is not related to corruption in the user profile, could you please reset your Libreoffice profile ( https://wiki.documentfoundation.org/UserProfile ) and re-test?

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the issue is still present
Comment 2 Côme Desplats 2020-09-17 13:00:37 UTC
Created attachment 165624 [details]
Windows 10 100% CPU

Issue still present with LibreOffice x64 7.0.1 on Windows 10.
Comment 3 Côme Desplats 2020-09-17 13:02:18 UTC
Created attachment 165625 [details]
Ubuntu 20.04

Issue also present with LibreOffice 6.4.5.2 on Ubuntu 20.04.
Comment 4 Côme Desplats 2020-09-17 14:13:57 UTC
(In reply to Côme Desplats from comment #2)
> Created attachment 165624 [details]
> Windows 10 100% CPU
> 
> Issue still present with LibreOffice x64 7.0.1 on Windows 10.

The test was done with a new profile.
Comment 5 BogdanB 2020-09-18 04:37:58 UTC
I suuceded to export to docx in
Version: 7.0.1.2 (x64)
Build ID: 7cbcfc562f6eb6708b5ff7d7397325de9e764452
CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: ro-RO (ro_RO); UI: en-US
Calc: threaded

10-15 seconds
Comment 6 BogdanB 2020-09-18 04:40:39 UTC
The same export to PDF worked well in
Version: 7.0.1.2 (x64)
Build ID: 7cbcfc562f6eb6708b5ff7d7397325de9e764452
CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: ro-RO (ro_RO); UI: en-US
Calc: threaded

15-20 seconds.

Indeed a mesage appear in the title of the program (Program not responding), but disapear in just some seconds.
Comment 7 Côme Desplats 2020-09-18 06:45:07 UTC
Ok I can also export to PDF, and CPU go down after the export. But if you open the document and do nothing, the CPU is stuck at 100%.
Comment 8 BogdanB 2020-09-18 07:07:55 UTC
Created attachment 165648 [details]
not 100%

I can't confirm 100% CPU

See the graph. Just opening the file. 80% is a maximum for some seconds.
Comment 9 Côme Desplats 2020-09-18 08:00:53 UTC
You have 4 cores, so it is 100/4 = 25% on your computer. 25% on 4 cores is 100% on 1 core, so you also have the issue.
Comment 10 Buovjaga 2021-07-05 14:19:40 UTC
(In reply to BogdanB from comment #8)
> Created attachment 165648 [details]
> not 100%
> 
> I can't confirm 100% CPU
> 
> See the graph. Just opening the file. 80% is a maximum for some seconds.

This is not showing the CPU use for LibreOffice. For me, it goes down to 0% after a quite short spike.

Côme: can you please re-test with the latest version? Also, please copy and paste here the contents of your Help - About. This allows us to know more about your system.

Set to NEEDINFO.
Change back to UNCONFIRMED, if the problem persists. Change to RESOLVED WORKSFORME, if the problem went away.

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 0afa7e64d547a8f2a48402660acf5c95a468a0ab
CPU threads: 2; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: fi-FI (fi_FI); UI: en-US
Calc: threaded Jumbo
Comment 11 Côme Desplats 2021-07-05 15:28:21 UTC
It takes 20 seconds to scroll at the end of the document, but after that everything is OK. Export to PDF and docx works.

So the bug seems to be fixed in LibreOffice 7.1.


Version: 7.1.4.2 (x64) / LibreOffice Community
Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: CL
Comment 12 Buovjaga 2021-07-05 16:15:25 UTC
Great, thanks for re-testing at such a short notice! Let's close as wfm.