You are not logged in.

#1 2025-03-10 21:52:40

Strangiato
Member
Registered: 2020-01-10
Posts: 521

[Solved] Cannot open libreoffice due to crash

Hi

I use Arch with KDE Plasma DE, my system is fully updated, the problem occurs on both Wayland and X11, in two user accounts.
Libre Office does not open:

$ libreoffice --writer %U
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'

journal log when the coredump occurs:

mar 10 18:39:38 Arch-PC systemd[6959]: Started LibreOffice Writer - Word Processor.
mar 10 18:39:38 Arch-PC libreoffice[17772]: terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'
mar 10 18:39:38 Arch-PC systemd-coredump[17780]: Process 17772 (soffice.bin) of user 1003 terminated abnormally with signal 6/ABRT, processing...
mar 10 18:39:38 Arch-PC systemd[1]: Started Process Core Dump (PID 17780/UID 0).
mar 10 18:39:38 Arch-PC systemd[1]: Started Pass systemd-coredump journal entries to relevant user for potential DrKonqi handling.
mar 10 18:39:39 Arch-PC systemd-coredump[17781]: [?] Process 17772 (soffice.bin) of user 1003 dumped core.
                                                 
                                                 Stack trace of thread 17772:
                                                 #0  0x00007db8c00e6624 n/a (libc.so.6 + 0x97624)
                                                 #1  0x00007db8c008cba0 raise (libc.so.6 + 0x3dba0)
                                                 #2  0x00007db8c0074582 abort (libc.so.6 + 0x25582)
                                                 #3  0x00007db8bfc97b2c _ZN9__gnu_cxx27__verbose_terminate_handlerEv (libstdc++.so.6 + 0x97b2c)
                                                 #4  0x00007db8bfcae3ba _ZN10__cxxabiv111__terminateEPFvvE (libstdc++.so.6 + 0xae3ba)
                                                 #5  0x00007db8bfc9752a _ZSt9terminatev (libstdc++.so.6 + 0x9752a)
                                                 #6  0x00007db8bfc97547 __cxa_rethrow (libstdc++.so.6 + 0x97547)
                                                 #7  0x00007db8bfabad8f n/a (libcomphelper.so + 0x60d8f)
                                                 #8  0x00007db8bfb209c7 _ZN10comphelper6detail20ConfigurationWrapper3getERKN3com3sun4star3uno9ReferenceINS5_17XComponentContextEEE (libcomphelper.so + 0xc69c7)
                                                 #9  0x00007db8c02ca031 n/a (libsofficeapp.so + 0x3f031)
                                                 #10 0x00007db8bc7a8932 _Z7InitVCLv (libvcllo.so + 0x5a8932)
                                                 #11 0x00007db8bc7a8d96 _Z10ImplSVMainv (libvcllo.so + 0x5a8d96)
                                                 #12 0x00007db8c02e3c64 soffice_main (libsofficeapp.so + 0x58c64)
                                                 #13 0x00005566620c4039 n/a (n/a + 0x0)
                                                 #14 0x00007db8c0076488 n/a (libc.so.6 + 0x27488)
                                                 #15 0x00007db8c007654c __libc_start_main (libc.so.6 + 0x2754c)
                                                 #16 0x00005566620c4075 n/a (n/a + 0x0)
                                                 ELF object binary architecture: AMD x86-64
mar 10 18:39:39 Arch-PC systemd[1]: systemd-coredump@29-17780-0.service: Deactivated successfully.
mar 10 18:39:39 Arch-PC systemd[1]: systemd-coredump@29-17780-0.service: Consumed 283ms CPU time, 94.9M memory peak.
mar 10 18:39:39 Arch-PC systemd[6959]: app-libreoffice\x2dwriter@924182dc721f4ccaa886b67f2b79a3b1.service: Main process exited, code=exited, status=134/n/a
mar 10 18:39:39 Arch-PC systemd[6959]: app-libreoffice\x2dwriter@924182dc721f4ccaa886b67f2b79a3b1.service: Failed with result 'exit-code'.
mar 10 18:39:39 Arch-PC drkonqi-coredump-processor[17782]: "/usr/lib/libreoffice/program/soffice.bin" 17772 "/var/lib/systemd/coredump/core.soffice\\x2ebin.1003.ded3645424f24e9f971d8a2456462dd3.17772.1741642778000000.zst"

