Libreoffice causing CPU issues even when turned off

@petsam

This package is Debian and IIUC , not installed on OP’s system… or I missed something?..

ehm - no it is not nor it was installed. this was just a trace that i have followed,… in order to find out more on some possibilites.

note: to do some first steps i tried to swith of some libreoffice things in octopi . i did switch off some packages called libreoffice fresh 6,1.xy etc etx.

after i have turned off the system and switched on again the temperature is lower - see below

[martin@martin-pc ~]$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +44.0°C  (high = +80.0°C, crit = +85.0°C)
Core 0:        +44.0°C  (high = +80.0°C, crit = +85.0°C)
Core 1:        +43.0°C  (high = +80.0°C, crit = +85.0°C)

acpitz-virtual-0
Adapter: Virtual device
temp1:        +42.0°C  (crit = +88.0°C)

asus-isa-0000
Adapter: ISA adapter
cpu_fan:     2100 RPM
temp1:        +42.0°C  

[martin@martin-pc ~]$ 



[martin@martin-pc ~]$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +48.0°C  (high = +80.0°C, crit = +85.0°C)
Core 0:        +48.0°C  (high = +80.0°C, crit = +85.0°C)
Core 1:        +48.0°C  (high = +80.0°C, crit = +85.0°C)

acpitz-virtual-0
Adapter: Virtual device
temp1:        +47.0°C  (crit = +88.0°C)

asus-isa-0000
Adapter: ISA adapter
cpu_fan:     2100 RPM
temp1:        +47.0°C  

[martin@martin-pc ~]$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +48.0°C  (high = +80.0°C, crit = +85.0°C)
Core 0:        +49.0°C  (high = +80.0°C, crit = +85.0°C)
Core 1:        +48.0°C  (high = +80.0°C, crit = +85.0°C)

acpitz-virtual-0
Adapter: Virtual device
temp1:        +48.0°C  (crit = +88.0°C)

asus-isa-0000
Adapter: ISA adapter
cpu_fan:     2400 RPM
temp1:        +48.0°C  

[martin@martin-pc ~]$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +48.0°C  (high = +80.0°C, crit = +85.0°C)
Core 0:        +49.0°C  (high = +80.0°C, crit = +85.0°C)
Core 1:        +48.0°C  (high = +80.0°C, crit = +85.0°C)

acpitz-virtual-0
Adapter: Virtual device
temp1:        +48.0°C  (crit = +88.0°C)

asus-isa-0000
Adapter: ISA adapter
cpu_fan:     2400 RPM
temp1:        +48.0°C  

[martin@martin-pc ~]$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +48.0°C  (high = +80.0°C, crit = +85.0°C)
Core 0:        +47.0°C  (high = +80.0°C, crit = +85.0°C)
Core 1:        +49.0°C  (high = +80.0°C, crit = +85.0°C)

acpitz-virtual-0
Adapter: Virtual device
temp1:        +48.0°C  (crit = +88.0°C)

asus-isa-0000
Adapter: ISA adapter
cpu_fan:     2400 RPM
temp1:        +48.0°C  

[martin@martin-pc ~]$ 
[martin@martin-pc ~]$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +49.0°C  (high = +80.0°C, crit = +85.0°C)
Core 0:        +49.0°C  (high = +80.0°C, crit = +85.0°C)
Core 1:        +49.0°C  (high = +80.0°C, crit = +85.0°C)

acpitz-virtual-0
Adapter: Virtual device
temp1:        +48.0°C  (crit = +88.0°C)

asus-isa-0000
Adapter: ISA adapter
cpu_fan:     2400 RPM
temp1:        +48.0°C  

