LibreOffice exits with “Application Error” when invoked from command line

I am running LibreOffice on a Debian system - this is what “lsb_release -a” gives me:

Distributor ID:	Debian
Description:	Debian GNU/Linux 9.1 (stretch)
Release:	9.1
Codename:	stretch

LibreOffice version is 40m0(Build:2)

Since recently I realize that if I try to invoke LibreOffice from the command line, it quickly flashes the splash screen, then exits with “Application Error”:

user@librem:~$ libreoffice
Application Error

However, if I open LibreOffice from Gnome’s Application Menu or use the mouse to click on files, it works without problems.

Unfortunately, I couldn’t find out why this is happening, nor how to cure the problem when invoking LibreOffice on the command line. I also have no idea whether this is a problem of the LibreOffice installation or e.g. GNOME.

I searched the web, but could not find any solution to the problem.

Any help is appreciated.


My problem persists, but I can add additional information:

Essentially, /usr/lib/libreoffice/program/soffice.bin throws the Application error message when invoked from the commandline as “user”. If I invoke it with sudo libreoffice, it works!

Looking back in my logs, I realize that I had problems in opening libreoffice from the commandline already some months ago. I could fix it back then by adding the line
to the file /etc/

I have however no idea what this change implies, and whether it is still appropriate

Thanks for your comments. With adding your solution my commandline failure changed to "Error in `/usr/lib/libreoffice/program/soffice.bin’: malloc(): memory corruption: 0x00af0f40 *** ". Any other ideas? (using RPI3 but the same Application failure problem)