Bug 98619 - DATALOSS: Calc exits abruptly if Tools -> Solver... is opened with no compatible Java installed
Summary: DATALOSS: Calc exits abruptly if Tools -> Solver... is opened with no compati...
Status: RESOLVED DUPLICATE of bug 88237
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: All Windows (All)
: medium critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-12 13:55 UTC by langba
Modified: 2016-10-28 19:15 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 langba 2016-03-12 13:55:09 UTC
Click Tools, Solver and Calc crashes.  Previous bug report 82618 does not address this build.

Error message:

LibreOffice requires a Java runtime environment (JRE) to perform this task. The selected JRE is defective. Please select another version or install a new JRE and select it under Tools - Options - LibreOffice - Advanced.

Clicking OK to this error message exits the program.

LibreOffice 5.1 - Fatal Error

Could not create Java implementation loader
Comment 1 m_a_riosv 2016-03-12 15:16:12 UTC
Have you selected the Java environment in Menu/Tools/Options/LibreOffice/Advanced, remember that the if you are using 32 bits(x96) LibreOffice you must use a 32 bits java environment, and 64 for 64.
Comment 2 mxchael 2016-06-27 18:49:14 UTC
I've been bitten by this, it happens in Windows as well as Linux. 
I think the point here is that a missing dependency (JRE on Windows, CoinMP on Linux) shouldn't result in a fatal crash. Obviously the functionality won't work without them but this can be checked before calling them, and displayed in a normal warning message. Now I lost work and couldn't recover anything.
Comment 3 Aron Budea 2016-06-28 07:17:06 UTC
I tested opening Tools -> Solver... without having Java installed in Windows 7.

Confirmed in 4.3.0.4 and 5.1.4.2, Calc exits abruptly after fatal error message, as described in Description.
Fine in 4.2.0.4, there's a message that Java needs to be installed, but then Solver opens.
=> regression

Also fine in 5.2.0.1, behavior is same as in 4.2.0.4 (maybe the message is slightly different).
=> backportRequest

However, there is no warning message about missing Java in master build (Build ID: 0325b22a2a2b537a71f53b7c5d3e6c13fef68911).
=> new bug
Comment 4 Mike A. Harris 2016-07-14 06:33:26 UTC
I just encountered this with LibreOffice Calc 5.1.4.2 on Win7/x64.

Steps to reproduce:

1) Do not have a JRE installed.

2) Open LibreCalc and load an important document, spend some time editing it but do not save your document yet.

3) Click on Tools->Solver...  wondering what that actually is having never used it previously.

4) An error dialogue box comes on screen telling you you do not have a JRE installed.

5) Immediate crash to desktop with complete data loss.  Autorecovery does not recover the document even if it had allegedly saved it every minute for the last hour and you haven't edited it since the last autosave.

It's easy to reproduce though, you don't even need to have a document loaded, just start the program and go to Tools->Solver without a JRE installed and it crashes instantly, although that wont reproduce the catastrophic data loss part.
Comment 5 Aron Budea 2016-07-19 00:50:25 UTC
Since this bug is fixed in 5.2.0.1, I'm closing this bug report as RESOLVED, WORKSFORME.

The fix needs to be identified, and backported to 5.1, so I'm adding backportRequest:5.1 tag. Since it's a regression, I'm also adding keywords regression and bibisectRequest.
Since the application aborts, and there can be data loss, raising severity to critical.

I've opened a new bug report on the new issue that only exists in the master branch (bug 100996).
Comment 6 Aron Budea 2016-10-28 19:14:13 UTC

*** This bug has been marked as a duplicate of bug 88237 ***