[martin@martin-pc ~]$ top
top - 06:03:14 up  1:06,  6 users,  load average: 0,40, 0,49, 0,69
top - 06:03:17 up  1:06,  6 users,  load average: 0,37, 0,49, 0,69
top - 06:03:17 up  1:06,  6 users,  load average: 0,37, 0,49, 0,69
top - 06:03:17 up  1:06,  6 users,  load average: 0,37, 0,49, 0,69
top - 06:03:17 up  1:06,  6 users,  load average: 0,37, 0,49, 0,69
top - 06:03:17 up  1:06,  6 users,  load average: 0,37, 0,49, 0,69
top - 06:03:27 up  1:06,  6 users,  load average: 0,39, 0,49, 0,69
Tasks: 163 total,   1 running, 162 sleeping,   0 stopped,   0 zombie
%CPU0  :  6,4 us,  5,4 sy,  0,0 ni, 87,9 id,  0,0 wa,  0,0 hi,  0,3 si,  0,0 st
%CPU1  :  8,4 us,  4,7 sy,  0,0 ni, 86,9 id,  0,0 wa,  0,0 hi,  0,0 si,  0,0 st
%CPU2  :  8,3 us,  4,3 sy,  0,0 ni, 87,4 id,  0,0 wa,  0,0 hi,  0,0 si,  0,0 st
%CPU3  :  6,9 us,  4,6 sy,  0,0 ni, 88,4 id,  0,0 wa,  0,0 hi,  0,0 si,  0,0 st
KiB Spch:  3943028 total,   636056 free,  1770472 used,  1536500 buff/cache
KiB Swap:  8674596 total,  8674596 free,        0 used.  1771708 avail Spch

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     ZEIT+ BEFEHL                                                                                          
 1301 martin    20     2136736 332176 122636 S  18,5   8,4  18:36.34 /usr/lib/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 12344 -schedulerPrefs+ 
 1059 martin    20     2802716 336504 138140 S   8,9   8,5  12:25.11 /usr/lib/firefox/firefox                                                                        
 1177 martin    20     2098088 388136 141556 S   4,0   9,8   5:46.49 /usr/lib/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 7601 -schedulerPrefs + 
  812 martin     9 -11 1394156  15812  10256 S   3,6   0,4   1:16.18 /usr/bin/pulseaudio --daemonize=no                                                              
  927 martin    20      471916  64024  52244 S   3,6   1,6   0:04.25 /bin/konsole -session 10139cf9fe4000153963760200000007930015_1539639228_764044                  
  480 root      20      306764  74656  57568 S   3,0   1,9   1:19.33 /usr/lib/Xorg -nolisten tcp -auth /var/run/sddm/{fe46fefb-701f-4b4c-aa5e-4f9fbae4c775} -backgr+

i now try to find out what really happened.
'At the moment i have no libreoffice on the machine,…

Great, you gave us 3 times the output of the sensors temperature. :slight_smile:

That can be a solution indeed.
Have fun!!!

I have also experienced the CPU usage of the filechooser in LibreOffice lately.
I have libreoffice-fresh installed.

I don’t know if I have gvfs (not at the machine right now), but it could be the culprit?

It only happens sometimes, but when it does, it is noticable. Killing the filechooser process(es) returns CPU to normal usage state.

2 Likes

@ bogdancovaciu - well this is one of the critical factors in the show.
srry for being so harsh to show that now the temp has returned to the half of max - in fact decreased over 30 degree celsius.

and for having no lo on the machine - this is not a real soltion to me.
but if you think that it is more safe to pull the wire - you can turn to poweroff by pulling the wire… - is this a solution to you. !’?!

so in fact - having a machine without any lo is no solution to me.
i am not a gamer - i need the machine to work…

@strit - many many thanks for your posting - this is very valuable - since it helps to find out what went wrong…

to sume up. many thanks to all who try to help here.

I asked you to post the output of pacman -Qi libreoffice but you ignored that. For your benefit i will post the output from my machine that never ever had issues with libreoffice:

Name            : libreoffice-fresh
Version         : 6.1.2-1
Description     : LibreOffice branch which contains new features and program enhancements
Architecture    : x86_64
URL             : http://www.libreoffice.org/
Licenses        : LGPL3
Groups          : None
Provides        : libreoffice  libreoffice-en-US
Depends On      : curl>=7.20.0  hunspell>=1.2.8  python>=3.7  libwpd>=0.9.2  libwps  neon>=0.28.6  pango  nspr  libjpeg  libxrandr
                  libgl  libxslt  redland  hyphen  lpsolve  gcc-libs  sh  graphite  icu  lcms2  poppler>=0.24.0  libvisio
                  libetonyek  libodfgen  libcdr  libmspub  harfbuzz-icu  nss  clucene  hicolor-icon-theme  desktop-file-utils
                  shared-mime-info  libpagemaker  libxinerama  libabw  libmwaw  libe-book  libcups  liblangtag  libexttextcat
                  libcmis  liborcus  libtommath  libzmf  libatomic_ops  xmlsec  gpgme  libnumbertext  libfreehand  libstaroffice
                  libepubgen  libqxp  libepoxy