How to solve this?
Thanks for reading.

Last edited by Strangiato (2025-03-12 17:18:09)

Offline

#2 2025-03-11 11:29:56

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,846

Re: [Solved] Cannot open libreoffice due to crash

Similar messages from the past suggest this may have to do with a hard dependency that is incorrectly listed as optional by archlinux package .

Do you have gtk3 installed ?
If not, does installing gtk3 solve this ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2025-03-11 13:59:55

Strangiato
Member
Registered: 2020-01-10
Posts: 521

Re: [Solved] Cannot open libreoffice due to crash

gtk3 is already installed:

$ pacman -Qi gtk3
Name            : gtk3
Version         : 1:3.24.49-1
Description     : GObject-based multi-platform GUI toolkit
Architecture    : x86_64
URL             : https://www.gtk.org/
Licenses        : LGPL-2.1-or-later
Groups          : None
Provides        : gtk3-print-backends  libgailutil-3.so=0-64  libgdk-3.so=0-64  libgtk-3.so=0-64
Depends On      : adwaita-icon-theme  at-spi2-core  cairo  cantarell-fonts  dconf  desktop-file-utils
                  fontconfig  fribidi  gdk-pixbuf2  glib2  glibc  harfbuzz  iso-codes  libcloudproviders
                  libcolord  libcups  libegl  libepoxy  libgl  librsvg  libx11  libxcomposite  libxcursor
                  libxdamage  libxext  libxfixes  libxi  libxinerama  libxkbcommon  libxrandr  libxrender
                  pango  shared-mime-info  tinysparql  wayland  gtk-update-icon-cache
Optional Deps   : evince: Default print preview command [installed]
Required By     : appstream-glib  audacity  ayatana-ido  brasero  chromium  clutter  colord-gtk  deadbeef
                  deluge-gtk  devede  discord  drawing  eog  etcher-bin  evince  evolution-data-server
                  exaile  filezilla  firefox  flowblade  fontforge  gaupol  gcr  gdl  gedit  gnome-autoar
                  gnome-desktop  gnome-disk-utility  gnome-multi-writer  gnome-screenshot  gnome-terminal
                  granite  gspell  gst-plugin-gtk  gtk-sharp-3  gtk-vnc  gtkmm3  gtksourceview3
                  gtksourceview4  gtkspell3  inkscape  lib32-gtk3  libappindicator-gtk3
                  libayatana-appindicator  libayatana-indicator  libdazzle  libdbusmenu-gtk3
                  libgedit-amtk  libgedit-gtksourceview  libgedit-tepl  libgnome-games-support
                  libgnomekbd  libhandy  libindicator-gtk3  libkeybinder3  libnma  libpeas  libportal-gtk3
                  libxfce4ui  lightworks  lollypop  nixwriter  peek  pinta  pitivi  poedit  pragha
                  pulseeffects-legacy  quodlibet  rhythmbox  scim  screenkey-git  seahorse  smart-notifier
                  smooth  spice-gtk  stardict  thunderbird  tixati  totem  uget  usb-creator
                  vmware-workstation  vte3  waydroid  webkit2gtk  webkit2gtk-4.1  wxwidgets-gtk3
                  xdg-desktop-portal-gtk  xdg-user-dirs-gtk  xfburn
Optional For    : appmenu-gtk-module  avahi  ghostscript  gpsd  grilo  gwenhywfar  jdk-openjdk
                  jdk11-openjdk  kde-gtk-config  lazarus  libcanberra  libdecor  libreoffice-fresh  lshw
                  pinentry  qt5-base  qt6-base  suil  swt  ventoy-bin  vivaldi  vlc  zbar
