Libreoffice crashes using gtk2/gtk3

Bug #1813755 reported by Tomas Lundberg
This bug report is a duplicate of:  Bug #1798074: LIbreoffice crashes on startup. Edit Remove
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Fix Committed
High
Unassigned

Bug Description

1) lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04

2) apt-cache policy libreoffice
libreoffice:
  Installed: 1:6.0.3-0ubuntu1
  Candidate: 1:6.0.3-0ubuntu1
  Version table:
 *** 1:6.0.3-0ubuntu1 500
        500 http://ubuntu.mirror.su.se/ubuntu bionic/universe amd64 Packages
        100 /var/lib/dpkg/status

apt-show-versions -r libreoffice*
libreoffice:amd64/bionic 1:6.0.3-0ubuntu1 uptodate
libreoffice:i386 not installed
libreoffice-avmedia-backend-gstreamer:amd64/bionic 1:6.0.3-0ubuntu1 uptodate
libreoffice-avmedia-backend-gstreamer:i386 not installed
libreoffice-base:amd64/bionic 1:6.0.3-0ubuntu1 uptodate
libreoffice-base:i386 not installed
libreoffice-base-core:amd64/bionic 1:6.0.3-0ubuntu1 uptodate
libreoffice-base-core:i386 not installed
libreoffice-base-drivers:amd64/bionic 1:6.0.3-0ubuntu1 uptodate
libreoffice-base-drivers:i386 not installed
libreoffice-calc:amd64/bionic 1:6.0.3-0ubuntu1 uptodate
libreoffice-calc:i386 not installed
libreoffice-common:all/bionic 1:6.0.3-0ubuntu1 uptodate
libreoffice-core:amd64/bionic 1:6.0.3-0ubuntu1 uptodate
libreoffice-core:i386 not installed
libreoffice-draw:amd64/bionic 1:6.0.3-0ubuntu1 uptodate
libreoffice-draw:i386 not installed
libreoffice-gnome:amd64/bionic 1:6.0.3-0ubuntu1 uptodate
libreoffice-gnome:i386 not installed
libreoffice-gtk3:amd64/bionic 1:6.0.3-0ubuntu1 uptodate
libreoffice-gtk3:i386 not installed
libreoffice-impress:amd64/bionic 1:6.0.3-0ubuntu1 uptodate
libreoffice-impress:i386 not installed
libreoffice-librelogo:all/bionic 1:6.0.3-0ubuntu1 uptodate
libreoffice-math:amd64/bionic 1:6.0.3-0ubuntu1 uptodate
libreoffice-math:i386 not installed
libreoffice-ogltrans:amd64/bionic 1:6.0.3-0ubuntu1 uptodate
libreoffice-ogltrans:i386 not installed
libreoffice-report-builder-bin:amd64/bionic 1:6.0.3-0ubuntu1 uptodate
libreoffice-report-builder-bin:i386 not installed
libreoffice-script-provider-python:all/bionic 1:6.0.3-0ubuntu1 uptodate
libreoffice-sdbc-postgresql:amd64/bionic 1:6.0.3-0ubuntu1 uptodate
libreoffice-sdbc-postgresql:i386 not installed
libreoffice-style-galaxy:all/bionic 1:6.0.3-0ubuntu1 uptodate
libreoffice-style-tango:all/bionic 1:6.0.3-0ubuntu1 uptodate
libreoffice-writer:amd64/bionic 1:6.0.3-0ubuntu1 uptodate
libreoffice-writer:i386 not installed

3) What you expected to happen

Start any libreoffice (verified at least with writer, calc, and impress) from:
- Desktop menu: Office -> LibreOffice Writer/Calc/Impress
- Filetype association: .../anyfile.odf

The libreoffice splash screen is displayed. After the dialog indicates "100% complete", the dialog closes and the writer opens a blank document or the selected document.

4) What happened instead

The application crashes immediately after the initial splash screen, and shows the "Document Recovery" dialog: "Due to an unexpected error LibreOffice crashed...". Trying to start the application again shows the "Document Recovery" dialog again, with "LibreOffice will attempt to recover the state of the files" and showing "Untitled 1" in the list of documents to be recovered. There is no "Discard" button, and pressing "OK" results in an endless loop with recovery dialogs. The only way to get out is to kill the window in the titlebar.

This only happens with libreoffice-gnome + libreoffice-gtk3 or libreoffice-gtk + libreoffice-gtk2 installed. Removing those packages and starting e.g. writer again shows the document recovery dialog but now with a "Discard" button. Pressing that button discards the "Untitled 1" document and libreoffice starts normally.

I don't think it is related to Bug #1777518 since libreoffice-java-common is not installed. I've also disabled Java in Options -> Advanced -> Use a Java runtime environment.

WORKAROUND: Remove libreoffice-gnome + libreoffice-gtk3 or libreoffice-gtk + libreoffice-gtk2

Revision history for this message
Tomas Lundberg (tomas-lundberg) wrote :
Revision history for this message
Tomas Lundberg (tomas-lundberg) wrote :

Stacktrace for libreoffice v 6.0.3.

Revision history for this message
Tomas Lundberg (tomas-lundberg) wrote :

Stacktrace for libreoffice v 6.1.4 installed from ppa:libreoffice/ppa (and shows exactly the same behaviour). Here a segmentation fault occurs.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libreoffice (Ubuntu):
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Do you have libcpdb-libs-common1 and cpdb-backend-cups installed? If so does uninstalling those resolve the issue? (would then be the same as bug #1813506 / https://bugs.documentfoundation.org/show_bug.cgi?id=122116)

Revision history for this message
Tomas Lundberg (tomas-lundberg) wrote :

Yes, I had libcpdb-libs-common1, cpdb-backend-cups, and cpdb-backend-gcp installed. Uninstalling those packages does indeed solve the issue.

Changed in libreoffice (Ubuntu):
importance: Undecided → High
status: Confirmed → Fix Committed
Revision history for this message
Olivier Tilloy (osomon) wrote :

Thanks for the triaging Séb, and for the confirmation Tomas. Marking as a duplicate of bug #1813506.

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.