Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 657236 - app-office/libreoffice-bin-6.0.3.2[kde] freezes
Summary: app-office/libreoffice-bin-6.0.3.2[kde] freezes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-03 10:16 UTC by Franz Trischberger
Modified: 2018-09-18 19:38 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
etc_portage_patches_kde-plasma_plasma-workspace-5.12.5_gmenu-dbusmenu-proxy.patch (gmenu-dbusmenu-proxy.patch,95.40 KB, patch)
2018-06-10 15:29 UTC, Greg Turner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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
Repositories:

gentoo
    location: /var/repositories/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=sandybridge -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
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"
DISTDIR="/var/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build y --quiet-fail y"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
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"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de de_DE"
MAKEOPTS="-j10"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTAGE_TMPDIR="/var/tmp"
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"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
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/libthread_db.so.1".
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/libthread_db.so.1".
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/futex.cc:76
#2  0x00007f88df491e6b in ?? () from /usr/lib64/libreoffice/program/libvclplug_gtk3_kde5lo.so
#3  0x00007f88df4884c9 in ?? () from /usr/lib64/libreoffice/program/libvclplug_gtk3_kde5lo.so
#4  0x00007f88f508b734 in ?? () from /usr/lib64/libreoffice/program/libmergedlo.so
#5  0x00007f88f508b876 in ?? () from /usr/lib64/libreoffice/program/libmergedlo.so
#6  0x00007f88f508d70e in ?? () from /usr/lib64/libreoffice/program/libmergedlo.so
#7  0x00007f88f508e361 in ?? () from /usr/lib64/libreoffice/program/libmergedlo.so
#8  0x00007f88f604295f in ?? () from /usr/lib64/libreoffice/program/libmergedlo.so
#9  0x00007f88f622afcd in SalUserEventList::DispatchUserEvents(bool) () from /usr/lib64/libreoffice/program/libmergedlo.so
#10 0x00007f88df477059 in ?? () from /usr/lib64/libreoffice/program/libvclplug_gtk3_kde5lo.so
#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/libvclplug_gtk3_kde5lo.so
#16 0x00007f88df491db1 in ?? () from /usr/lib64/libreoffice/program/libvclplug_gtk3_kde5lo.so
#17 0x00007f88df492dd8 in ?? () from /usr/lib64/libreoffice/program/libvclplug_gtk3_kde5lo.so
#18 0x00007f88f50960f7 in ?? () from /usr/lib64/libreoffice/program/libmergedlo.so
#19 0x00007f88f5096291 in ?? () from /usr/lib64/libreoffice/program/libmergedlo.so
#20 0x00007f88f5097217 in sfx2::FileDialogHelper::Execute(SfxItemSet*&, rtl::OUString&) () from /usr/lib64/libreoffice/program/libmergedlo.so
#21 0x00007f88f5154895 in ?? () from /usr/lib64/libreoffice/program/libmergedlo.so
#22 0x00007f88f5158664 in ?? () from /usr/lib64/libreoffice/program/libmergedlo.so
#23 0x00007f88f517374e in ?? () from /usr/lib64/libreoffice/program/libmergedlo.so
#24 0x00007f88f4ffc64b in ?? () from /usr/lib64/libreoffice/program/libmergedlo.so
#25 0x00007f88f5000c6e in ?? () from /usr/lib64/libreoffice/program/libmergedlo.so
#26 0x00007f88f51f5343 in ?? () from /usr/lib64/libreoffice/program/libmergedlo.so
#27 0x00007f88f604295f in ?? () from /usr/lib64/libreoffice/program/libmergedlo.so
#28 0x00007f88f622afcd in SalUserEventList::DispatchUserEvents(bool) () from /usr/lib64/libreoffice/program/libmergedlo.so
#29 0x00007f88df477059 in ?? () from /usr/lib64/libreoffice/program/libvclplug_gtk3_kde5lo.so
#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/libvclplug_gtk3_kde5lo.so
#35 0x00007f88f623b8be in Application::Yield() () from /usr/lib64/libreoffice/program/libmergedlo.so
#36 0x00007f88f623d0f5 in Application::Execute() () from /usr/lib64/libreoffice/program/libmergedlo.so
#37 0x00007f88f5295325 in ?? () from /usr/lib64/libreoffice/program/libmergedlo.so
#38 0x00007f88f6242526 in ?? () from /usr/lib64/libreoffice/program/libmergedlo.so
#39 0x00007f88f6242622 in SVMain() () from /usr/lib64/libreoffice/program/libmergedlo.so
#40 0x00007f88f52b65d1 in soffice_main () from /usr/lib64/libreoffice/program/libmergedlo.so
#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]
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.  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-4.0.6.2 seems pretty happy most of the time.
Comment 6 Andreas Sturmlechner gentoo-dev 2018-09-18 19:05:25 UTC
Please test with 6.1.1.2.
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.