Libreoffice 6 does not start on Kubuntu 18.04 (clean install)

Bug #1768756 reported by Tomáš Myšík
This bug report is a duplicate of:  Bug #1798074: LIbreoffice crashes on startup. Edit Remove
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I just did a clean install of Kubuntu 18.04 (the minimal one) and manually installed Libreoffice [1]. Now, when I try to start it, I get this:

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

Fatal exception: Signal 6
Stack:
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x13568)[0x7f8545b22568]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3c316)[0x7f8545b4b316]
/lib/x86_64-linux-gnu/libc.so.6(+0x3ef20)[0x7f854575cf20]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f854575ce97]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f854575e801]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8c8fb)[0x7f853d5228fb]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x92d3a)[0x7f853d528d3a]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x92d95)[0x7f853d528d95]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(__cxa_rethrow+0x4d)[0x7f853d52903d]
/usr/lib/libreoffice/program/libmergedlo.so(+0x10ab728)[0x7f8546e14728]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN10comphelper6detail20ConfigurationWrapper3getERKN3com3sun4star3uno9ReferenceINS5_17XComponentContextEEE+0x47)[0x7f8546e147f7]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN12OpenGLHelper18isVCLOpenGLEnabledEv+0x2e5)[0x7f8548b408c5]
/usr/lib/libreoffice/program/libvclplug_genlo.so(_ZN10SalDisplay10BestVisualEP9_XDisplayiR11XVisualInfo+0xfd)[0x7f852dbdbc2d]
/usr/lib/libreoffice/program/libvclplug_genlo.so(_ZNK10SalDisplay10initScreenE12SalX11Screen+0x8b)[0x7f852dbe113b]
/usr/lib/libreoffice/program/libvclplug_genlo.so(_ZN7vcl_sal9WMAdaptorC1EP10SalDisplay+0x21d)[0x7f852dbe6e4d]
/usr/lib/libreoffice/program/libvclplug_genlo.so(+0x4024b)[0x7f852dbe724b]
/usr/lib/libreoffice/program/libvclplug_genlo.so(_ZN7vcl_sal9WMAdaptor15createWMAdaptorEP10SalDisplay+0x21)[0x7f852dbe8171]
/usr/lib/libreoffice/program/libvclplug_genlo.so(_ZN10SalDisplay4InitEv+0x467)[0x7f852dbe2997]
/usr/lib/libreoffice/program/libvclplug_genlo.so(_ZN13SalX11DisplayC1EP9_XDisplay+0x24)[0x7f852dbe2b44]
/usr/lib/libreoffice/program/libvclplug_kde4lo.so(+0x1963e)[0x7f85302d263e]
/usr/lib/libreoffice/program/libvclplug_kde4lo.so(+0x1e636)[0x7f85302d7636]
/usr/lib/libreoffice/program/libvclplug_genlo.so(_ZN14X11SalInstance12AfterAppInitEv+0x12)[0x7f852dbe3282]
/usr/lib/libreoffice/program/libmergedlo.so(_Z7InitVCLv+0x382)[0x7f8548a53742]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2cebd3d)[0x7f8548a54d3d]
/usr/lib/libreoffice/program/libmergedlo.so(_Z6SVMainv+0x30)[0x7f8548a54da0]
/usr/lib/libreoffice/program/libmergedlo.so(soffice_main+0x115)[0x7f8547a9a215]
/usr/lib/libreoffice/program/soffice.bin(+0x78b)[0x560c5d84978b]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7f854573fb97]
/usr/lib/libreoffice/program/soffice.bin(+0x7ca)[0x560c5d8497ca]

No matter what I try (e.g. [2]), the result is always the same.

I also tried to remove my config dir [3] but no luck.

Any idea what could be wrong? Thanks.

Description: Ubuntu 18.04 LTS
Release: 18.04

libreoffice version: 6.0.3-0ubuntu1

[1] apt install libreoffice
[2] libreoffice --help
[3] ~/.config/libreoffice/

Revision history for this message
Olivier Tilloy (osomon) wrote :

I just installed kubuntu 18.04 (minimal install) in a 64bits VM, then installed libreoffice, and all programs in the suite start and work as expected.

The backtrace suggests that the issue has to do with OpenGL initialization. Can you try the instructions at https://wiki.documentfoundation.org/OpenGL#Crash_on_program_start to disable hardware acceleration in libreoffice, and report whether this makes the crash go away?

Changed in libreoffice (Ubuntu):
status: New → Incomplete
Revision history for this message
Tomáš Myšík (gapon) wrote :

Unfortunately, it did not help. Starting in safe mode gives me the same error. Adding OpenGL values to the configuration file (they were not present there) did not help either :/

What comes to my mind - I have nVidia graphic card but using the OS driver, not the closed-sourced one. Could this be the cause? Or, maybe I am missing some "library" (vdpau or vaapi or whatever...)?

Thanks a lot!

Revision history for this message
Tomáš Myšík (gapon) wrote :

$ glxinfo | grep OpenGL
OpenGL vendor string: nouveau
OpenGL renderer string: NV117
OpenGL core profile version string: 4.3 (Core Profile) Mesa 18.0.0-rc5
OpenGL core profile shading language version string: 4.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 18.0.0-rc5
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 18.0.0-rc5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:

Revision history for this message
Olivier Tilloy (osomon) wrote :

Thanks for the info Tomáš. Is temporarily switching to the proprietary driver an option, to test whether this is indeed a problem with nouveau?

Revision history for this message
Tomáš Myšík (gapon) wrote :
Download full text (4.5 KiB)

Switching to the nVidia proprietary driver does not help. The stacktrace is:

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

Fatal exception: Signal 6
Stack:
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x13568)[0x7f9cb32e2568]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3c316)[0x7f9cb330b316]
/lib/x86_64-linux-gnu/libc.so.6(+0x3ef20)[0x7f9cb2f1cf20]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f9cb2f1ce97]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f9cb2f1e801]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8c8fb)[0x7f9caace28fb]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x92d3a)[0x7f9caace8d3a]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x92d95)[0x7f9caace8d95]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(__cxa_rethrow+0x4d)[0x7f9caace903d]
/usr/lib/libreoffice/program/libmergedlo.so(+0x10ab728)[0x7f9cb45d4728]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN10comphelper6detail20ConfigurationWrapper3getERKN3com3sun4star3uno9ReferenceINS5_17XComponentContextEEE+0x47)[0x7f9cb45d47f7]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN12OpenGLHelper18isVCLOpenGLEnabledEv+0x2e5)[0x7f9cb63008c5]
/usr/lib/libreoffice/program/libvclplug_genlo.so(_ZN10SalDisplay10BestVisualEP9_XDisplayiR11XVisualInfo+0xfd)[0x7f9c9b39bc2d]
/usr/lib/libreoffice/program/libvclplug_genlo.so(_ZNK10SalDisplay10initScreenE12SalX11Screen+0x8b)[0x7f9c9b3a113b]
/usr/lib/libreoffice/program/libvclplug_genlo.so(_ZN7vcl_sal9WMAdaptorC1EP10SalDisplay+0x21d)[0x7f9c9b3a6e4d]
/usr/lib/libreoffice/program/libvclplug_genlo.so(+0x4024b)[0x7f9c9b3a724b]
/usr/lib/libreoffice/program/libvclplug_genlo.so(_ZN7vcl_sal9WMAdaptor15createWMAdaptorEP10SalDisplay+0x21)[0x7f9c9b3a8171]
/usr/lib/libreoffice/program/libvclplug_genlo.so(_ZN10SalDisplay4InitEv+0x467)[0x7f9c9b3a2997]
/usr/lib/libreoffice/program/libvclplug_genlo.so(_ZN13SalX11DisplayC1EP9_XDisplay+0x24)[0x7f9c9b3a2b44]
/usr/lib/libreoffice/program/libvclplug_kde4lo.so(+0x1963e)[0x7f9c9da9263e]
/usr/lib/libreoffice/program/libvclplug_kde4lo.so(+0x1e636)[0x7f9c9da97636]
/usr/lib/libreoffice/program/libvclplug_genlo.so(_ZN14X11SalInstance12AfterAppInitEv+0x12)[0x7f9c9b3a3282]
/usr/lib/libreoffice/program/libmergedlo.so(_Z7InitVCLv+0x382)[0...

Read more...

Revision history for this message
refaston (refaston) wrote :

I fix it by reinstalling LibreOffice.
I think this is problem with new instalation (minimal mode). In this mode installer do full install and next remove (in incorrect way?) unwanted packages.

Step 1. Remove all packages with libreoffice* name
Step 2. Do apt autoremove commend
Step 3. Install apt install libreoffice

Changed in libreoffice (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Tomáš Myšík (gapon) wrote :

I can confirm that the steps provided in the previous comment work. Thanks a lot for them! I really do not understand why but OK, never mind :)

Revision history for this message
Olivier Tilloy (osomon) wrote :

Indeed, when doing a minimal install a normal install is performed and then a selected list of packages is removed (casper/filesystem.manifest-minimal-remove on the iso).

How did you initially install libreoffice after doing the minimal install? Was it with a graphical package manager, or with apt in a terminal?

Revision history for this message
Tomáš Myšík (gapon) wrote :

In my case, it was quite soon after installation. I am using console, apt.

Revision history for this message
Olivier Tilloy (osomon) wrote :

So, just to confirm (and try to reproduce the issue here): "sudo apt install libreoffice" ?

Revision history for this message
Tomáš Myšík (gapon) wrote :

Yes. In my case, together with "libreoffice-l10n-cs" package.

Revision history for this message
Olivier Tilloy (osomon) wrote :

I still can't reproduce the issue here.

Tomáš, is libreoffice still crashing for you with the latest updates?

Revision history for this message
Tomáš Myšík (gapon) wrote :

No, it is not but I had to use the workaround mentioned here (purge and install again).

Revision history for this message
ockels (ockels) wrote :

Same issue here after minimal ubuntu install (running unity desktop)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.