Created attachment 53981 [details] Example file for crash I just noticed an error when using the solver module in calc. I will attach an example file. In this file, go Tools, Solver. - Target cell is $B$1. - Optimize result to Minimum - By changing cells $A$1:$A$2 - Limiting conditions: $A$3 should be Integer Then hit "Solve" and calc crashes: Microsoft Visual C++ Runtime Library Runtime Error! Program: C:\Program Files (x86)\LibreOffice 3.4\program\soffice.bin This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.
[Reproducible] with reporter's sample and "LibreOffice 3.4.4 - WIN7 Home Premium (64bit) German UI [OOO340m1 (Build:402)]". LibO Linear solver will not crash. Error Message is: "Microsoft Visual C++ Runtime Library Runtime Error Program C:\.....\soffice.bin This applicaton has requested the runtime to terminate it in an unusúal way. Please contact the application's support team for more information. Not a regression, 3.3.3 also crashes. Bug of feature? Master only has the "Linear solver" what will not crash @David: Help and Documentation might be affected. LibreOffice 3 Calc Guide: "The default solver supports only linear equations. For nonlinear programming requirements, try the EuroOffice Solver or Sun’s Solver for Nonlinear Programming [Beta]. Both are available from the LibreOffice extensions repository." For 3.4.4 that's not correct, "SCO Evolutionary Algorithm Solver" and "DEPS Evolutionary Algorithm Solver" indeed are Extensions, but they are in the installation bundle and can not be removed. For 3.5 those 2 Solvers no longer are in the installation bundle, but they are not available from <http://extensions.libreoffice.org/>. @Kohei: Please feel free to reassign (or reset Assignee to default) if it’s not your area or if provided information is not sufficient. Please set Status to ASSIGNED if you accept this Bug.
BTW: it seems that the crashing solver is the default one (at least for me with my LibO version).
Concerning Solver versions in installation package: Server installation of Master "LibO-dev 3.5.0 – WIN7 Home Premium (64bit) GERMAN UI [Build ID: 130028f-b211287-090bcba-45cf606-05891e7]" Win-x86@9-Voreppe - 111130) contains "Solver for Nonlinear Programming 0.9", can be used after activatin "Experimental functions". Reintroduced or difference between the builds? A.M. LibO Master version also shows the crash
Works with Server installation of Master "LibO-dev 3.5.0 – WIN7 Home Premium (64bit) GERMAN UI [Build ID: 130028f-b211287-090bcba-45cf606-05891e7]" Win-x86@9-Voreppe - 111130) Bug gone or build specific?
Please ignore Comment 4 - wrong Bug!
Created attachment 72592 [details] bt + console logs on master On pc Debian x86-64 with master sources updated today, I reproduced the crash. I attached console logs + bt
In Version 4.2.0.4 the error message changed to a NullPointerExeption.
Created attachment 93968 [details] Fatal Error - NullPointerException
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present on a currently supported version of LibreOffice (4.4.2 or later) https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for your help! -- The LibreOffice QA Team This NEW Message was generated on: 2015-05-02
On pc Debian x86-64 with master sources updated today, I still reproduce the error: [jni_uno bridge error] UNO calling Java method solve: non-UNO exception occurred: java.lang.NullPointerException java stack trace: java.lang.NullPointerException at net.adaptivebox.encode.EvalStruct.evaluate(EvalStruct.java:44) at net.adaptivebox.problem.ProblemEncoder.evaluate(ProblemEncoder.java:96) at net.adaptivebox.problem.ProblemEncoder.getEncodedSearchPoint(ProblemEncoder.java:84) at net.adaptivebox.knowledge.Library.<init>(Library.java:38) at com.sun.star.comp.Calc.NLPSolver.BaseEvolutionarySolver.initializeSolve(BaseEvolutionarySolver.java:298) at com.sun.star.comp.Calc.NLPSolver.DEPSSolverImpl.solve(DEPSSolverImpl.java:119)
This bug is still there. Version: 4.4.3.2, Windows 7.
Version: 5.3.0.0.alpha0+ Build ID: d9cff00683d31fbd4b3c4c2d6afbe164f4a85d47 CPU Threads: 2; OS Version: Linux 3.16; UI Render: default; Locale: en-US (en_US.UTF-8); Calc: group I get "Invalid Input" not a crash. Can you test again with 5.3 and if it's the same result as I'm getting close this bug as WORKSFORME. Thanks
Where can I get Version 5.3.0.0.alpha0+? "Invalid Input" is better than a crash, but I don't see why the input should be invalid. This optimization problem is unbounded. Perhaps the message should simply say this if this is the problem.
(In reply to alexander.buchner from comment #13) > Where can I get Version 5.3.0.0.alpha0+? > ... See http://dev-builds.libreoffice.org/daily/master/
My result for Version: 5.3.0.0.alpha0+ Build ID: 8697d18f717c75ddeedfe08161091da71007b859 CPU Threads: 4; OS Version: Windows 6.19; UI Render: GL; TinderBox: Win-x86@42, Branch:master, Time: 2016-09-15_02:55:18 Locale: de-DE (de_DE); Calc: group is shown in the attachment 5.3.0.0_alpha.png So there is no crash but the result is just wrong. It seems that the constraint "Integer" is interpreted as "non-negative Integer".
Created attachment 127378 [details] Result in 5.3.0.0_alpha
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present on a currently supported version of LibreOffice (5.4.1 or 5.3.6 https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug-20170929
This is bug is still present in Version: 5.4.1.2 (x64) Build ID: ea7cb86e6eeb2bf3a5af73a8f7777ac570321527 on Windows 10. I'll attach a screenshot of the errormessage.
Created attachment 136611 [details] Screenshot of error message in LibreOffice 5.4
Just for information, I submitted a patch on gerrit https://gerrit.libreoffice.org/#/c/56359/ I noticed there was a crash too when choosing BINARY If someone wants to give it a try...
Julien Nabet committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=02a66f29fec36aed5fb1e800a08c1390d3674b59 tdf#43388: add missing info for Evolutionary Algorithm Solver It will be available in 6.2.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Julien Nabet committed a patch related to this issue. It has been pushed to "libreoffice-6-1": http://cgit.freedesktop.org/libreoffice/core/commit/?id=b8fc43af43626c3895033063d10eb547f64c01d0&h=libreoffice-6-1 tdf#43388: add missing info for Evolutionary Algorithm Solver It will be available in 6.1.0.1. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
For 6.0, the patch is waiting for review here: https://gerrit.libreoffice.org/#/c/56435/
Julien Nabet committed a patch related to this issue. It has been pushed to "libreoffice-6-0": http://cgit.freedesktop.org/libreoffice/core/commit/?id=12e092b414208ba4342f20fe190681d73d9c6ff9&h=libreoffice-6-0 tdf#43388: add missing info for Evolutionary Algorithm Solver It will be available in 6.0.6. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.