Bug 102023 - LibO crashes on .odt file if Writer is not installed in Debian
Summary: LibO crashes on .odt file if Writer is not installed in Debian
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
5.2.0.4 release
Hardware: All Linux (All)
: high critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-09 16:10 UTC by Matthias Lang
Modified: 2018-10-03 06:40 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Lang 2016-09-09 16:10:57 UTC
On a debian system where the 'libreoffice-writer' package has been removed but the rest of libreoffice remains, attempting to open a .odt file from the command line like this

   libreoffice my_valid_document.odt

causes libreoffice to say

   LibreOffice Document Recovery

   Due to an unexpected error, LibreOffice crashed. All the files you were working
   on will now be saved. The next time LibreOffice is launched, your files will be
   recovered automatically.

I expected libreoffice to (a) not crash and (b) say something along the lines
of "can't open that file because the 'writer' component isn't installed".

Originally filed as Debian bug 837156, the maintainer there asked me to report it upstream.
Comment 1 Rene Engelhard 2016-09-12 08:52:41 UTC
Note we in Debian move libsw from -core to -writer (as it's clearly something writer'ish), so it _might_ be that this doesn't happen when libsw is there in -coreXY (as for upstream). See [1]

Still this needs to be fixed ;)

[1] https://anonscm.debian.org/cgit/pkg-openoffice/libreoffice.git/tree/patches/make-package-modules-not-suck.diff
Comment 2 tommy27 2016-10-22 13:58:05 UTC
@Rene
can we take that as a confirmation of the bug report?
Comment 3 Buovjaga 2016-11-15 08:09:29 UTC
Yep -> NEW. Rene wasn't in CC, so could not reply.
Comment 4 QA Administrators 2018-10-02 02:54:19 UTC Comment hidden (obsolete)
Comment 5 Matthias Lang 2018-10-03 06:40:51 UTC
In today's Debian testing, the 'libreoffice-writer' package can't be removed without forcing dependencies, so the bug can't happen any more. I've marked the bug as 'resolved-worksforme' because creating this situation seems to have become harder since 2016 thanks to Debian fixing dependencies.

The versions I have are 

Debian libreoffice-writer 1:6.1.2-1
Libreoffice help: Version: 6.1.2.1 Build ID:1:6.1.2-1

If I forcibly remove Debian's libreoffice-writer package (i.e. --force dependencies), I get various different behaviours depending on how much of libreoffice I remove. In one case I get an unfriendly stack trace:

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(+0x3cfb3)[0x7ff5d9d40fb3]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3d1c3)[0x7ff5d9d411c3]

In another case I get a dialog offering to import from a list of about 100 formats which aren't in any obvious order (not alphabetical, for instance), presumably to view the document in one of the libreoffice components that is actually still installed.