Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Computer freezes when starting Libreoffice
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
MadNoah
n00b
n00b


Joined: 16 May 2018
Posts: 20

PostPosted: Fri Jan 11, 2019 3:20 pm    Post subject: Computer freezes when starting Libreoffice Reply with quote

I have libreoffice-6.1.4.2 installed on my (unstable) system. The problem first occurred when i changed the measurement unit from inch to millimeter and restarted office.
It freezed my System (Lenovo Thinkpad E485).
From then on only loads the branding when starting Libreoffice, but instead of the application window the screen freezes and keystrokes have no effect.

Things i have tried so far:

Deleted cache and config files
I have re-emerged libreoffice and all of its dependencies but the problem persists.

emerge --info
Code:

Portage 2.3.54 (python 3.6.6-final-0, default/linux/amd64/17.0, gcc-8.2.0, glibc-2.28-r4, 4.20.0-gentoo x86_64)
=================================================================
System uname: Linux-4.20.0-gentoo-x86_64-AMD_Ryzen_7_2700U_with_Radeon_Vega_Mobile_Gfx-with-gentoo-2.6
KiB Mem:    16071264 total,   8887280 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 06 Jan 2019 12:00:01 +0000
Head commit of repository gentoo: 7815a21acc4e95961b1932cdfe2c5664a22383f0
sh bash 4.4_p23
ld GNU ld (Gentoo 2.31.1 p5) 2.31.1
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.6::gentoo, 3.7.0::gentoo
dev-util/cmake:           3.13.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.40.3::gentoo
sys-apps/sandbox:         2.14::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r3::gentoo
sys-devel/gcc:            8.2.0-r6::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.20::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: --quiet
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

4nykey
    location: /var/lib/layman/4nykey
    sync-type: laymansync
    sync-uri: https://github.com/4nykey/4nykey.git
    masters: gentoo
    priority: 50

fusion809
    location: /var/lib/layman/fusion809
    sync-type: laymansync
    sync-uri: https://github.com/fusion809/fusion809-overlay.git
    masters: gentoo
    priority: 50

science
    location: /var/lib/layman/science
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/sci.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* @FREE CC-Sampling-Plus-1.0 -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver1 -O2 -ftree-vectorize -fearly-inlining -finline-functions -fstrength-reduce -frerun-cse-after-loop -funroll-loops -funswitch-loops -fgcse-after-reload -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
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"
CXXFLAGS="-march=znver1 -O2 -ftree-vectorize -fearly-inlining -finline-functions -fstrength-reduce -frerun-cse-after-loop -funroll-loops -funswitch-loops -fgcse-after-reload -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--complete-graph --with-bdeps=y --deep --quiet=y --quiet-build=y --keep-going --ask --jobs 5 --load-average 5.0"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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-docompress binpkg-dostrip binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j5 -l4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--quiet"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=100 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="acl acpi alisp alsa alsa-plugin amd64 asm berkdb bzip2 cli consolekit crypt cxx experimental fortran gdbm gtk gtk2 gtk3 iconv ipv6 lapack libinput libnotify libtirpc mp3 mp4 mtp multilib ncurses nls nptl openmp pam pci pcre readline seccomp ssl tcpd thread-safety threads unicode usb vorbis wayland xattr zlib zsh-completion" ABI_X86="64" ALSA_CARDS="hda-intel usb-audio" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a 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 keyboard libinput mouse" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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, LANG, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS


/etc/portage/package.use/libreoffice
Code:

app-office/libreoffice -googledrive -odk -eds -bluetooth -gtk2 java cups pdfimport branding
Back to top
View user's profile Send private message
MadNoah
n00b
n00b


Joined: 16 May 2018
Posts: 20

PostPosted: Fri Jan 11, 2019 9:58 pm    Post subject: Reply with quote

Do any of you know a way to find out more about the error occurring?
Back to top
View user's profile Send private message
mike155
l33t
l33t


Joined: 17 Sep 2010
Posts: 995
Location: Frankfurt, Germany

PostPosted: Sat Jan 12, 2019 12:11 am    Post subject: Reply with quote

I see the use flag 'wayland' in your output of 'emerge --info'.

Did you start LibreOffice in Wayland mode? Does it work better if you start it in X11 mode? Try:
Code:
WAYLAND_DISPLAY='' /usr/bin/libreoffice --nologo

If that doesn't help: please post what LibreOffice writes to your terminal when you start it.
Back to top
View user's profile Send private message
MadNoah
n00b
n00b


Joined: 16 May 2018
Posts: 20

PostPosted: Sat Jan 12, 2019 11:18 am    Post subject: Reply with quote

WAYLAND_DISPLAY='' /usr/bin/libreoffice --nologo
Code:
javaldx: Could not find a Java Runtime Enviroment !
Warning: failed to read path from javaldx

then the whole thing freezes again

Where did this java bug come from?
virtual/jre-1.8.0-r1 & virtual/jdk-1.8.0-r3 seem to bee installed on my system.
Back to top
View user's profile Send private message
mike155
l33t
l33t


Joined: 17 Sep 2010
Posts: 995
Location: Frankfurt, Germany

PostPosted: Sat Jan 12, 2019 10:30 pm    Post subject: Reply with quote

MadNoah,

Linux, X11 and LibreOffice are very mature and stable nowadays. It's very unusual that the whole system freezes when you start LibreOffice. That's probably also the reason why nobody (except me) answered so far.

But this tells us something: it's not a simple bug or mis-configuration. Something is fundamentally broken on your machine. It won't be easy to find the reason for the freezes - but we can try.

  1. Please install a different (and stable) version of your graphics driver. Does that help?

  2. Please try a different (and stable) kernel version. Does that help?

  3. When the system freezes: are you still able to switch to a console window? Ore are you able to log in from a remote machine using ssh? If you are, please execute the 2 statements below and post the results:
    Code:
    w
    free

  4. Do you see any unusual messages in dmesg or in one of the log files after your desktop freezes?

  5. Which desktop environment do you use?

  6. Is LibreOffice the only program that is affected? What happens if you start Firefox, Thunderbird or other GUI programs? Do they work as expected? Or do you see any problems or artifacts?

Mike
Back to top
View user's profile Send private message
MadNoah
n00b
n00b


Joined: 16 May 2018
Posts: 20

PostPosted: Sat Jan 12, 2019 11:36 pm    Post subject: Reply with quote

1: The problem seem to persists also with the 4.14.83-kernel (i will try some others to)
2: Im allready on stable linux-firmware-20181218 & xf86-video-amdgpu-18.1.0 (Libreoffice worked flawless before with these versions installed)
3: No, its not possible to switch to anoter window or tty
4: No
5: I use Sway as my desktop enviroment so X11 support is provided by Xwayland. Sorry I should have mentioned that earlier.
6: Yes, LibreOffice the only program affected. The other Applications work (also those who need X11).
Back to top
View user's profile Send private message
MadNoah
n00b
n00b


Joined: 16 May 2018
Posts: 20

PostPosted: Sat Jan 12, 2019 11:42 pm    Post subject: Reply with quote

As espected the javaldx messeges disapear when bulding Libreoffice with use="-java" but still the system freezes.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6965
Location: Saint Amant, Acadiana

PostPosted: Sat Jan 12, 2019 11:46 pm    Post subject: Reply with quote

If you create a test user and run LibreOffice, do you still experience same freeze?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
mike155
l33t
l33t


Joined: 17 Sep 2010
Posts: 995
Location: Frankfurt, Germany

PostPosted: Sun Jan 13, 2019 12:37 am    Post subject: Reply with quote

I just installed and launched Sway. LibreOffice runs perfectly fine - even after changing the measurement unit.

But I remember that I had system freezes last year when I tested Sway (I switched to Wayland and tested various desktop environments). I had to press the reset button to get out of those freezes. I think it was the only time I had freezes within the last 10+ years.