Optional Deps   : java-runtime: adds java support [installed]
                  java-environment: required by extension-wiki-publisher and extension-nlpsolver [installed]
                  pstoedit: translates PostScript and PDF graphics into other vector formats [installed]
                  libmythes: for use in thesaurus
                  beanshell: interactive java -- good for prototyping/macros
                  libwpg: library for importing and converting WordPerfect Graphics format [installed]
                  sane: for scanner access [installed]
                  unixodbc: adds ODBC database support
                  gst-plugins-base-libs: for multimedia content, e.g. in Impress [installed]
                  libpaper: takes care of papersize [installed]
                  postgresql-libs: for postgresql-connector
                  coin-or-mp: required by the Calc solver
                  gtk2: for GTK2 integration [installed]
                  gtk3: for GTK3 integration [installed]
                  kio: for KF5 KDE desktop integration [installed]
Required By     : None
Optional For    : None
Conflicts With  : libreoffice-still
Replaces        : None
Installed Size  : 375,28 MiB
Packager        : Andreas Radke <andyrtr@archlinux.org>
Build Date      : Sb 06 oct 2018 07:41:39 +0300
Install Date    : Du 07 oct 2018 06:53:10 +0300
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

I can have all of them opened, with the filechooser for each and there is no increase in CPU usage

hello dear bogdancovaciu

many many thanks for the continued support you offer . thats just great.

ahh- now on re-read i see: and here are the results…


in@martin-pc ~]$ pacman -Qi libreoffice
Fehler: Paket 'libreoffice' wurde nicht gefunden
[martin@martin-pc ~]$

which means - the paket libreoffoice was not being found…
look forward to hear from you again

greetings

First remove any trace of configs you previously had:
rm -r ~/.config/libreoffice
then install:
sudo pacman -S libreoffice-fresh
or do it from octopi/pamac and select the optional dependencies you see i have installed too in my output.
Then look inside /etc/profile.d/libreoffice-fresh.sh and uncomment or add this line:
export SAL_USE_VCLPLUGIN=gtk3_kde5
If is there by default, uncommented, then let it be.
If your machine is capable of OpenCL and you have the package suited for your GPU installed, enable it in libreoffice settings.
It should work flawlessly :slight_smile:

3 Likes

hello dear bodancovaciu

many many thanks for the quick reply.

the mentioned file - at etc/profile.d/libreoffice-fresh.sh looks like so:


# to force a certain look'n feel

#export SAL_USE_VCLPLUGIN=gen
#export SAL_USE_VCLPLUGIN=gtk3_kde5
#export SAL_USE_VCLPLUGIN=gtk
#export SAL_USE_VCLPLUGIN=gtk3

so i leave it as is

in other words - i do nothing here

If your machine is capable of OpenCL and you have the package suited for your GPU installed, enable it in libreoffice settings.
It should work flawlessly :slight_smile:

hmm - no i do not have OpenCL - and i have no corresponding packages installed…

NO … uncomment the line … remove the # sign so is only
export SAL_USE_VCLPLUGIN=gtk3_kde5
What GPU do you have and what drivers?
inxi -G

hello many thanks

okay i uncommendet it

see the output:


[martin@martin-pc ~]$ inxi -G
Graphics:  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics driver: i915 v: kernel 
           Display: x11 server: X.Org 1.20.1 driver: intel unloaded: modesetting resolution: 1366x768~60Hz 
           OpenGL: renderer: Mesa DRI Intel Sandybridge Mobile v: 3.3 Mesa 18.2.2 
[martin@martin-pc ~]$

look forward to hear from you
greetings

Ok, forget about OpenCL :slight_smile:

That should do it. Restart Libreoffice and see if it still does nasty things …

hello dear bogdancovaciu

many thanks for the continued help . now all looks very nice.

great that it works now.

you made my day!

many many thanks - greetings
malaga

1 Like

No offense, but this stuff has all been covered on the forum numerous times recently. I’m glad you got it working, but you need to polish up on your search procedure.

1 Like

hello tbg,
many thanks for the hint - and for your answer all above.

yesterday i was totally upset since the temp - measured with sensors -
was increasing steadily… so i frightend - to loose the cpu…

  • we have had 80 to 81 degree celsius - and the critical temp is at 88 degree.

above all - youre right i have to polish up on my search procedure.

have a good day
greetings

1 Like

I think–don’t know for sure–that your 2nd Gen. Intel rig may want the xf86-video-intel driver package to be installed to function properly.

sudo pacman -S xf86-video-intel

Reboot, run whatever normally heats up your machine, then report back. It can’t do any harm to try, that is for sure. :smiley:

regards

Same here.

I have libreoffice-fresh installed, but i’m not on kde, i’m on xfce

Sometimes libreoffice becomes so very sluggish, (i.e. typing a letter and waiting for it to appear)

My understanding is that gvfs creates the problem on kde, but what about xfce?

Maybe because i have parts of kde installed (using kdenlive and all)?

$ pacman -Qs gvfs
zsh: correct 'gvfs' to '.gvfs' [nyae]? n
local/gvfs 1.38.1-1 (gnome)
    Virtual filesystem implementation for GIO
local/gvfs-afc 1.38.1-1 (gnome)
    Virtual filesystem implementation for GIO (AFC backend; Apple mobile devices)
local/gvfs-goa 1.38.1-1 (gnome)
    Virtual filesystem implementation for GIO (Gnome Online Accounts backend; cloud storage)
local/gvfs-google 1.38.1-1 (gnome)
    Virtual filesystem implementation for GIO (Google Drive backend)
local/gvfs-gphoto2 1.38.1-1 (gnome)
    Virtual filesystem implementation for GIO (gphoto2 backend; PTP camera, MTP media player)
local/gvfs-mtp 1.38.1-1 (gnome)
    Virtual filesystem implementation for GIO (MTP backend; Android, media player)
local/gvfs-nfs 1.38.1-1 (gnome)
    Virtual filesystem implementation for GIO (NFS backend)
local/gvfs-smb 1.38.1-1 (gnome)
    Virtual filesystem implementation for GIO (SMB/CIFS backend; Windows client)

I have gvfs and using KDE Plasma, no issues. It shouldn’t create any issues in XFCE either.
For libreoffice whatever is using the: export SAL_USE_VCLPLUGIN=gtk3 or not, there shouldn’t be a lag while typing. Is the entropy ok on your system? (just guessing here), but feezes might have something to do with it either splash startup/login or maybe other programs too, so:

Thank you very much for the suggestion
I will look into it

I have installed haveged, this is its status after a reboot

● haveged.service - Entropy Harvesting Daemon
Loaded: loaded (/usr/lib/systemd/system/haveged.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2018-10-18 13:18:30 EEST; 10min ago
Docs: man:haveged(8)
Process: 571 ExecStartPre=/usr/bin/sysctl -w kernel.random.write_wakeup_threshold=1024 (code=exited, status=0/SUCCESS)
Main PID: 573 (haveged)
Tasks: 1 (limit: 4915)
Memory: 3.9M
CGroup: /system.slice/haveged.service
└─573 /usr/bin/haveged --Foreground --verbose=1

Οκτ 18 13:18:30 HOME systemd[1]: Starting Entropy Harvesting Daemon…
Οκτ 18 13:18:30 HOME haveged[573]: haveged: listening socket at 3
Οκτ 18 13:18:30 HOME systemd[1]: Started Entropy Harvesting Daemon.
Οκτ 18 13:18:30 HOME haveged[573]: haveged: ver: 1.9.4; arch: x86; vend: GenuineIntel; build: (gcc 8.2.0 ITV); collect: 128K
Οκτ 18 13:18:30 HOME haveged[573]: haveged: cpu: (L4 VC); data: 32K (L2 L4 V); inst: 32K (L2 L4 V); idx: 24/40; sz: 31410/52825
Οκτ 18 13:18:30 HOME haveged[573]: haveged: tot tests(BA8): A:1/1 B:1/1 continuous tests(B): last entropy estimate 8.00173
Οκτ 18 13:18:30 HOME haveged[573]: haveged: fills: 0, generated: 0

Does that indicate some kind of problem? I really do not know what the entropy problem might be :frowning:

Also here are some of the things discussed on that thread

$ journalctl -p err -b
– Logs begin at Fri 2018-06-01 11:58:44 EEST, end at Thu 2018-10-18 13:33:20 EEST. –
Οκτ 18 13:18:28 HOME kernel: platform gpio_ich.1.auto: failed to claim resource 0: [io 0x0480-0x04ff]
Οκτ 18 13:18:25 HOME systemd[1]: Failed to allocate device unit dev-disk-by\x2dpartlabel-\xe2\x80\xa0\xe2\x80\xa0\xe2\x80\xa0\xe2\x80\xa0\xe2\x80\xa0\xe2\x80\xa0\xe2\x80\xa0\xe2\x80\xa0\xe2>
Οκτ 18 13:18:39 HOME colord-sane[664]: io/hpmud/pp.c 627: unable to read device-id ret=-1
Οκτ 18 13:18:43 HOME NetworkManager[601]: [1539857923.7822] device (enp6s0): addrconf6: failed to start neighbor discovery: failure creating libndp socket: Δεν υποστηρίζετε από το πρ>
Οκτ 18 13:18:43 HOME dhclient[922]: Timeout too large reducing to: 2147483646 (TIME_MAX - 1)
Οκτ 18 13:18:44 HOME rpcbind[940]: cannot create socket for udp6
Οκτ 18 13:18:44 HOME rpcbind[940]: cannot create socket for tcp6
Οκτ 18 13:18:44 HOME rpc.mountd[937]: Could not make a socket: (97) Address family not supported by protocol
Οκτ 18 13:18:44 HOME rpc.mountd[937]: Could not make a socket: (97) Address family not supported by protocol
Οκτ 18 13:18:44 HOME rpc.mountd[937]: Could not make a socket: (97) Address family not supported by protocol
Οκτ 18 13:18:44 HOME rpc.mountd[937]: Could not make a socket: (97) Address family not supported by protocol
Οκτ 18 13:18:44 HOME rpc.mountd[937]: Could not make a socket: (97) Address family not supported by protocol
Οκτ 18 13:18:44 HOME rpc.mountd[937]: Could not make a socket: (97) Address family not supported by protocol
Οκτ 18 13:18:44 HOME rpc.statd[945]: Failed to create listener xprt (statd, 1, udp6)
Οκτ 18 13:18:44 HOME rpc.statd[945]: Failed to create listener xprt (statd, 1, tcp6)
Οκτ 18 13:18:53 HOME mdm-binary[656]: pam_nologin(mdm:auth): cannot determine username
Οκτ 18 13:18:54 HOME systemd[983]: Failed to allocate device unit dev-disk-by\x2dpartlabel-\xe2\x80\xa0\xe2\x80\xa0\xe2\x80\xa0\xe2\x80\xa0\xe2\x80\xa0\xe2\x80\xa0\xe2\x80\xa0\xe2\x80\xa0\xe>
Οκτ 18 13:18:54 HOME mdm-binary[656]: GLib-CRITICAL: g_key_file_get_string: assertion ‘key_file != NULL’ failed
Οκτ 18 13:18:54 HOME mdm-binary[656]: GLib-CRITICAL: g_key_file_free: assertion ‘key_file != NULL’ failed
Οκτ 18 13:19:24 HOME pppd[1337]: Cannot determine ethernet address for proxy ARP

$ dmesg -w | grep ‘error|seg|fail|broke|warn|dump’
[ 0.016666] tsc: Fast TSC calibration failed
[ 0.393481] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
[ 0.407064] pci 0000:00:1c.3: ASPM: current common clock configuration is broken, reconfiguring
[ 0.417457] pci 0000:00:1c.5: ASPM: current common clock configuration is broken, reconfiguring
[ 0.430319] pci 0000:00:1c.6: ASPM: current common clock configuration is broken, reconfiguring
[ 5.965552] vboxdrv: module verification failed: signature and/or required key missing - tainting kernel
[ 8.430089] platform gpio_ich.1.auto: failed to claim resource 0: [io 0x0480-0x04ff]
[ 13.973424] snd_hda_intel 0000:00:1b.0: Codec #3 probe error; disabling it…
[ 23.432416] WARNING: CPU: 3 PID: 659 at mm/usercopy.c:81 usercopy_warn+0x7d/0xa0
[ 23.432477] RIP: 0010:usercopy_warn+0x7d/0xa0
[ 24.716672] ata4.01: failed to enable DIPM, Emask 0x100
[ 25.518209] ata4.01: failed to enable DIPM, Emask 0x100

$ systemctl status systemd-modules-load.service
● systemd-modules-load.service - Load Kernel Modules
Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static; vendor preset: disabled)
Active: active (exited) since Thu 2018-10-18 13:18:22 EEST; 20min ago
Docs: man:systemd-modules-load.service(8)
man:modules-load.d(5)
Process: 321 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=0/SUCCESS)
Main PID: 321 (code=exited, status=0/SUCCESS)

Οκτ 18 13:18:20 HOME systemd-modules-load[321]: Inserted module ‘crypto_user’
Οκτ 18 13:18:22 HOME systemd[1]: Started Load Kernel Modules.

Do any of these make ant sence?

BTW, I have managed to get libreoffice use gtk (not gtk3), which solved some of my problems with it :slight_smile: Thanks for that!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.