You are not logged in.

#1 2018-01-19 13:00:53

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,390

[SOLVED] libreoffice, 100% cpu use "doing nothing (?)" when using gtk

I don't know when it started, but i noticed that libreoffice (still or fresh) takes 100% while doing nothing (it seems).
No matter what kind of document i open, even with only main window asking to open, soffice is taking 100% cpu.
It only happens when libreoffice is using gtk2 or 3.
I'm using KDE, but i prefer how libreoffice looks with GTK3 interface.

What i have tried so far:
* pacman -Suy
* Trying with libreoffice-still and libreoffice-fresh
* Changing user
* Switching to another gtk3 theme
* OOO_FORCE_DESKTOP=kde SAL_USE_VCLPLUGIN=gtk3 libreoffice (100%cpu use)
* OOO_FORCE_DESKTOP=kde SAL_USE_VCLPLUGIN=gtk2 libreoffice (100%cpu use)


while it is consuming cpu cycles, "strace -f -y" shows the following:

[pid 11854] poll([{fd=11<socket:[21193991]>, events=POLLIN}, {fd=12<anon_inode:[eventfd]>, events=POLLIN}], 2, 60000) = 1 ([{fd=12, revents=POLLIN}])
[pid 11854] read(12<anon_inode:[eventfd]>, "\1\0\0\0\0\0\0\0", 16) = 8
[pid 11854] write(12<anon_inode:[eventfd]>, "\1\0\0\0\0\0\0\0", 8) = 8
[pid 11854] recvmsg(11<socket:[21193991]>, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid 11854] poll([{fd=11<socket:[21193991]>, events=POLLIN}, {fd=12<anon_inode:[eventfd]>, events=POLLIN}], 2, 60000) = 1 ([{fd=12, revents=POLLIN}])
[pid 11854] read(12<anon_inode:[eventfd]>, "\1\0\0\0\0\0\0\0", 16) = 8
[pid 11854] write(12<anon_inode:[eventfd]>, "\1\0\0\0\0\0\0\0", 8) = 8
[pid 11854] recvmsg(11<socket:[21193991]>, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid 11854] poll([{fd=11<socket:[21193991]>, events=POLLIN}, {fd=12<anon_inode:[eventfd]>, events=POLLIN}], 2, 60000) = 1 ([{fd=12, revents=POLLIN}])
[pid 11854] read(12<anon_inode:[eventfd]>, "\1\0\0\0\0\0\0\0", 16) = 8
[pid 11854] write(12<anon_inode:[eventfd]>, "\1\0\0\0\0\0\0\0", 8) = 8
[pid 11854] recvmsg(11<socket:[21193991]>, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid 11854] poll([{fd=11<socket:[21193991]>, events=POLLIN}, {fd=12<anon_inode:[eventfd]>, events=POLLIN}], 2, 60000) = 1 ([{fd=12, revents=POLLIN}])
[pid 11854] read(12<anon_inode:[eventfd]>, "\1\0\0\0\0\0\0\0", 16) = 8
[pid 11854] write(12<anon_inode:[eventfd]>, "\1\0\0\0\0\0\0\0", 8) = 8
[pid 11854] recvmsg(11<socket:[21193991]>, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid 11854] poll([{fd=11<socket:[21193991]>, events=POLLIN}, {fd=12<anon_inode:[eventfd]>, events=POLLIN}], 2, 60000) = 1 ([{fd=12, revents=POLLIN}])
[pid 11854] read(12<anon_inode:[eventfd]>, "\1\0\0\0\0\0\0\0", 16) = 8
[pid 11854] write(12<anon_inode:[eventfd]>, "\1\0\0\0\0\0\0\0", 8) = 8
[pid 11854] recvmsg(11<socket:[21193991]>, {msg_namelen=0}, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid 11854] poll([{fd=11<socket:[21193991]>, events=POLLIN}, {fd=12<anon_inode:[eventfd]>, events=POLLIN}], 2, 60000) = 1 ([{fd=12, revents=POLLIN}])

...and:

koko@Gozer# ls /proc/$(pidof soffice.bin)/fd/12 -la
lrwx------ 1 koko koko 64 gen 19 13:58 /proc/11854/fd/12 -> 'anon_inode:[eventfd]'

Anybody knows what is causing this and maybe has a workaround?

Last edited by kokoko3k (2018-01-19 14:30:40)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#2 2018-01-19 13:20:24

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,415

Re: [SOLVED] libreoffice, 100% cpu use "doing nothing (?)" when using gtk

https://bbs.archlinux.org/viewtopic.php?id=233458

However, at least this particular gripe should be fixed with glib2 2.54.3-2 (although it did introduce a load of others), are you sure that your packages are the latest?

Offline

#3 2018-01-19 14:24:55

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,390

Re: [SOLVED] libreoffice, 100% cpu use "doing nothing (?)" when using gtk

my glib2 is that version, but i've not rebooted since some days.
I'll try now.

-EDIT-
Rebooting fixed it, thanks.

Last edited by kokoko3k (2018-01-19 14:30:16)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

Board footer

Powered by FluxBB