Could it be related to Sway? After all, it's still not marked as stable. Please try a different desktop environment. Weston for example - it's a Wayland compositor, it's small and it's easy to install. Does your machine also freeze if you start LibreOffice from a different desktop environment?
Back to top
View user's profile Send private message
MadNoah
n00b
n00b


Joined: 16 May 2018
Posts: 20

PostPosted: Sun Jan 13, 2019 10:53 am    Post subject: Reply with quote

have started libreoffice as a new user and got nice little segfaults:
Code:
(soffice:4929): CRITICAL **: 11:12:21.673: void g_lo_menu_insert_section(GLOMenu*, gint, const gchar*, GMenuModel*): assertion 'G_IS_LO_MENU (menu)' failed
(soffice:4929): CRITICAL **: 11:12:21.674: gtk_menu_bar_new_from_model: assertion 'G_IS_MENU_MODEL (model)' failed
(soffice:4929): Gtk-CRITICAL **: 11:12:21.674: gtk_widget_insert_action_group: assertion 'GTK_IS_WIDGET (widget)' failed
(soffice:4929): GLib-GObject-WARNING **: 11:12:21.674: invalid (NULL) pointer instance
(soffice:4929): GLib-GObject-CRITICAL **: 11:12:21.674: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
(soffice:4929): GLib-GObject-WARNING **: 11:12:21.674: invalid (NULL) pointer instance
(soffice:4929): GLib-GObject-CRITICAL **: 11:12:21.674: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13504

PostPosted: Sun Jan 13, 2019 4:58 pm    Post subject: Reply with quote

Where is the segmentation fault? The output you posted only shows diagnostics reporting that the Gtk libraries dislike how the caller is using them.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6965
Location: Saint Amant, Acadiana

PostPosted: Sun Jan 13, 2019 5:03 pm    Post subject: Reply with quote

I have to add these are not critical - I. E. they wont stop the application from working. Also I assume despite these warnings the application actually started and was usable. To conclude, now you know the problem is in your home directory. You mentioned you removed config files, what files exactly did you remove?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
MadNoah
n00b
n00b


Joined: 16 May 2018
Posts: 20

PostPosted: Tue Jan 15, 2019 5:31 pm    Post subject: Reply with quote

i removed ( renamed the folder *.bak)
~/.config/libreoffice
Back to top
View user's profile Send private message
MadNoah
n00b
n00b


Joined: 16 May 2018
Posts: 20

PostPosted: Tue Jan 15, 2019 8:57 pm    Post subject: Reply with quote

The problem also occurs with weson 3.0.0 and 5.0.0.
Back to top
View user's profile Send private message
MadNoah
n00b
n00b


Joined: 16 May 2018
Posts: 20

PostPosted: Wed Feb 06, 2019 8:11 am    Post subject: Reply with quote

I installed a stable gentoo system on the same machine yesterday, but the problem persists.
-allsaw i have (the same?) issue with Spotify [unrelatet, solved]


Last edited by MadNoah on Mon Feb 11, 2019 5:45 pm; edited 2 times in total
Back to top
View user's profile Send private message
piep
n00b
n00b


Joined: 10 Feb 2019
Posts: 3

PostPosted: Sun Feb 10, 2019 4:03 pm    Post subject: Reply with quote

Hey. I'm having the same issues with libreoffice.

app-office/libreoffice
Latest version available: 6.1.5.2
Latest version installed: 6.1.5.2
Size of files: 218,583 KiB
Homepage: https://www.libreoffice.org
Description: A full office productivity suite
License: || ( LGPL-3 MPL-1.1 )

on ~amd64, but I also had this issue few weeks ago on a stable system.

Standard emerging:
app-office/libreoffice-6.1.5.2::gentoo USE="bluetooth branding cups dbus gtk"

For me there is a crash without logfiles right after the splash screen.The pc freezes completely. Deleting cache and config files suggested in older workarounds didn't do it for me either.

I see you are using the same drivers as me:

VIDEO_CARDS="amdgpu radeonsi"

Which graphic card are you using, if i may ask?

lspci | grep VGA
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Vega 10 XL/XT [Radeon RX Vega 56/64] (rev c3)

by any chance?

edit: i've forgotten to mention that i'm using xfce4 as desktop environment + xfwm4
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5592

PostPosted: Sun Feb 10, 2019 6:31 pm    Post subject: Reply with quote

piep wrote:
I see you are using the same drivers as me:

VIDEO_CARDS="amdgpu radeonsi"

Which graphic card are you using, if i may ask?

lspci | grep VGA
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Vega 10 XL/XT [Radeon RX Vega 56/64] (rev c3)

Looks like the OP is also using a Vega:
Quote:
Code:
System uname: Linux-4.20.0-gentoo-x86_64-AMD_Ryzen_7_2700U_with_Radeon_Vega_Mobile_Gfx-with-gentoo-2.6
Back to top
View user's profile Send private message
MadNoah
n00b
n00b


Joined: 16 May 2018
Posts: 20

PostPosted: Mon Feb 11, 2019 5:42 pm    Post subject: Reply with quote

yes, im using a Vega Graphics Card.

@ piep: what DE are you using ?
Back to top
View user's profile Send private message
piep
n00b
n00b


Joined: 10 Feb 2019
Posts: 3

PostPosted: Thu Feb 14, 2019 3:58 pm    Post subject: Reply with quote

MadNoah wrote:
yes, im using a Vega Graphics Card.

@ piep: what DE are you using ?


sorry for the late answer. Kinda running low on time lately.

Xfce4 is my DE
Back to top
View user's profile Send private message
patrix_neo
Guru
Guru


Joined: 08 Jan 2004
Posts: 515
Location: The Maldives

PostPosted: Thu Feb 14, 2019 7:20 pm    Post subject: Reply with quote

I got rid of vlc and installed openoffice. Worked frickin great. Way better loadingtimes and kind of compatible too. Just a side of the counter offer. Binary package though. No challange.
Back to top
View user's profile Send private message
poe_1957
n00b
n00b


Joined: 26 Sep 2018
Posts: 4
Location: Mortsel

PostPosted: Fri Feb 15, 2019 10:04 pm    Post subject: Freezing of Libreoffice Reply with quote

I encountered same problem of freezing, and after long trying i found out that instead of using all threads of the CPU.

:idea: reducing the number of threads prevents the freezing of Libreoffice during the compile fase.

In my case i had make -j5 --> make -j3 solved the freezing problem.

Appearently Libreoffice blocks itself when using all threads.

Now i can compile without any problems.

Same issue with qtwebengine and qtwebkit.

mayby it is related to these 2 tools ?? Anyone who can investigate this ?
_________________
Linuxpioneer
Back to top
View user's profile Send private message
MadNoah
n00b
n00b


Joined: 16 May 2018
Posts: 20

PostPosted: Mon Feb 18, 2019 5:09 pm    Post subject: Reply with quote

I recompiled Libreoffice again using -j 1 but the Problem persists.
Back to top
View user's profile Send private message
MadNoah
n00b
n00b


Joined: 16 May 2018
Posts: 20

PostPosted: Sun Feb 24, 2019 10:51 am    Post subject: Reply with quote

openoffice-bin and libreoffice-bin freeze as well.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6825
Location: Austria

PostPosted: Sun Feb 24, 2019 10:56 am    Post subject: Re: Freezing of Libreoffice Reply with quote

poe_1957 wrote:
Same issue with qtwebengine and qtwebkit.

You are describing a build issue caused by too low resources/too high MAKEOPTS setup of your system, something entirely different from this thread.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
piep
n00b
n00b


Joined: 10 Feb 2019
Posts: 3

PostPosted: Sat Mar 30, 2019 6:17 pm    Post subject: Reply with quote

Hey MadNoah,
after a lot of trial and error i managed to make it run by using the gtk legacy flag. That's ofc no solution but rather a workaround.
Make sure you start libreoffice from the console with the option --nologo at least for the first time.
Hope it helps for the time being.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum