Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 657236

Summary: app-office/libreoffice-bin-[kde] freezes
Product: Gentoo Linux Reporter: Franz Trischberger <franz.trischberger>
Component: Current packagesAssignee: Gentoo Office Team <office>
Severity: normal CC: franz.trischberger, gmt, gmturner007
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: etc_portage_patches_kde-plasma_plasma-workspace-5.12.5_gmenu-dbusmenu-proxy.patch

Description Franz Trischberger 2018-06-03 10:16:08 UTC
This is built with USE="java kde".
Libreoffice (writer) just didn't take any mouse/keyboard action anymore, cursor was blinking. The menu grayed out (just like when saving) so it might be an issue with auto-save. This happened now twice to my dad. Both times it was a new unsaved document and libreoffice was idle for some time. Only solution is to kill libreoffice and rely on document restore. The last time clicking "X" in the decoration popped up the dialog "this program isn't responding - kill?", but today this didn't happen so probably events still got processed but ignored as it was saving currently.

kde-frameworks is at 5.46.0.

I didn't see this happen with saved but changed documents yet.


emerge --info

Portage 2.3.40 (python 3.5.5-final-0, default/linux/amd64/17.0/desktop/plasma/systemd, gcc-7.3.0, glibc-2.26-r7, 4.16.11-gentoo x86_64)
System uname: Linux-4.16.11-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.4.1
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Wed, 30 May 2018 05:06:03 +0000
Head commit of repository gentoo: fe94d72b87285a95feb878c4de1e7ae9f7cfaebb

Head commit of repository kde: d26b8d9cccf22e147a59499cc0a0b1f68196422c

sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p2) 2.30.0
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.14-r2::gentoo, 3.5.5::gentoo
dev-util/ccache:          3.3.4-r1::gentoo
dev-util/cmake:           3.11.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.35.5::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r2::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.15::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo

    location: /var/repositories/gentoo
    sync-type: git
    priority: -1000

    location: /var/repositories/kde
    sync-type: git
    sync-uri: git://
    masters: gentoo

CFLAGS="-march=sandybridge -O2 -pipe -ggdb"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=sandybridge -O2 -pipe -ggdb"
EMERGE_DEFAULT_OPTS="--quiet-build y --quiet-fail y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de de_DE"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
USE="X a52 aac acl acpi activities alsa amd64 apm berkdb bluray branding bzip2 cairo cdda cdr cli crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif glamor gpm iconv introspection ipv6 jpeg jpeg2k kde kwallet lcms linguas_de linguas_de_DE mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl nvidia ogg opengl openmp pam pango pcre pdf phonon png policykit ppds pulseaudio qml qt3support qt5 readline sdl seccomp semantic-desktop spell sse sse2 sse3 sse4 sse4_1 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upower usb vaapi vorbis vpx wayland widgets wxwidgets x264 xattr xcb xcomposite xml xscreensaver xv xvid zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="auth_digest authn_file dav dav_fs authz_groupfile" CALLIGRA_FEATURES="krita" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev wacom" KERNEL="linux" L10N="de de-DE" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby19 ruby20 ruby21 ruby22 ruby23" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="i915 i965 intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Comment 1 Andreas Sturmlechner gentoo-dev 2018-06-03 10:27:41 UTC
It's a bug with USE=kde, and that's why the flag is stable-masked.
Comment 2 Franz Trischberger 2018-06-03 10:40:43 UTC
Thank you!
I didn't realize it's masked because I previously had to unmask it as I didn't have time to immediately change to 17.0 profile - and forgot to undo all the changes required to keep 13.0 running after migration was completed.
Comment 3 Franz Trischberger 2018-06-03 12:16:04 UTC
Might be my dad didn't tell me the exact steps, at least I couldn't reproduce it with simply "idling". I had to press "save". And then I got a lockup. Also the lo_kde5filpck process stayed alive after killing libreoffice - and there was another one (which probably proves my dad also clicked save).

Here  are backtraces of the involved processes:

=== lo_kde5filepick ===

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/".
0x00007f7643fe4ac9 in g_mutex_lock (mutex=mutex@entry=0x7f7628004ff0)
    at /var/tmp/portage/dev-libs/glib-2.56.1/work/glib-2.56.1/glib/gthread-posix.c:1343
1343    /var/tmp/portage/dev-libs/glib-2.56.1/work/glib-2.56.1/glib/gthread-posix.c: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0  0x00007f7643fe4ac9 in g_mutex_lock (mutex=mutex@entry=0x7f7628004ff0)
    at /var/tmp/portage/dev-libs/glib-2.56.1/work/glib-2.56.1/glib/gthread-posix.c:1343
#1  0x00007f7643f9e2f4 in g_main_context_release (context=0x7f7628004ff0) at /var/tmp/portage/dev-libs/glib-2.56.1/work/glib-2.56.1/glib/gmain.c:3277
#2  0x00007f7643f9f296 in g_main_context_iterate (context=context@entry=0x7f7628004ff0, block=block@entry=1, dispatch=dispatch@entry=1, 
    self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.56.1/work/glib-2.56.1/glib/gmain.c:3905
#3  0x00007f7643f9f3ec in g_main_context_iteration (context=0x7f7628004ff0, may_block=may_block@entry=1)
    at /var/tmp/portage/dev-libs/glib-2.56.1/work/glib-2.56.1/glib/gmain.c:3964
#4  0x00007f764cb27fcf in QEventDispatcherGlib::processEvents (this=0x55ab0b4ce630, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#5  0x00007f762ea53ee1 in QPAEventDispatcherGlib::processEvents (this=0x55ab0b4ce630, flags=...) at qeventdispatcher_glib.cpp:69
#6  0x00007f764cad40ca in QEventLoop::exec (this=this@entry=0x7ffda18eea30, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#7  0x00007f764cadcb84 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1338
#8  0x000055ab0a0d7656 in ?? ()
#9  0x00007f7645832f0a in __libc_start_main (main=0x55ab0a0d74e0, argc=1, argv=0x7ffda18eec58, init=<optimized out>, fini=<optimized out>, 
    rtld_fini=<optimized out>, stack_end=0x7ffda18eec48) at ../csu/libc-start.c:308
#10 0x000055ab0a0d777a in ?? ()

=== soffice.bin ===

Using host libthread_db library "/lib64/".
syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
38      ../sysdeps/unix/sysv/linux/x86_64/syscall.S: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007f88ea91cbe1 in std::__atomic_futex_unsigned_base::_M_futex_wait_until (this=<optimized out>, __addr=0x559a3eee7de0, __val=2147483648, 
    __has_timeout=<optimized out>, __s=..., __ns=...) at /var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/libstdc++-v3/src/c++11/
#2  0x00007f88df491e6b in ?? () from /usr/lib64/libreoffice/program/
#3  0x00007f88df4884c9 in ?? () from /usr/lib64/libreoffice/program/
#4  0x00007f88f508b734 in ?? () from /usr/lib64/libreoffice/program/
#5  0x00007f88f508b876 in ?? () from /usr/lib64/libreoffice/program/
#6  0x00007f88f508d70e in ?? () from /usr/lib64/libreoffice/program/
#7  0x00007f88f508e361 in ?? () from /usr/lib64/libreoffice/program/
#8  0x00007f88f604295f in ?? () from /usr/lib64/libreoffice/program/
#9  0x00007f88f622afcd in SalUserEventList::DispatchUserEvents(bool) () from /usr/lib64/libreoffice/program/
#10 0x00007f88df477059 in ?? () from /usr/lib64/libreoffice/program/
#11 0x00007f88f0ffbf95 in g_main_dispatch (context=0x559a39a50a80) at /var/tmp/portage/dev-libs/glib-2.56.1/work/glib-2.56.1/glib/gmain.c:3177
#12 g_main_context_dispatch (context=context@entry=0x559a39a50a80) at /var/tmp/portage/dev-libs/glib-2.56.1/work/glib-2.56.1/glib/gmain.c:3830
#13 0x00007f88f0ffc360 in g_main_context_iterate (context=context@entry=0x559a39a50a80, block=block@entry=0, dispatch=dispatch@entry=1, 
    self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.56.1/work/glib-2.56.1/glib/gmain.c:3903
#14 0x00007f88f0ffc3ec in g_main_context_iteration (context=0x559a39a50a80, may_block=0)
    at /var/tmp/portage/dev-libs/glib-2.56.1/work/glib-2.56.1/glib/gmain.c:3964
