FS#57036 - [libreoffice-fresh/glib2] soffice.bin uses 100% CPU on single core

Attached to Project: Arch Linux
Opened by Chris (kitteboss) - Wednesday, 10 January 2018, 16:22 GMT
Last edited by Jan Alexander Steffens (heftig) - Friday, 12 January 2018, 08:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Andreas Radke (AndyRTR)
Jan Alexander Steffens (heftig)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No


When starting libreoffice, the process /usr/lib/libreoffice/program/soffice.bin consumes 100% of a single CPU core according to htop.
This happens even when no document is loaded.

Disabling the splash screen in /etc/libreoffice/sofficerc has no effect. #24617

deleting .config/libreoffice has no effect.

Additional info:
extra/libreoffice-fresh 5.4.4-1

Steps to reproduce:
start libreoffice and check cpu load
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Friday, 12 January 2018, 08:46 GMT
Reason for closing:  Fixed
Additional comments about closing:  2.54.3-2
Comment by Andreas Radke (AndyRTR) - Wednesday, 10 January 2018, 19:03 GMT
What graphic card do you use and what Xorg driver. What LibO vlc (generic/gtk2/gtk3/qt4) do you use?
Can you say when this way introduced and can you solve it with some pkg downgrade?
Comment by Chris (kitteboss) - Wednesday, 10 January 2018, 19:43 GMT
Thanks for your fast reply, your hint regarding LibO vlc pushed me in the right direction. I was able to solve the issue by installing kdelibs (4.14.38-2).
Comment by ads (flv) - Thursday, 11 January 2018, 11:40 GMT Comment by Eli Schwartz (eschwartz) - Thursday, 11 January 2018, 17:14 GMT
According to the similar Void Linux bug at https://github.com/voidlinux/void-packages/issues/6375

Any interaction with glib2 is probably caused by upstream adding this reversion commit in the latest release: https://github.com/GNOME/glib/commit/4976e8109045b8aa72598668b809418d13e1f031
Comment by Chris (kitteboss) - Thursday, 11 January 2018, 21:20 GMT
On my system I'm able to reproduce the bug: when uninstalling kdelibs (4.14.38-2) cpu maxes at 100% with fans running full speed, with kdelibs installed it's all nice and quiet.
Any suggestions on how to further debug this issue? With some help I can try to get a stacktrace on the weekend...
Comment by Chris (kitteboss) - Thursday, 11 January 2018, 21:50 GMT
I can also confirm that the downgrade of glib2 from 2.54.3-1 to 2.54.2-2 solves the issue (without kdelibs installed)
Comment by kkl2401 (kkl2401) - Friday, 12 January 2018, 08:18 GMT
Interestingly enough, this happens to me even *with* kdelibs installed (SAL_USE_VCLPLUGIN="gtk3"). Downgrading glib2 to 2.54.2-2 solves it for me.
Comment by Jan Alexander Steffens (heftig) - Friday, 12 January 2018, 08:32 GMT