Page MenuHomeSolus

Opening LibreOffice causes 1 CPU core to jump up to 100% usage
Closed, ResolvedPublic

Description

Upon opening any part of LibreOffice on Solus, one of the four cores on my i7 processor is immediately increased to 100% usage, and is sustained until such time that I close LibreOffice.

I have attempted to use LibreOffice normally both while using a Java runtime environment and without using one, to no avail.

Updating packages, removing my profile, even uninstalling and reinstalling LibreOffice and it's components have failed to solve the problem.

Running writer from the terminal failed to give me any useful information as well.

The information I've managed to collect can be viewed at this post on the Solus forums: https://solus-project.com/forums/viewtopic.php?f=14&t=8093

Hardware: Lenovo Thinkpad X260, 1920x1080, i7 Processor, 16GB RAM, 500GB Samsung Evo SSD.

Related Objects

Event Timeline

euoar added a subscriber: euoar.Jun 5 2017, 10:44 PM

I can confirm the same issue. I've tried to compile and package the "stable" version of libreoffice, but without any luck so far. It needs liborcus-0.11 (we are on 0.12). I builded and packaged liborcus-0.11, but still the build fails and can't find any relevant information. Tried installing libreoffice flatpak, but it causes same issues...

Hope they fix this upstream soon...

Can confirm this same issue on a Lenovo T420, w/ Sandybridge i5 and 8GB RAM..
soffice.bin drives one CPU core to 100% and my CPU reaches 96C in a matter of moments!!!

euoar added a comment.EditedJun 7 2017, 7:16 AM

So, more on this... I finally have been able to build and package the "stable" version (5.2.7). Uninstalled everything and delete config files under ~/.configure, then installed libreoffice 5.2.7. Unfortunately it makes no difference for me: libreoffice continues eating CPU and overheating the laptop to the point that I have to close it.
Anychances that other office suite makes it's way into Solus while this doesn't get fixed upstream? Like Calligra, for example?

euoar added a comment.EditedJun 7 2017, 8:12 PM

And yet more... Yeah, I'm a bit stubborn XD... More interesting info:

  • The bug is not present on a fresh install Solus-2017.04.18.0 (Budgie and Mate clean installations tested)
  • Tested after first update, installing only the required packages listed on the software center and there it's our friend: Libreoffice again using 100% of CPU.

I've got the package list, so may be we can find any of those that aren't working well with libreoffice. Here it is:
bash
ca-certs
clr-boot-manager
cryptsetup
curl
glib2
glibc
gobject-introspection
iso-codes
jansson
kernel-glue
libgcc
libgcrypt
libgomp
libnettle
libnss
libstdc++
libxslt
lz4
openssl
pisi
sqlite3
sudo
systemd

And libssh2 is also pulled by the update.

To be continued...

I ran valgrind on it. Seems to be glibc

--------------------------------------------------------------------------------
         Ir         Dr         Dw   I1mr      D1mr    D1mw   ILmr    DLmr    DLmw 
--------------------------------------------------------------------------------
290,611,899 80,896,237 32,429,391 32,281 9,255,032 519,601 25,994 622,424 197,332  PROGRAM TOTALS

--------------------------------------------------------------------------------
         Ir         Dr         Dw  I1mr      D1mr    D1mw  ILmr    DLmr   DLmw  file:function
--------------------------------------------------------------------------------
113,543,976 42,571,912 16,048,314   142 6,684,107  13,943    68  70,862     60  /home/build/YPKG/root/glibc/build/glibc-2.25/elf/dl-lookup.c:do_lookup_x [/usr/lib64/ld-2.25.so]
 34,733,136  6,991,015          0   414   807,525       0   208 121,448      .  /home/build/YPKG/root/glibc/build/glibc-2.25/string/../sysdeps/x86_64/multiarch/../strcmp.S:strcmp [/usr/lib64/ld-2.25.so]
 30,711,680 10,010,579  4,903,349    45   973,173   1,303    17 111,960     13  /home/build/YPKG/root/glibc/build/glibc-2.25/elf/dl-lookup.c:check_match [/usr/lib64/ld-2.25.so]
 20,196,310  3,515,139  1,352,797    81   130,450  15,714    38  33,768     13  /home/build/YPKG/root/glibc/build/glibc-2.25/elf/dl-lookup.c:_dl_lookup_symbol_x [/usr/lib64/ld-2.25.so]
 19,511,724  3,876,159  1,429,056    65   257,916 263,404    63 196,563 98,346  /home/build/YPKG/root/glibc/build/glibc-2.25/elf/../sysdeps/x86_64/dl-machine.h:_dl_relocate_object
 18,201,122  2,200,363          0    24         0       0    11       .      .  /home/build/YPKG/root/glibc/build/glibc-2.25/elf/../sysdeps/generic/dl-hash.h:do_lookup_x
 17,885,595  3,473,872  1,715,104     4    12,861 112,174     4       .      .  ???:0x00000000004537e0 [/usr/lib64/dri/i965_dri.so]
  7,000,561  2,449,008    515,813    25    91,165     117    25  69,705      2  /home/build/YPKG/root/glibc/build/glibc-2.25/elf/do-rel.h:_dl_relocate_object
  3,878,239  1,005,067    574,908    12   125,960      55     5     682     13  /home/build/YPKG/root/glibc/build/glibc-2.25/elf/dl-misc.c:_dl_name_match_p [/usr/lib64/ld-2.25.so]
  3,547,704      3,797  3,468,208    30         5  63,811     8       0 63,523  ???:0x0000000000156890 [/usr/lib64/libc-2.25.so]
  2,454,189    336,942    425,410   425       573  13,406   106      49 11,580  ???:0x00000000000877c0 [/usr/lib64/libc-2.25.so]
  1,582,450    299,579     14,432   144    19,028   1,017    96     196     70  /home/build/YPKG/root/glibc/build/glibc-2.25/elf/dl-deps.c:_dl_map_object_deps [/usr/lib64/ld-2.25.so]
  1,521,120    388,240    238,880     3     3,424   3,359     3       .      .  ???:0x00000000004536a0 [/usr/lib64/dri/i965_dri.so]
  1,238,579    181,311      2,162    13       164       7    13     161      6  ???:0x00000000000d4a20 [/usr/lib64/dri/i965_dri.so]

Same issue here on a Lenovo X220, Sandybridge, i5-2540M CPU, 8GB RAM.

euoar added a comment.Jun 8 2017, 9:12 AM

I think it's glib2, @sunnyflunk . Following this steps makes disappear the bug on my system:

  • Grab and install glib2-2.52.1-30-1 from the repos
  • Uninstall all libreoffice and grabb and install libreoffice-calc-5.3.3-40-1, libreoffice-common-5.3.3-40-1, libreoffice-writer-5.3.3-40-1 (only those 3 for testing purposes suffice)

Kudos to @euoar for brute forcing this! I've seen a couple of reports on other apps popping up which this likely also resolves.

Yep, good job @euoar !!

Macro youdarealmvp:

euoar added a comment.Jun 8 2017, 6:25 PM

Lolll, thanks XD, happy to see it solved, already giving a bad life to my laptop thanks to packaging, couldn't afford burning it with a hungry libreoffice...

Received the glib2 patch today. Thanks so much for the speedy response!!!