Bug 123030 - Calc crash when solver makes variables integer
Summary: Calc crash when solver makes variables integer
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.2.7.2 release
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-29 08:03 UTC by libreoffice.org
Modified: 2019-09-02 09:34 UTC (History)
1 user (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 libreoffice.org 2019-01-29 08:03:14 UTC
Description:
With a simple spreadsheet, I can crash Calc by using Data -> Solver and three constraints.

Steps to Reproduce:
1. Create this 3x3 spreadsheet:

          0          0          0
=A1+B1+C1           80
=1/2*A1    =2/3*B1+1/4


2. Use Tools → Solver with these values:

Target: C3
By changing: A1:C1
Limiting conditions:
    A1:C1  Integer
    A2  =  B2
    A3  =  B3
    A1:C1  >=  0
    A1:C1  <=  80

3.Click on "Solve"

Actual Results:
Crash

Expected Results:
Solve the system of linear equations


Reproducible: Always


User Profile Reset: No



Additional Info:
Order of constraints matters. Setting the inequalities first makes the solver work. Also, setting only two of the three variables to be integers makes the solver work. Likewise, using "Options -> Assume Variables as Integer" does not trigger this bug.

Version: 5.2.7.2
Build ID: 1:5.2.7-1+deb9u4
CPU Threads: 2; OS Version: Linux 4.9; UI Render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); Calc: group
Comment 1 Xisco Faulí 2019-01-29 08:57:45 UTC
Thank you for reporting the bug.
it seems you're using an old version of LibreOffice.
Could you please try to reproduce it with the latest version of LibreOffice
from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the bug is still present in the latest version.
Comment 2 QA Administrators 2019-07-30 03:17:56 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2019-09-02 09:34:03 UTC
Dear libreoffice.org,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp