Bug 108996 - hardware acceleration disabled in recent versions of LibO (Linux)
Summary: hardware acceleration disabled in recent versions of LibO (Linux)
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.3.3.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-07 09:19 UTC by just-me
Modified: 2017-08-21 11:58 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
menu showing the inactive hardware acceleration option (67.69 KB, image/png)
2017-07-07 09:19 UTC, just-me
Details

Note You need to log in before you can comment on or make changes to this bug.
Description just-me 2017-07-07 09:19:48 UTC
Created attachment 134525 [details]
menu showing the inactive hardware acceleration option

version affected (as far as I tested)
5.3.3.2
5.3.4.2

HW affected: Can't tell exactly, I yet only tested / found this on my amd64 machines. I could try to test x86_32, too.
GPU: AMD Kabini APU, but also on a different machine w. r600-generation chip (HD 5670), I can check a few others. Freedom driver stack used.
OS: Linux kernel based (Gentoo) (not yet tested / noticed on W32, currently I only have some older W32 installations)


Hello

Recently I discovered that I do not have any video acceleration with LibO (in general = writer, calc, impress and the likes). Things slowed down painfully, especially scrolling with the cursor keys (or PgUp/Dn) causes long delays (and here especially on page changes, several seconds delay) and sometimes produces artifacts (text not correctly re-drawn so it messes up). Mousewheel scroll is slightly better, but also hangs on page changes.
Moreover menu highlighting / navigation stutters / does not work any longer. E.g. you open a drop-down menu and move the cursor over a line - it gets highlighted after a minimal delay - but you want to proceed a few points further down - it does not react anymore, until you re-open the drop down.
I checked and found that video acceleration was not just inactive, it was greyed out (see attached screenshot). It also seems that OpenGL rendering is completely gone from the menu on my Kabini installation.

This is a very unfortunate situation because I use LibO also for my professional activities.

I had this with =app-office/libreoffice-5.3.3.2 and 5.3.4.2 .


Running on Gentoo, here are my USE flags and version infos on possibly involved libraries. 

USE="branding cups dbus gtk3 jemalloc pdfimport -aqua -bluetooth -coinmp -collada -debug -eds -firebird -gltf -gnome -googledrive -gstreamer -gtk -java -kde -libressl -mysql -odk -postgres -quickstarter -telepathy -test -vlc"
LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher"
PYTHON_SINGLE_TARGET="python3_4 -python2_7 -python3_5 -python3_6" PYTHON_TARGETS="python2_7 python3_4 -python3_5 -python3_6"

CPU_FLAGS_X86="aes avx f16c mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3"                                                                                                                                                                                         
CFLAGS="-O2 -mtune=btver2 -march=btver1 -mfpmath=sse -pipe -mpopcnt -maes -mavx -mmmx -msse -msse2 -msse3 -mssse3 -msse4a -msse4.1 -msse4.2 -mmovbe"
CXXFLAGS="-O2 -mtune=btver2 -march=btver1 -mfpmath=sse -O2 -pipe -mpopcnt"
ABI_X86="64 32"                                                                                                                                                                                                                                                                

gcc is =sys-devel/gcc-5.4.0-r3

soffice --version
LibreOffice 5.3.4.2 30m0(Build:2)

sys-kernel/gentoo-sources
4.11.4 (but also others seem affected)

x11-libs/libdrm
2.4.81

media-libs/mesa
17.1.4 (also no changes here while switching minor releases)

x11-base/xorg-server
1.19.3

x11-drivers/xf86-video-ati
7.9.0

x11-libs/cairo
1.14.8

glamor=yes (maybe this could be a culprit? I heard there might have been an issue in the past, though LibO was running mostly fine for me for several years on the Kabini box (and those use glamor by default))

(running in a KDE 5 environment, I could check mate or xfce4, too)

Any other information needed?

By the way, I noticed that also on my other box (Gentoo, but stronger CPU with an r600 based card) I have the same problem (it's just not _that_ slow, but text corruption on scrolling and video accel unavailable).
What I can try additionally: check if libreoffice-bin behaves the same (it's on my E-350 based notebook, Gentoo there, too, but the official binary release).
I have not noticed other programs to expose issues like this recently so I am guessing the fault might be somewhere in LibO.
Comment 1 Buovjaga 2017-08-07 12:23:02 UTC
Did you have OpenGL enabled previously? LibO + OpenGL on Linux is not a working combination yet (for the UI, not talking about Impress transitions).

Wondering, if it is the side effect of some auto-disabling kicking in.

Maybe you can check, if the entries are really false in the profile:
https://wiki.documentfoundation.org/OpenGL#Crash_on_program_start
"On Linux, open the registrymodifications.xcu file found in LibreOffice's user profile folder and change UseOpenGL and ForceOpenGL entries to false"
Comment 2 just-me 2017-08-21 11:56:57 UTC
Thanks I checked that, iirc. also corrected it, but it did not further influence the situation. However in the meantime there was a new release of LibO.

And things seems to be better with =app-office/libreoffice-5.4.0.3, compiled with gtk -gtk3. I no longer have the menu highlighting (focus lost) issues and scrolling over pages seems a lot better, too. (even during 80-100% CPU compilation load on all cores).
HW accel. in the menu is back as an option, all checkboxes can be set / unset.

It might be a bit early to judge but I guess I could close that bug.