Issue 128097 - crash when select menu item Tools/Macros/Run Macro
Summary: crash when select menu item Tools/Macros/Run Macro
Status: REOPENED
Alias: None
Product: Calc
Classification: Application
Component: ui (show other issues)
Version: 4.1.6
Hardware: Mac macOS 10.13
: P5 (lowest) Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2019-04-23 08:40 UTC by sebb
Modified: 2019-05-27 15:25 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Partial crash dump (8.50 KB, text/plain)
2019-04-23 08:40 UTC, sebb
no flags Details
Legacy Java 6 message (27.32 KB, image/png)
2019-05-26 10:51 UTC, sebb
no flags Details
Quit message (a few seconds later) (24.93 KB, image/png)
2019-05-26 10:52 UTC, sebb
no flags Details
Java settings (85.92 KB, image/png)
2019-05-27 08:06 UTC, sebb
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description sebb 2019-04-23 08:40:50 UTC
Created attachment 86666 [details]
Partial crash dump

Open Calc with empty worksheet.

Click Tools/Macros/Run Macro...

This pops up dialog box saying:

To open "soffice" you need to install the
legacy Java SE 6 runtime.

Click OK, and get "OpenOffice quit unexpectedly".
(partial crash dump attached)

This happens every time.
Comment 1 oooforum (fr) 2019-04-23 15:15:23 UTC
Could you be more precise and provide which MacOS version is used?
Comment 2 sebb 2019-04-23 15:29:06 UTC
It should be in the crash dump
Comment 3 Matthias Seidel 2019-04-23 16:24:01 UTC
(In reply to sebb from comment #0)
> Created attachment 86666 [details]
> Partial crash dump
> 
> Open Calc with empty worksheet.
> 
> Click Tools/Macros/Run Macro...
> 
> This pops up dialog box saying:
> 
> To open "soffice" you need to install the
> legacy Java SE 6 runtime.
> 
> Click OK, and get "OpenOffice quit unexpectedly".
> (partial crash dump attached)
> 
> This happens every time.

Did you try to install Java 6 as described in the Release Notes:
https://cwiki.apache.org/confluence/display/OOOUSERS/AOO+4.1.6+Release+Notes#AOO4.1.6ReleaseNotes-FormacOSusers

(Don't ask me why this is necessary ;-) )
Comment 4 sebb 2019-04-23 20:35:23 UTC
No, I did not.

Note that I can run macros from the organiser, so I don't understand why this menu item should require Java 6, and even if it is required, the program should not crash - it should report an error and continue as if the option had not been selected.
Comment 5 Matthias Seidel 2019-04-23 20:44:46 UTC
(In reply to sebb from comment #4)
> No, I did not.

Then you should just try it. ;-)

> 
> Note that I can run macros from the organiser, so I don't understand why
> this menu item should require Java 6, and even if it is required, the
> program should not crash - it should report an error and continue as if the
> option had not been selected.

Acknowledged!
Comment 6 oooforum (fr) 2019-05-25 07:20:55 UTC
(In reply to sebb from comment #2)
> It should be in the crash dump
Well, provide this information directly here avoid us to download a file

This Mac OS X 10.13.6 is not longer supported
See: https://www.openoffice.org/dev_docs/source/sys_reqs_aoo41.html
Comment 7 sebb 2019-05-25 09:24:27 UTC
I see you got 10.13.6 from the (partial, small) crash dump.

Note that this is later than OS X 10.7 (Lion) or higher.
I am running High Sierra currently, which is supported according to
https://www.openoffice.org/dev_docs/source/sys_reqs_aoo41.html
so I am re-opening the bug.
Comment 8 oooforum (fr) 2019-05-26 09:56:34 UTC
(In reply to sebb from comment #7)
> I am running High Sierra currently
Note that I set this version instead of "MacOS all"

Could you provide screenshots:
1) when error occurs
2) dialog box in Tools > Options > OpenOffice > Java
Comment 9 sebb 2019-05-26 10:51:48 UTC
Created attachment 86688 [details]
Legacy Java 6 message
Comment 10 sebb 2019-05-26 10:52:34 UTC
Created attachment 86689 [details]
Quit message (a few seconds later)
Comment 11 sebb 2019-05-26 10:54:15 UTC
I don't have the following menu item:

Tools > Options
Comment 12 oooforum (fr) 2019-05-27 06:58:41 UTC
(In reply to sebb from comment #11)
> I don't have the following menu item:
> 
> Tools > Options

https://forum.openoffice.org/en/forum/viewtopic.php?f=74&t=89283&hilit=tools+options+macos
Comment 13 sebb 2019-05-27 08:06:54 UTC
Created attachment 86690 [details]
Java settings
Comment 14 oooforum (fr) 2019-05-27 10:21:38 UTC
See issue 128074
Downgrade the JRE to 1.8.x
Comment 15 sebb 2019-05-27 15:15:32 UTC
That should not be necessary.

My point is that a crash is a bug, regardless of the setting of the JRE.
Comment 16 sebb 2019-05-27 15:25:02 UTC
In fact I don't get a crash if I select Java 9.0.1.

If I deselect Java, I then get a prompt asking If I wish to enable a JRE now.
If I select NO, I can still invoke macros successfully.

The problem appears to be how the code handles the case where Java is selected, but no specific JRE is selected. This is what seems to cause the crash.