Bug 121548 - 100% CPU usage after opening certain DOCX files
Summary: 100% CPU usage after opening certain DOCX files
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.1.3.2 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: CPU-AT-100%
  Show dependency treegraph
 
Reported: 2018-11-20 13:12 UTC by vsza+tdf
Modified: 2019-12-27 15:29 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
test document that triggers the bug (206.06 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-11-20 13:13 UTC, vsza+tdf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vsza+tdf 2018-11-20 13:12:21 UTC
Description:
After opening certain DOCX files, the CPU usage of LibreOffice rises to 100% even though the document has loaded already with all its visible content, and the window has no user interaction.

The problem is still present in the 2018-11-17 build of 6.2.0.0.alpha1.

Steps to Reproduce:
1. Open the attached test.
2. Wait for it to load.
3. Observe CPU usage in top(1) or equivalent.

Actual Results:
CPU usage is 100%

Expected Results:
CPU usage should be negligible having loaded the document without user interaction


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.1.3.2
Build ID: 1:6.1.3-1
CPU threads: 4; OS: Linux 4.18; UI render: default; VCL: gtk3; 
Locale: hu-HU (en_US.UTF-8); Calc: group threaded
Comment 1 vsza+tdf 2018-11-20 13:13:40 UTC
Created attachment 146828 [details]
test document that triggers the bug
Comment 2 vsza+tdf 2018-11-20 14:53:18 UTC
Further experimentation revealed that

1. saving the DOCX file as ODT
2. closing LibreOffice (no soffice processes remain)
3. starting LibreOffice (new soffice process)
4. opening the converted ODT file (from step 1)

results in the same behavior with 100% CPU utilization.
Comment 3 Weng Jing-Yao 2018-11-29 08:20:49 UTC
Bug not reproducible in version

Version: 6.3.0.0.alpha0+ (x64)
Build ID: 0f25a3c36f27fd51453b9a9115f236b83c143684
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-11-27_20:06:55
Locale: zh-TW (zh_TW); UI-Language: en-US
Calc: threaded

but rising to 30% CPU usage
Comment 4 Dorsan Li 2018-11-29 08:28:24 UTC
Bug not reproducible but the CPU rise to 2x% in
Version: 6.3.0.0.alpha0+ (x64)
Build ID: 0f25a3c36f27fd51453b9a9115f236b83c143684
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-11-27_20:06:55
Locale: zh-TW (zh_TW); UI-Language: en-US
Calc: threaded
Comment 5 Miklos Vajna 2018-12-03 20:24:08 UTC
This does happen for me, but not all the time. When it does, then the cursor doesn't blink properly either -- and top(1) shows 229,2 for %CPU. But sometimes it just goes down to 0. Strange. :-)

I wonder if this is a regression... It would be interesting to see the ODT version can trigger the same in e.g. LO 3.5 or not.
Comment 6 Xisco Faulí 2018-12-05 10:51:13 UTC
I can't reproduce it in

Version: 6.3.0.0.alpha0+
Build ID: 6d250d56ed9b6755a3f8131be39fc0537c3d862c
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded
Comment 7 QA Administrators 2019-12-06 04:17:45 UTC Comment hidden (obsolete)
Comment 8 Roman Kuznetsov 2019-12-27 14:26:49 UTC
don't repro in

Версия: 6.5.0.0.alpha0+ (x64)
ID сборки: 42a1a1c6b91907f81e15066ffab219411f18c4db
Потоков ЦП: 4; ОС:Windows 10.0 Build 18362; Отрисовка ИП: по умолчанию; VCL: win; 
Локаль: ru-RU (ru_RU); Язык интерфейса: ru-RU
Calc: threaded

LO takes only 1-2% of my old Intel CPU time

Suggest close it as WFM. Xisco? Miklos?
Comment 9 Xisco Faulí 2019-12-27 15:29:00 UTC
(In reply to Roman Kuznetsov from comment #8)
> don't repro in
> 
> Версия: 6.5.0.0.alpha0+ (x64)
> ID сборки: 42a1a1c6b91907f81e15066ffab219411f18c4db
> Потоков ЦП: 4; ОС:Windows 10.0 Build 18362; Отрисовка ИП: по умолчанию; VCL:
> win; 
> Локаль: ru-RU (ru_RU); Язык интерфейса: ru-RU
> Calc: threaded
> 
> LO takes only 1-2% of my old Intel CPU time
> 
> Suggest close it as WFM. Xisco? Miklos?

I believe so.
No longer reproducible in

Versión: 6.3.4.2 (x86)
Id. de compilación: 60da17e045e08f1793c57c00ba83cdfce946d0aa
Subprocs. CPU: 1; SO: Windows 6.1; Repres. IU: predet.; VCL: win; 
Configuración regional: es-ES (es_ES); Idioma de IU: es-ES
Calc: threaded