#15 0x00007f88df4783bb in ?? () from /usr/lib64/libreoffice/program/
#16 0x00007f88df491db1 in ?? () from /usr/lib64/libreoffice/program/
#17 0x00007f88df492dd8 in ?? () from /usr/lib64/libreoffice/program/
#18 0x00007f88f50960f7 in ?? () from /usr/lib64/libreoffice/program/
#19 0x00007f88f5096291 in ?? () from /usr/lib64/libreoffice/program/
#20 0x00007f88f5097217 in sfx2::FileDialogHelper::Execute(SfxItemSet*&, rtl::OUString&) () from /usr/lib64/libreoffice/program/
#21 0x00007f88f5154895 in ?? () from /usr/lib64/libreoffice/program/
#22 0x00007f88f5158664 in ?? () from /usr/lib64/libreoffice/program/
#23 0x00007f88f517374e in ?? () from /usr/lib64/libreoffice/program/
#24 0x00007f88f4ffc64b in ?? () from /usr/lib64/libreoffice/program/
#25 0x00007f88f5000c6e in ?? () from /usr/lib64/libreoffice/program/
#26 0x00007f88f51f5343 in ?? () from /usr/lib64/libreoffice/program/
#27 0x00007f88f604295f in ?? () from /usr/lib64/libreoffice/program/
#28 0x00007f88f622afcd in SalUserEventList::DispatchUserEvents(bool) () from /usr/lib64/libreoffice/program/
#29 0x00007f88df477059 in ?? () from /usr/lib64/libreoffice/program/
#30 0x00007f88f0ffbf95 in g_main_dispatch (context=0x559a39a50a80) at /var/tmp/portage/dev-libs/glib-2.56.1/work/glib-2.56.1/glib/gmain.c:3177
#31 g_main_context_dispatch (context=context@entry=0x559a39a50a80) at /var/tmp/portage/dev-libs/glib-2.56.1/work/glib-2.56.1/glib/gmain.c:3830
#32 0x00007f88f0ffc360 in g_main_context_iterate (context=context@entry=0x559a39a50a80, block=block@entry=1, dispatch=dispatch@entry=1, 
    self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.56.1/work/glib-2.56.1/glib/gmain.c:3903
#33 0x00007f88f0ffc3ec in g_main_context_iteration (context=0x559a39a50a80, may_block=1)
    at /var/tmp/portage/dev-libs/glib-2.56.1/work/glib-2.56.1/glib/gmain.c:3964
#34 0x00007f88df4783bb in ?? () from /usr/lib64/libreoffice/program/
#35 0x00007f88f623b8be in Application::Yield() () from /usr/lib64/libreoffice/program/
#36 0x00007f88f623d0f5 in Application::Execute() () from /usr/lib64/libreoffice/program/
#37 0x00007f88f5295325 in ?? () from /usr/lib64/libreoffice/program/
#38 0x00007f88f6242526 in ?? () from /usr/lib64/libreoffice/program/
#39 0x00007f88f6242622 in SVMain() () from /usr/lib64/libreoffice/program/
#40 0x00007f88f52b65d1 in soffice_main () from /usr/lib64/libreoffice/program/
#41 0x0000559a376b27cb in ?? ()
#42 0x00007f88f2fd4f0a in __libc_start_main (main=0x559a376b27c0, argc=3, argv=0x7ffc65706cf8, init=<optimized out>, fini=<optimized out>, 
    rtld_fini=<optimized out>, stack_end=0x7ffc65706ce8) at ../csu/libc-start.c:308
#43 0x0000559a376b280a in ?? ()
Comment 4 Greg Turner 2018-06-10 15:29:14 UTC
Created attachment 535558 [details, diff]

This patch, applied to =kde-plasma/plasma-workspace-5.12.5 via /etc/portage/patches, backports the code from git plasma-workspace to enable menus in recent libreoffice USE=kde ebuilds.  Aside from it potentially being very helpful to get the menus back, it seems to make libreoffice less prone to spontaneously wigging out (but still not exactly rock-solid).

I don't think this should go into upstream portage, as who knows what unexpected side effects it could have elsewhere, but folks finding themselves here may wish to give it a go (I'm loving it personally).
Comment 5 Greg Turner 2018-06-10 15:43:12 UTC
(In reply to Greg Turner from comment #4)
> Created attachment 535558 [details, diff] [details, diff]
> etc_portage_patches_kde-plasma_plasma-workspace-5.12.5_gmenu-dbusmenu-proxy.
> patch
> This patch, applied to =kde-plasma/plasma-workspace-5.12.5 via
> /etc/portage/patches, backports the code from git plasma-workspace to enable
> menus in recent libreoffice USE=kde ebuilds.

Forgot to mention, I think it's only relevant when you have enabled the "hamburger" menus in kde.  But I'm not sure about that; anyhow I use them in my ~amd64 kde setup and my USE="dbus gtk gtk2 kde java" =app-office/libreoffice- seems pretty happy most of the time.
Comment 6 Andreas Sturmlechner gentoo-dev 2018-09-18 19:05:25 UTC
Please test with
Comment 7 Greg Turner 2018-09-18 19:34:11 UTC
FTR those plasma patches are now upstream and no longer needed with modern releases.
Comment 8 Andreas Sturmlechner gentoo-dev 2018-09-18 19:38:07 UTC
Thanks for the follow-up! Since kde flag is currently stable-masked, latest versions of Frameworks/Plasma are provided in ~arch, I'm going to close this.