Conflicts With  : gtk3-print-backends
Replaces        : gtk3-print-backends<=3.22.26-1
Installed Size  : 53,16 MiB
Packager        : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date      : qua 05 mar 2025 23:02:35
Install Date    : sex 07 mar 2025 22:12:04
Install Reason  : Installed as a dependency for another package
Install Script  : Yes
Validated By    : Signature

Offline

#4 2025-03-11 15:01:19

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,784

Re: [Solved] Cannot open libreoffice due to crash

Offline

#5 2025-03-11 15:18:47

Strangiato
Member
Registered: 2020-01-10
Posts: 521

Re: [Solved] Cannot open libreoffice due to crash

Same result:

$ SAL_USE_VCLPLUGIN=gtk4 libreoffice --writer %U
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'
$ SAL_USE_VCLPLUGIN=gtk3 libreoffice --writer %U
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'
$ SAL_USE_VCLPLUGIN=qt5 libreoffice --writer %U
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'
$ SAL_USE_VCLPLUGIN=qt6 libreoffice --writer %U
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'
$ SAL_USE_VCLPLUGIN=kf5 libreoffice --writer %U
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'
$ SAL_USE_VCLPLUGIN=kf6 libreoffice --writer %U
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'

Offline

#6 2025-03-11 15:39:22

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,641

Re: [Solved] Cannot open libreoffice due to crash

You said 2 user accounts, was one of those a fresh, clean account? If not, try that.

Side note, I really wish people would stop saying that a coredump is the problem. Coredumps are caused by the error, they are not the error, and are there for debugging.

Last edited by Scimmia (2025-03-11 15:43:30)

Offline

#7 2025-03-11 15:57:39

Strangiato
Member
Registered: 2020-01-10
Posts: 521

Re: [Solved] Cannot open libreoffice due to crash

Ok, I have just created another user account for test purposes; the problem also occurs when logged in with it.

Offline

#8 2025-03-11 16:21:52

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,641

Re: [Solved] Cannot open libreoffice due to crash

Do you have anything in /usr/lib/libreoffice/share/uno_packages/ other than an empty dir with another empty dir in it?

Let's also make sure we're running what we think we are, what does `type -a libreoffice` show?

Offline

#9 2025-03-11 16:27:45

Strangiato
Member
Registered: 2020-01-10
Posts: 521

Re: [Solved] Cannot open libreoffice due to crash

/usr/lib/libreoffice/share/uno_packages/ only contains "cache" dir, "cache" dir only contains empty "uno_packages" dir.

$ type -a libreoffice
libreoffice is /usr/bin/libreoffice

Offline

#10 2025-03-11 16:38:47

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,641

Re: [Solved] Cannot open libreoffice due to crash

No issue there. My last idea, what does `archlinux-java status` show?

Last edited by Scimmia (2025-03-11 16:42:12)

Offline

#11 2025-03-11 16:45:11

Strangiato
Member
Registered: 2020-01-10
Posts: 521

Re: [Solved] Cannot open libreoffice due to crash

$ archlinux-java status
Available Java environments:
  java-11-openjdk (default)
  java-23-openjdk

I have changed default java with:

$ sudo archlinux-java set java-23-openjdk
$ archlinux-java status
Available Java environments:
  java-11-openjdk
  java-23-openjdk (default)

However, the problem persists.

Offline

#12 2025-03-11 16:55:51

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,846

Re: [Solved] Cannot open libreoffice due to crash

I just realised every command you posted ends with %U .

That parameter is used to give a list of URIs to the command it follows.

What is the output of

$ libreoffice
$ libreoffice --writer

?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#13 2025-03-11 16:57:26

Strangiato
Member
Registered: 2020-01-10
Posts: 521

Re: [Solved] Cannot open libreoffice due to crash

$ libreoffice
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'
$ libreoffice --writer
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'

Offline

#14 2025-03-11 17:01:34

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,846

Re: [Solved] Cannot open libreoffice due to crash

Two more possibilities

1.

$ SAL_USE_VCLPLUGIN=gen libreoffice

2.
Temporarily remove libreoffice-fresh and install libreoffice-still .
Does it have the same issue ?

Last edited by Lone_Wolf (2025-03-11 17:03:06)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#15 2025-03-11 17:05:20

Strangiato
Member
Registered: 2020-01-10
Posts: 521

Re: [Solved] Cannot open libreoffice due to crash

$ SAL_USE_VCLPLUGIN=gen libreoffice
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'

Same problem with libreoffice-still.

Offline

#16 2025-03-12 08:15:36

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,784

Re: [Solved] Cannot open libreoffice due to crash

broadsword time…

SAL_USE_VCLPLUGIN=gen strace -tt -f -o /tmp/thisisgonnabeagigantic.strace libreoffice
du -h /tmp/thisisgonnabeagigantic.strace # check the size, maybe compress it - will likely be > 10:1
cat /tmp/thisisgonnabeagigantic.strace[.gz] | curl -F 'file=@-' 0x0.st

Offline

#17 2025-03-12 15:12:28

Strangiato
Member
Registered: 2020-01-10
Posts: 521

Re: [Solved] Cannot open libreoffice due to crash

Offline

#18 2025-03-12 15:39:30

tekstryder
Member
Registered: 2013-02-14
Posts: 505

Re: [Solved] Cannot open libreoffice due to crash

It's still trying to use JRE 11. Any reason you're keeping that around?

Regardless, try disabling the JRE altogether as a test.

Modify the enabled node thusly in: ~/.config/libreoffice/4/user/config/javasettings_Linux_X86_64.xml

<enabled xsi:nil="false">false</enabled>

EDIT: Removed safe-mode suggestion as that will re-enable the JRE option (default).

Last edited by tekstryder (2025-03-12 15:56:26)

Offline

#19 2025-03-12 15:54:42

Strangiato
Member
Registered: 2020-01-10
Posts: 521

Re: [Solved] Cannot open libreoffice due to crash

java11 is optionally required for some packages:

$ sudo pacman -Rcns jdk11-openjdk
checking dependencies...
:: brltty optionally requires java-runtime: Java support
:: libbluray optionally requires java-runtime: BD-J library
:: libjxl optionally requires java-runtime: for JNI bindings
:: libreoffice-fresh optionally requires java-runtime: adds java support
:: opencv optionally requires java-runtime: Java interface
:: subversion optionally requires java-environment: for Java support
:: texlive-latexextra optionally requires java-runtime: for pdfannotextractor
:: ums optionally requires java-runtime: Java runtime environment

Even after uninstalling java11, safe mode does not work too:

$ libreoffice --safe-mode
/home/stalker/.config/libreoffice/4/user/config/javasettings_Linux_X86_64.xml:2: namespace error : Namespace prefix xsi for nil on enabled is not defined
<enabled xsi:nil="false">false<enabled nil="true"></enabled>
                        ^
/home/stalker/.config/libreoffice/4/user/config/javasettings_Linux_X86_64.xml:2: namespace error : Namespace prefix xsi for nil on enabled is not defined
<enabled xsi:nil="false">false<enabled nil="true"></enabled>
                        ^
javaldx failed!
Warning: failed to read path from javaldx
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'

Last edited by Strangiato (2025-03-12 15:56:31)

Offline

#20 2025-03-12 15:56:55

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,784

Re: [Solved] Cannot open libreoffice due to crash

See tekstryder's edit and try to force a different java version:
https://wiki.archlinux.org/title/Java#L … va_version

Offline

#21 2025-03-12 15:57:43

tekstryder
Member
Registered: 2013-02-14
Posts: 505

Re: [Solved] Cannot open libreoffice due to crash

I was editing as you posted.

Did you disable the JRE per my suggestion, and then run without safe-mode?

Offline

#22 2025-03-12 16:11:35

Strangiato
Member
Registered: 2020-01-10
Posts: 521

Re: [Solved] Cannot open libreoffice due to crash

tekstryder wrote:

I was editing as you posted.

Did you disable the JRE per my suggestion, and then run without safe-mode?

Yes.

$ libreoffice
/home/stalker/.config/libreoffice/4/user/config/javasettings_Linux_X86_64.xml:2: namespace error : Namespace prefix xsi for nil on enabled is not defined
<enabled xsi:nil="false">false<enabled nil="true"></enabled>
                        ^
/home/stalker/.config/libreoffice/4/user/config/javasettings_Linux_X86_64.xml:2: namespace error : Namespace prefix xsi for nil on enabled is not defined
<enabled xsi:nil="false">false<enabled nil="true"></enabled>
                        ^
javaldx failed!
Warning: failed to read path from javaldx
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'
seth wrote:

See tekstryder's edit and try to force a different java version:
https://wiki.archlinux.org/title/Java#L … va_version

I have created this file:

$ cat /etc/systemd/system/unit.d/override.conf
[Service]
Environment=JAVA_HOME=/usr/lib/jvm/java-23-openjdk

Result:

$ libreoffice
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'

Offline

#23 2025-03-12 16:14:34

tekstryder
Member
Registered: 2013-02-14
Posts: 505

Re: [Solved] Cannot open libreoffice due to crash

Yeah, you've got a typo:

<enabled xsi:nil="false">false<enabled nil="true"></enabled>

Edit the line in the file I referenced to be exactly what I posted.

<enabled xsi:nil="false">false</enabled>

Last edited by tekstryder (2025-03-12 16:15:46)

Offline

#24 2025-03-12 16:15:37

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,784

Re: [Solved] Cannot open libreoffice due to crash

Also just creating that file doesn't do anything

export JAVA_HOME=/usr/lib/jvm/java-23-openjdk
libreoffice

Offline

#25 2025-03-12 16:22:51

Strangiato
Member
Registered: 2020-01-10
Posts: 521

Re: [Solved] Cannot open libreoffice due to crash

@tekstryder

$ libreoffice
/home/stalker/.config/libreoffice/4/user/config/javasettings_Linux_X86_64.xml:1: namespace error : Namespace prefix xsi for nil on enabled is not defined
<enabled xsi:nil="false">false</enabled>
                        ^
/home/stalker/.config/libreoffice/4/user/config/javasettings_Linux_X86_64.xml:2: namespace error : Namespace prefix xsi for nil on enabled is not defined
<enabled xsi:nil="false">false<enabled nil="true"></enabled>
                        ^
javaldx failed!
Warning: failed to read path from javaldx
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'

after the command above, the file ~/.config/libreoffice/4/user/config/javasettings_Linux_X86_64.xml is modified and becomes this:

<?xml version="1.0" encoding="UTF-8"?>
<enabled xsi:nil="false">false<enabled nil="true"></enabled>
<userClassPath nil="true"></userClassPath>
<vmParameters nil="true"></vmParameters>
<jreLocations nil="true"></jreLocations>
<javaInfo nil="true"></javaInfo>
</enabled>

@seth

$ export JAVA_HOME=/usr/lib/jvm/java-23-openjdk
$ libreoffice
/home/stalker/.config/libreoffice/4/user/config/javasettings_Linux_X86_64.xml:2: namespace error : Namespace prefix xsi for nil on enabled is not defined
<enabled xsi:nil="false">false<enabled nil="true"></enabled>
                        ^
/home/stalker/.config/libreoffice/4/user/config/javasettings_Linux_X86_64.xml:2: namespace error : Namespace prefix xsi for nil on enabled is not defined
<enabled xsi:nil="false">false<enabled nil="true"></enabled>
                        ^
javaldx failed!
Warning: failed to read path from javaldx
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'

Offline

Board footer

Powered by FluxBB