Can't run Libreoffice at all - Crash at the beginning

I’ve tried reinstalling java, I’ve reinstalled Libreoffice - nothing works.

I’m running Fedora 28, but the problems were already persistent running 27.

# uname -r
4.20.17-100.fc28.x86_64

Verbose looks like this:

# libreoffice -v
javaldx: Could not find a Java Runtime Environment!
Warning: failed to read path from javaldx
/usr/lib64/libreoffice/program/soffice.bin: error while loading shared libraries: /lib64/liborcus-0.13.so.0: file too short

I’ve installed liborcus-0.13.so.0, liborcus-0.13.4, java-openjdk, java-1.8.0-openjdk…
I don’t know what to do next.

Can you help me?

Greetings!

LibreOffice.odt

Hello

could be a an incorrect link of /lib64/liborcus-0.13.so.0 pointing to nowhere. Should look like:

user@system ~]$ ls -l /lib64/liborcus-*
lrwxrwxrwx. 1 root root      22 14. Jul 2018  /lib64/liborcus-0.13.so.0 -> liborcus-0.13.so.0.0.0
rwxr-xr-x. 1 root root 1231920 14. Jul 2018  /lib64/liborcus-0.13.so.0.0.0
lrwxrwxrwx. 1 root root      26 14. Jul 2018  /lib64/liborcus-mso-0.13.so.0 -> liborcus-mso-0.13.so.0.0.0
-rwxr-xr-x. 1 root root   53736 14. Jul 2018  /lib64/liborcus-mso-0.13.so.0.0.0
lrwxrwxrwx. 1 root root      29 14. Jul 2018  /lib64/liborcus-parser-0.13.so.0 -> liborcus-parser-0.13.so.0.0.0
-rwxr-xr-x. 1 root root  270568 14. Jul 2018  /lib64/liborcus-parser-0.13.so.0.0.0

The Java message is not important, can be fixed after your LibreOffice instance is running.

Nice, one step further, I reinstalled liborcus and then I needed to reinstall libeot

dnf reinstall liborcus libeot

But I still get the javaldx error.

libreoffice -v 
javaldx: Could not find a Java Runtime Environment!
Warning: failed to read path from javaldx
LibreOffice 6.0.7.3.0 00(Build:3)

I’ve reinstalled all Java and all libreoffice applications

dnf reinstall *java*
dnf reinstall *libreoffice*
dnf reinstall *openjdk*

But I still get the same error

But the Java message didn’t prevent Libreoffiice from starting" (as said in my answer, this can be fixed later)? To do so - go to Tools -> Options -> LibreOffice -> Advanced and configure your preferred JRE (I’m pretty sure you have more than one to select),

Well the problem is: it does prevent libreoffice from opening. I can’t access the tools

No - the Warning (!!!) javaldx: Could not find a Java Runtime Environment! cannot be the problem for LibreOffice not starting. There must be another issue. I saw that very, very often and it never prevented LO to start.

Well, ok! So what do I do next?

Hello - Have you ever tried to reset your user profile ( by deleteting ~/.config/libreoffice/4/ after having created a backup of the directory) ?

I have just tested on my Fedora (which is 29) system installing LibreOffice using dnf install libreoffice and this installs LibreOffice

Version: 6.1.5.2
Build ID: 6.1.5.2-4.fc29
CPU threads: 4; OS: Linux 4.20; UI render: default; VCL: gtk3; 
Locale: de-DE (de_DE.UTF-8); Calc: group threaded

ans it runs without any problems

I’ve deleted the config and reinstalled libreoffice. Still doesn’t work…

This sounds really strange and makes me ask as some strange sounding questions.

  1. How do you access your Linux / Fedora system?
  2. What does rpm -qa | grep -i libreoffice tell
  3. Which desktop are you using (KDE, GNOME, LXDE … to name a few)
  4. What does libreoffice --version tell
  5. Finally you may try a strace libreoffice 2>&1 | tee -a /tmp/LibreOffice.strace and upload the file /tmp/LibreOffice.strace to your question. This step may require a dnf install strace in advance and to change the file /tmp/LibreOffice.strace to a fake extension /tmp/LibreOffice.odt, since this site does only allow certain extensions for files to be uploaded.

Ah - added the information in another comment - and uploaded the file

Hello - I don’t understand why you have installed all langpacks and helppack for allmost all languages. In general a single user uses one langpacks and one helppack. From your strace output is see an error in your fonts configuration:

read(4, Fontconfig error: "/etc/fonts/conf.d/30-0-google-crosextra-caladea-fontconfig.conf", line 1: no element found
Fontconfig error: "/etc/fonts/conf.d/30-0-google-crosextra-carlito-fontconfig.conf", line 1: no element found
Fontconfig error: "/etc/fonts/conf.d/62-google-crosextra-caladea-fontconfig.conf", line 1: no element found
Fontconfig error: "/etc/fonts/conf.d/62-google-crosextra-carlito-fontconfig.conf", line 1: no element found

But this might not be the problem - Investigating strace output further.

Found that you have installed package libreoffice-voikko-4.1-9.fc28.x86_64 and that it may be cause of crash. Suggest to delete this packqage and test again. Furthermore I’d suggest that you try the native packages from libreoffice,.org instead those provided by your distribution.

Finally - you mentioned you log normally into the system. But what may be normally for you may be strange for others. So please describe a bit more. Do you log in into KDE Desktop with your user id after the system start up an presents the login manager (GDM, XDM or whatever is configured) ?

I’ve Fedora KDE installed - I lof normally into the system…

$ rpm -qa | grep -i libreoffice
libreoffice-help-hi-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-de-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-ta-6.0.7.3-1.fc28.x86_64
libreoffice-glade-6.0.7.3-1.fc28.x86_64
libreofficekit-devel-6.0.7.3-1.fc28.x86_64
libreoffice-help-gl-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-ca-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-sk-6.0.7.3-1.fc28.x86_64
libreoffice-bsh-6.0.7.3-1.fc28.x86_64
libreoffice-sdk-6.0.7.3-1.fc28.x86_64
libreoffice-help-ko-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-eu-6.0.7.3-1.fc28.x86_64
libreoffice-voikko-4.1-9.fc28.x86_64
libreoffice-langpack-fa-6.0.7.3-1.fc28.x86_64
libreoffice-ure-6.0.7.3-1.fc28.x86_64
libreoffice-help-id-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-en-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-zh-Hans-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-as-6.0.7.3-1.fc28.x86_64
libreoffice-help-de-6.0.7.3-1.fc28.x86_64
libreoffice-help-sv-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-nb-6.0.7.3-1.fc28.x86_64
libreoffice-xsltfilter-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-te-6.0.7.3-1.fc28.x86_64
libreoffice-help-ca-6.0.7.3-1.fc28.x86_64
libreoffice-help-si-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-ko-6.0.7.3-1.fc28.x86_64
libreoffice-base-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-sr-6.0.7.3-1.fc28.x86_64
libreoffice-opensymbol-fonts-6.0.7.3-1.fc28.noarch
libreoffice-help-eu-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-ar-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-ro-6.0.7.3-1.fc28.x86_64
libreoffice-nlpsolver-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-zu-6.0.7.3-1.fc28.x86_64
libreoffice-help-en-6.0.7.3-1.fc28.x86_64
libreoffice-help-uk-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-pl-6.0.7.3-1.fc28.x86_64
libreoffice-postgresql-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-ts-6.0.7.3-1.fc28.x86_64
libreoffice-help-lv-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-gl-6.0.7.3-1.fc28.x86_64
libreoffice-x11-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-kk-6.0.7.3-1.fc28.x86_64
libreoffice-gtk3-6.0.7.3-1.fc28.x86_64
libreoffice-help-ja-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-et-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-fi-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-cy-6.0.7.3-1.fc28.x86_64
libreoffice-help-gu-6.0.7.3-1.fc28.x86_64
libreoffice-help-pt-PT-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-cs-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-id-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-sl-6.0.7.3-1.fc28.x86_64
libreoffice-pdfimport-6.0.7.3-1.fc28.x86_64
libreoffice-gallery-vrt-network-equipment-1.2.0-9.fc28.x86_64
libreoffice-langpack-nso-6.0.7.3-1.fc28.x86_64
libreoffice-writer2latex-1.0.2-23.fc28.x86_64
libreoffice-help-fi-6.0.7.3-1.fc28.x86_64
libreoffice-help-nn-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-bg-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-hi-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-ru-6.0.7.3-1.fc28.x86_64
libreoffice-writer-6.0.7.3-1.fc28.x86_64
libreoffice-librelogo-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-ml-6.0.7.3-1.fc28.x86_64
libreoffice-officebean-6.0.7.3-1.fc28.x86_64
libreoffice-help-fr-6.0.7.3-1.fc28.x86_64
libreoffice-help-pl-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-bn-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-hr-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-si-6.0.7.3-1.fc28.x86_64
libreoffice-calc-6.0.7.3-1.fc28.x86_64
libreoffice-wiki-publisher-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-mr-6.0.7.3-1.fc28.x86_64
libreoffice-rhino-6.0.7.3-1.fc28.x86_64
libreoffice-help-et-6.0.7.3-1.fc28.x86_64
libreoffice-help-nb-6.0.7.3-1.fc28.x86_64
libreoffice-help-zh-Hant-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-gu-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-pt-PT-6.0.7.3-1.fc28.x86_64
libreoffice-core-6.0.7.3-1.fc28.x86_64
libreoffice-TexMaths-0.42-5.fc28.x86_64
libreoffice-langpack-kn-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-xh-6.0.7.3-1.fc28.x86_64
libreoffice-help-cs-6.0.7.3-1.fc28.x86_64
libreoffice-help-hu-6.0.7.3-1.fc28.x86_64
libreoffice-help-sk-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-el-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-lt-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-uk-6.0.7.3-1.fc28.x86_64
libreoffice-math-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-af-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-ss-6.0.7.3-1.fc28.x86_64
libreoffice-icon-theme-papirus-20170228-1.fc28.noarch
libreoffice-data-6.0.7.3-1.fc28.noarch
libreoffice-help-he-6.0.7.3-1.fc28.x86_64
libreoffice-help-ro-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-da-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-it-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-sv-6.0.7.3-1.fc28.x86_64
libreoffice-draw-6.0.7.3-1.fc28.x86_64
libreoffice-gdb-debug-support-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-or-6.0.7.3-1.fc28.x86_64
libreoffice-writer2xhtml-1.0.2-23.fc28.x86_64
libreoffice-ure-common-6.0.7.3-1.fc28.noarch
libreoffice-help-ru-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-ja-6.0.7.3-1.fc28.x86_64
libreoffice-impress-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-pa-6.0.7.3-1.fc28.x86_64
libreoffice-help-pt-BR-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-hu-6.0.7.3-1.fc28.x86_64
libreoffice-graphicfilter-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-nr-6.0.7.3-1.fc28.x86_64
libreoffice-officebean-common-6.0.7.3-1.fc28.noarch
libreoffice-help-el-6.0.7.3-1.fc28.x86_64
libreoffice-help-tr-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-nn-6.0.7.3-1.fc28.x86_64
libreoffice-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-tn-6.0.7.3-1.fc28.x86_64
libreoffice-help-da-6.0.7.3-1.fc28.x86_64
libreoffice-help-sl-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-lv-6.0.7.3-1.fc28.x86_64
libreoffice-emailmerge-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-st-6.0.7.3-1.fc28.x86_64
libreoffice-help-ar-6.0.7.3-1.fc28.x86_64
libreoffice-help-it-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-es-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-zh-Hant-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-br-6.0.7.3-1.fc28.x86_64
libreofficekit-6.0.7.3-1.fc28.x86_64
libreoffice-help-hr-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-dz-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-tr-6.0.7.3-1.fc28.x86_64
libreoffice-kde4-6.0.7.3-1.fc28.x86_64
libreoffice-sdk-doc-6.0.7.3-1.fc28.x86_64
libreoffice-help-nl-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-he-6.0.7.3-1.fc28.x86_64
libreoffice-pyuno-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-mai-6.0.7.3-1.fc28.x86_64
libreoffice-help-bg-6.0.7.3-1.fc28.x86_64
libreoffice-help-lt-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-fr-6.0.7.3-1.fc28.x86_64
libreoffice-gtk2-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-ga-6.0.7.3-1.fc28.x86_64
libreoffice-help-es-6.0.7.3-1.fc28.x86_64
libreoffice-help-zh-Hans-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-pt-BR-6.0.7.3-1.fc28.x86_64
libreoffice-ogltrans-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-ve-6.0.7.3-1.fc28.x86_64
libreoffice-help-dz-6.0.7.3-1.fc28.x86_64
libreoffice-help-ta-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-nl-6.0.7.3-1.fc28.x86_64
libreoffice-filters-6.0.7.3-1.fc28.x86_64
libreoffice-langpack-th-6.0.7.3-1.fc28.x86_64
libreoffice-help-bn-6.0.7.3-1.fc28.x86_64

then

$ libreoffice --version
LibreOffice 6.0.7.3.0 00(Build:3)

Will upload the file…

The problem may be related to your openjdk installation, but uninstalling and reinstalling alone might not be a sufficient fix. It may be necessary to redownload openjdk before reinstalling, as suggested by this thread where someone solved an AOO problem with a similar error by redownloading the jre… [Solved] javaldx: Cannot find a Java Runtime Environment (View topic) • Apache OpenOffice Community Forum

When dnf performs a remove followed by an install or performs a reinstall, it just installs the package stored in its cache. If the cached package is flaky and causing problems, reinstalling won’t solve the problems.

The easiest way to get dnf to redownload is to just clear the whole cache by running dnf clean all, as noted at 25 Useful DNF Command Examples For Package Management In Linux.

Then, after clearing the cache, running dnf to install openjdk should initiate the download process before performing the installation.