Bug 138948 - Collabora Office - crashes when exporting to PDF via PDF shortcut toolbar icon from Writer
Summary: Collabora Office - crashes when exporting to PDF via PDF shortcut toolbar ico...
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: ARM macOS (All)
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-15 16:29 UTC by Alex Thurgood
Modified: 2020-12-18 09:40 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot (201.57 KB, image/png)
2020-12-16 12:53 UTC, How can I remove my account?
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Thurgood 2020-12-15 16:29:03 UTC
Description:
Editing an ODT Writer document, saving, then exporting to PDF via the toolbar icon causes the app to crash systematically.

Steps to Reproduce:
1. Open a Writer document
2. Make some changes, save them.
3. Try and export the document to PDF via the toolbar icon.
4. Crash, recovery dialog launched.
5. Error message displayed : 
Collabora Office doit malheureusement être redémarré manuellement après l'installation ou la mise à jour.

Actual Results:
Crash and recovery dialog.

Expected Results:
Should not crash. A PDF document should be produced and saved at the designated save destination.


Reproducible: Always


User Profile Reset: No



Additional Info:
Using Collabora Office
Version : 6.4-17
Build ID : 6f0073b528f4b70b1f0c34714a289ca5cf9f61fc
Threads CPU : 8; OS : Mac OS X 10.16; UI Render : par défaut; VCL: osx; 
Locale : fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Calc: threaded
Comment 1 How can I remove my account? 2020-12-16 12:53:00 UTC
Could reproduce on an arm64 Mac, but not an x86_64 one, interestingly. No doubt caused by the stricter security features in macOS on arm64.

(As a workaround, mark Collabora Office to be run using Rosetta, see screenshot.)
Comment 2 How can I remove my account? 2020-12-16 12:53:39 UTC
Created attachment 168226 [details]
Screenshot
Comment 3 How can I remove my account? 2020-12-16 13:08:33 UTC
And can reproduce even using a non-sandboxed soffice process (on arm64), which makes it easier to debug.
Comment 4 How can I remove my account? 2020-12-16 14:37:47 UTC
Cherry-picking https://git.libreoffice.org/core/+/b23b0452dde6608b13d3fcb7feaff92bee019927 avoids the crash (but instead then makes the export to PDF fail, and to add insult to injury, it shows the unhelpful "Error. General Error. General input/output error" message.

It is the call to NSS_NoDB_Init(nullptr) that fails. Will investigate.
Comment 5 How can I remove my account? 2020-12-16 16:22:39 UTC
Problem goes away (and the PDF export works) after three cherry-picks to the cp-6.4 branch:

https://gerrit.libreoffice.org/c/core/+/107838
https://gerrit.libreoffice.org/c/core/+/107846
https://gerrit.libreoffice.org/c/core/+/107847
Comment 6 How can I remove my account? 2020-12-17 20:47:55 UTC
Collabora Office version 6.4-18 is now in the Mac App Store and fixes this problem.
Comment 7 Alex Thurgood 2020-12-18 09:40:02 UTC
Verified fixed with

Version : 6.4-18
Build ID : 6d238c063abc0fd0d9657b616533f61567d8aab7
Threads CPU : 8; OS : Mac OS X 10.16; UI Render : par défaut; VCL: osx; 
Locale : fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Calc: threaded