MiniZinc stopped with a non-zero exit code, but did not output an error message
See original GitHub issuesolver: minizinc’s gecode, gist, restart and set subsolvers CPMpy: version v0.9.9 commit e79b3afedc934a9437c2ddb3a9f54d7e2d7bd3ee minizinc-python release version 0.7.0 commit {https://github.com/MiniZinc/minizinc-python/commit/a195cf63fcfbc98665d70ab64efb5424db25bd7e)
Some MiniZinc subsolvers crash without an error message, while other solvers can solve the problem.
from cpmpy import *
file ="minimized" # don't forget to unzip
m=Model().from_file(file)
m.solve(solver='minizinc:gecode') # same with "minizinc:gist", "minizinc:restart" and "minizinc:set"
expected behavior: No crash like other solvers (“minizinc:gurobi”, “ortools” …)
bug found while working on my master thesis.
Issue Analytics
- State:
- Created 10 months ago
- Comments:8
Top Results From Across the Web
MiniZincIDE 2.1.7 ignores non-zero solver exit codes · Issue #54
When a solver signals a problem (by terminating with a non-zero exit code), MiniZinc IDE 2.1.7 ignores the problem instead of reporting it ......
Read more >Source code for minizinc.error
This Source Code Form is subject to the terms of the Mozilla Public # License ... stopped with a non-zero exit code, but...
Read more >Minizinc no output - Stack Overflow
What happens if you change the output section to: output[show(Cost) ++ "\n"]; · Seems I have made too many changes to reproduce the...
Read more >4.3. Interfacing Solvers to Flatzinc - MiniZinc
Errors and warnings must be output to the standard error stream. When an error occurs, the implementation should exit with a non-zero exit...
Read more >Submitted script failed with a non-zero exit code; see the ...
Microsoft Q&A is the best place to get answers to all your technical questions on Microsoft products and services. Community. Forum.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The same issue was raised in minizinc-python: https://github.com/MiniZinc/minizinc-python/issues/60 Adding the minizinc folder to my PATH solved the issue for me. (I am using windows)
Is there a way we could catch this exception and output a warning wrt putting the minizinc folder in the PATH? If not, can close, if yes and small effort, could help others in the same situation