Bug 151083 - Systematic crash when accepting restart after extension installation (macOS AppStore)
Summary: Systematic crash when accepting restart after extension installation (macOS A...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.3.6.2 release
Hardware: ARM macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Mac-AppStore, MacOS-Vanilla
  Show dependency treegraph
 
Reported: 2022-09-20 12:47 UTC by Alex Thurgood
Modified: 2023-03-31 19:37 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Apple trace produced when LibreOffice crashes (27.20 KB, text/plain)
2022-09-20 12:48 UTC, Alex Thurgood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Thurgood 2022-09-20 12:47:53 UTC
Description:
1) Start LibreOffice (obtained from macOS app store)
2) Install an extension, e.g. by drag and drop, or via the menu Extension Manager, which requires a restart of LibreOffice.
3) Accept the invitation to restart.
4) Crash, with option to send report to Apple.

An example of an extension that requires a restart:
odbinfo.oxt
basereportextension.oxt



Steps to Reproduce:
See above

Actual Results:
Crashes on requested restart of the application

Expected Results:
Should not crash. Application should restart normally.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 7.3.6.2 / LibreOffice Community
Build ID: c28ca90fd6e1a19e189fc16c05f8f8924961e12e
CPU threads: 8; OS: Mac OS X 12.6; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded
Comment 1 Alex Thurgood 2022-09-20 12:48:39 UTC
Created attachment 182572 [details]
Apple trace produced when LibreOffice crashes
Comment 2 Michael Warner 2022-09-21 02:12:04 UTC
I didn't have a problem when rebooting after install of DirectColourManager-L-1.2.7. 

I tried installing the two extensions called out in Comment 0. They both require having a JDK installed, which I do not have installed. In my case, I received a normal pop-up box telling me I needed to install a JDK to use the extensions, and then LO started normally. 

This was in:
Version: 7.4.0.2 / LibreOffice Community
Build ID: 1512ce97d7ed39dce3121f7e15651fd8895f950e
CPU threads: 10; OS: Mac OS X 12.5; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

I downloaded JDK 19 from:
https://www.oracle.com/java/technologies/downloads/#jdk19-mac

To install the JDK, I tried:
1. Download and unpack the .tar.gz 
2. Open Options - LibreOffice - Advanced
3. Click Add...
4. Pointing LO at the top-level folder and various subfolders within it, only to be told each time that the folder I selected does not contain a Java runtime environment.
5.  Download the .dmg
6. Open the .dmg and run the package installer
7. Restart LO
8. Be greeted with the same message as I saw earlier, telling me that I needed to install the JDK
8. Open Options - LibreOffice - Advanced
9. No JRE listed

It not being able to detect a JRE despite those 9 steps above may be another issue. Also, an opportunity for enhancement would be for the extensions manager to warn me that the extension requires Java and that I do not have a JDK (or JRE) installed *before* installing the extension. But those would be issues for separate bug reports. In any case, I wasn't able to reproduce a crash. 


@Alex, what version of JDK are you using? How did you install it? It might be relevant to this since these plugins require Java.
Comment 3 Alex Thurgood 2022-09-21 07:30:13 UTC
(In reply to Michael Warner from comment #2)

Hi Michael,


> It not being able to detect a JRE despite those 9 steps above may be another
> issue. Also, an opportunity for enhancement would be for the extensions
> manager to warn me that the extension requires Java and that I do not have a
> JDK (or JRE) installed *before* installing the extension. But those would be
> issues for separate bug reports. In any case, I wasn't able to reproduce a
> crash. 
> 
> 
> @Alex, what version of JDK are you using? How did you install it? It might
> be relevant to this since these plugins require Java.

Thanks for the extensive testing, but my experience was related in particular to the macOS appstore installation of LO which, as I learned in a blog post rather than on the appstore description of the product, doesn't include any Java functionality (I didn't realize that the extensions I was testing relied on Java).

Thus, even with a JDK installed, and which works for LibreOffice downloads for macOS (currently, I have Eclipse Adoptium 18, with LO7412 macOS Arm), that JDK will be of no use to the Mac Appstore download of LO.

If Java is the problem, at the very least, the Mac Appstore version of LO should decline to install any extension that requires Java, or else fail gracefully, with a corresponding useful message. It shouldn't install it, ask to restart, and then crash.
Comment 4 Alex Thurgood 2022-09-30 14:36:01 UTC
(In reply to Michael Warner from comment #2)
> I didn't have a problem when rebooting after install of
> DirectColourManager-L-1.2.7. 
> 

I just tried installing DirectColourManager latest version from the extension site and LibreOffice 7.3.6.2 from the AppStore crashes immediately after installation when accepting to restart with the displayed restart dialog.

Sent the crash report to Apple.
Comment 5 Alex Thurgood 2023-03-15 10:42:16 UTC
This is still happening for me with:

Version: 7.4.6.2 / LibreOffice Community
Build ID: 5b1f5509c2decdade7fda905e3e1429a67acd63d
CPU threads: 8; OS: Mac OS X 13.2.1; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

1) Downloaded TexMaths-0.50.oxt from the LibreOffice extensions website.

2) Started LibreOffice.app which had been installed via the app store.

3) Opened the Extension Manager GUI

4) Click on "Add" and select the extension to install.

5) The extension installs, and the dialog "LibreOffice needs to be restarted for the changes to take effect" is displayed with the choice of restart now, or restart later.

6) Choose restart now - LibreOffice crashes.
Comment 6 eisa01 2023-03-31 19:37:02 UTC
Can confirm

Version: 7.4.6.2 / LibreOffice Community
Build ID: 5b1f5509c2decdade7fda905e3e1429a67acd63d
CPU threads: 10; OS: Mac OS X 13.2.1; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded