Closed inikiforovski closed 2 years ago
Hi Igor,
Em 4/14/20 5:53 PM, Igor N escreveu:
I wrote a MIP formulation that represents the data structure of a decision tree with the goal of optimizing the inputs/outputs for a given decision tree regression problem.
Nice ! I would like to see the results if you publish it.
The problem has roughly 5000 variables and 8000 constraints. When I run it on a linux env everything works well but running in anaconda on windows results in consistent crashes with the occasional successful solution.
In both OSes you are using Python-MIP 1.8 ?
The error message is not very informative for me. Maybe if CBC for windows was compiled with debug settings you could see more info... I'll se if I generate binaries with debug info.
Cheers
Here's what I gathered from event viewer for one of the crashes:
|Faulting application name: python.exe, version: 3.6.5150.1013, time stamp: 0x5abd3210 Faulting module name: libCoinUtils-0.dll, version: 0.0.0.0, time stamp: 0x5e9270ea Exception code: 0xc0000005 Fault offset: 0x000000000006ba6a Faulting process id: 0x79c0 Faulting application start time: 0x01d6129c42bd4cd8 Faulting application path: c:\users\igor.nikiforovski\appdata\local\continuum\anaconda3\envs\py365\python.exe Faulting module path: c:\users\igor.nikiforovski\appdata\local\continuum\anaconda3\envs\py365\lib\site-packages\mip\libraries\win64\libCoinUtils-0.dll Report Id: e007f070-0bfd-45a6-a169-4c68ebfd4046 Faulting package full name: Faulting package-relative application ID: |
And here's another common one:
|Faulting application name: python.exe, version: 3.6.5150.1013, time stamp: 0x5abd3210 Faulting module name: msvcrt.dll, version: 7.0.18362.1, time stamp: 0xf5bdefd7 Exception code: 0xc0000005 Fault offset: 0x00000000000747a0 Faulting process id: 0xac4c Faulting application start time: 0x01d6129cdf1894f4 Faulting application path: c:\users\igor.nikiforovski\appdata\local\continuum\anaconda3\envs\py365\python.exe Faulting module path: C:\WINDOWS\System32\msvcrt.dll Report Id: 02e27c77-79bd-45f6-9eb7-6065b30c83bf Faulting package full name: Faulting package-relative application ID: |
Here's the output I see in Anaconda:
|Welcome to the CBC MILP Solver Version: Trunk Build Date: Apr 12 2020 Starting solution of the Linear programming relaxation problem using Dual Simplex Coin0506I Presolve 4033 (-3967) rows, 4223 (-968) columns and 803459 (-219036) elements Clp0000I Optimal - objective value 201.8539 Coin0511I After Postsolve, objective 201.8539, infeasibilities - dual 0 (0), primal 0 (0) Clp0032I Optimal objective 201.8539041 - 180 iterations time 0.252, Presolve 0.19 Starting MIP optimization Option for timeMode changed from cpu to elapsed maxSavedSolutions was changed from 0 to 10 Continuous objective value is 201.854 - 0.03 seconds Cgl0005I 6 SOS with 1697 members Cgl0004I processed model has 1847 rows, 2504 columns (1697 integer (1697 of which binary)) and 323006 elements Coin3009W Conflict graph built in 0.640 seconds, density: 2.352% Cbc0038I Initial state - 2 integers unsatisfied sum - 0.610736 Cbc0038I Solution found of 207.598 Cbc0038I Relaxing continuous gives 207.598 Cbc0038I Before mini branch and bound, 1695 integers at bound fixed and 807 continuous Cbc0038I Full problem 1847 rows 2504 columns, reduced to 0 rows 0 columns Cbc0038I Mini branch and bound did not improve solution (2.04 seconds) Cbc0038I Round again with cutoff of 207.03 Cbc0038I Reduced cost fixing fixed 271 variables on major pass 2 Cbc0038I Pass 1: suminf. 0.01645 (2) obj. 207.03 iterations 192 Cbc0038I Pass 2: suminf. 0.84796 (4) obj. 207.03 iterations 52 Cbc0038I Pass 3: suminf. 0.87942 (4) obj. 207.03 iterations 220 Cbc0038I Pass 4: suminf. 0.61834 (4) obj. 207.03 iterations 34 Cbc0038I Pass 5: suminf. 0.37376 (2) obj. 204.736 iterations 41 Cbc0038I Pass 6: suminf. 0.40297 (2) obj. 207.03 iterations 33 Cbc0038I Pass 7: suminf. 0.72263 (4) obj. 207.03 iterations 91 Cbc0038I Pass 8: suminf. 0.26534 (2) obj. 205.964 iterations 56 Cbc0038I Pass 9: suminf. 0.47094 (2) obj. 207.03 iterations 26 Cbc0038I Pass 10: suminf. 0.45737 (2) obj. 205.964 iterations 81 Cbc0038I Pass 11: suminf. 1.38790 (4) obj. 207.03 iterations 202 Cbc0038I Pass 12: suminf. 0.73080 (4) obj. 207.03 iterations 98 Cbc0038I Pass 13: suminf. 0.70429 (4) obj. 207.03 iterations 62 Cbc0038I Pass 14: suminf. 0.38183 (2) obj. 205.174 iterations 5 Cbc0038I Pass 15: suminf. 0.40547 (2) obj. 207.03 iterations 26 Cbc0038I Pass 16: suminf. 0.76717 (4) obj. 207.03 iterations 72 Cbc0038I Pass 17: suminf. 0.19349 (2) obj. 206.311 iterations 33 Cbc0038I Pass 18: suminf. 0.45407 (2) obj. 207.03 iterations 30 Cbc0038I Pass 19: suminf. 0.44491 (2) obj. 206.311 iterations 37 Cbc0038I Pass 20: suminf. 2.04462 (8) obj. 207.03 iterations 181 Cbc0038I Pass 21: suminf. 1.58461 (6) obj. 207.03 iterations 35 Cbc0038I Pass 22: suminf. 1.34623 (4) obj. 207.03 iterations 63 Cbc0038I Pass 23: suminf. 0.22312 (2) obj. 203.105 iterations 25 Cbc0038I Pass 24: suminf. 0.27311 (2) obj. 207.03 iterations 32 Cbc0038I Pass 25: suminf. 1.57840 (5) obj. 207.03 iterations 144 Cbc0038I Pass 26: suminf. 0.34751 (2) obj. 204.607 iterations 64 Cbc0038I Pass 27: suminf. 0.34751 (2) obj. 204.607 iterations 0 Cbc0038I Pass 28: suminf. 0.37837 (2) obj. 207.03 iterations 38 Cbc0038I Pass 29: suminf. 2.57360 (7) obj. 207.03 iterations 94 Cbc0038I Pass 30: suminf. 1.29932 (6) obj. 207.03 iterations 54 Cbc0038I No solution found this major pass Cbc0038I Before mini branch and bound, 1652 integers at bound fixed and 710 continuous Cbc0038I Full problem 1847 rows 2504 columns, reduced to 339 rows 127 columns Cbc0038I Mini branch and bound improved solution from 207.598 to 202.645 (2.99 seconds) Cbc0038I Round again with cutoff of 202.5 Cbc0038I Reduced cost fixing fixed 798 variables on major pass 3 Cbc0038I Pass 30: suminf. 0.49859 (4) obj. 202.5 iterations 85 Cbc0038I Pass 31: suminf. 0.55944 (4) obj. 202.5 iterations 94 Cbc0038I Pass 32: suminf. 0.16937 (2) obj. 201.972 iterations 15 Cbc0038I Pass 33: suminf. 0.17610 (2) obj. 202.5 iterations 25 Cbc0038I Pass 34: suminf. 1.00075 (6) obj. 202.5 iterations 101 Cbc0038I Pass 35: suminf. 0.38596 (6) obj. 202.5 iterations 27 Cbc0038I Pass 36: suminf. 0.18439 (2) obj. 202.5 iterations 65 Cbc0038I Pass 37: suminf. 0.17891 (2) obj. 202.07 iterations 33 Cbc0038I Pass 38: suminf. 0.87593 (6) obj. 202.5 iterations 108 Cbc0038I Pass 39: suminf. 0.80947 (4) obj. 202.5 iterations 24 Cbc0038I Pass 40: suminf. 0.18341 (2) obj. 202.198 iterations 65 Cbc0038I Pass 41: suminf. 0.18726 (2) obj. 202.5 iterations 21 Cbc0038I Pass 42: suminf. 1.52018 (4) obj. 202.5 iterations 218 Cbc0038I Pass 43: suminf. 0.10095 (4) obj. 202.5 iterations 61 Cbc0038I Pass 44: suminf. 0.17553 (2) obj. 202.5 iterations 40 Cbc0038I Pass 45: suminf. 0.16890 (2) obj. 201.98 iterations 20 Cbc0038I Pass 46: suminf. 1.89186 (7) obj. 202.5 iterations 68 Cbc0038I Pass 47: suminf. 1.11270 (5) obj. 202.5 iterations 21 Cbc0038I Pass 48: suminf. 0.18759 (2) obj. 202.383 iterations 20 Cbc0038I Pass 49: suminf. 0.18909 (2) obj. 202.5 iterations 19 Cbc0038I Pass 50: suminf. 1.35175 (6) obj. 202.5 iterations 44 Cbc0038I Pass 51: suminf. 0.61669 (4) obj. 202.5 iterations 29 Cbc0038I Pass 52: suminf. 0.20037 (2) obj. 202.5 iterations 14 Cbc0038I Pass 53: suminf. 0.19807 (2) obj. 202.32 iterations 20 Cbc0038I Pass 54: suminf. 0.80600 (4) obj. 202.5 iterations 83 Cbc0038I Pass 55: suminf. 0.57613 (4) obj. 202.5 iterations 31 Cbc0038I Pass 56: suminf. 1.03438 (4) obj. 202.5 iterations 43 Cbc0038I Pass 57: suminf. 0.00137 (2) obj. 202.45 iterations 51 Cbc0038I Pass 58: suminf. 0.00137 (2) obj. 202.45 iterations 0 Cbc0038I Pass 59: suminf. 1.47607 (4) obj. 202.5 iterations 55 Cbc0038I No solution found this major pass Cbc0038I Before mini branch and bound, 1661 integers at bound fixed and 764 continuous Cbc0038I Full problem 1847 rows 2504 columns, reduced to 155 rows 68 columns Cbc0038I Mini branch and bound improved solution from 202.645 to 202.303 (3.80 seconds) Cbc0038I Round again with cutoff of 202.188 Cbc0038I Reduced cost fixing fixed 897 variables on major pass 4 Cbc0038I Pass 59: suminf. 0.55901 (4) obj. 202.188 iterations 0 Cbc0038I Pass 60: suminf. 0.32915 (4) obj. 202.188 iterations 99 Cbc0038I Pass 61: suminf. 0.16937 (2) obj. 201.972 iterations 8 Cbc0038I Pass 62: suminf. 0.17213 (2) obj. 202.188 iterations 23 Cbc0038I Pass 63: suminf. 0.80142 (4) obj. 202.188 iterations 45 Cbc0038I Pass 64: suminf. 0.28554 (4) obj. 202.188 iterations 15 Cbc0038I Pass 65: suminf. 0.17286 (2) obj. 202.188 iterations 35 Cbc0038I Pass 66: suminf. 0.17021 (2) obj. 201.981 iterations 19 Cbc0038I Pass 67: suminf. 2.56899 (6) obj. 202.188 iterations 102 Cbc0038I Pass 68: suminf. 0.68144 (4) obj. 202.188 iterations 22 Cbc0038I Pass 69: suminf. 0.59893 (4) obj. 202.188 iterations 84 Cbc0038I Pass 70: suminf. 0.19482 (2) obj. 202.178 iterations 77 Cbc0038I Pass 71: suminf. 0.19496 (2) obj. 202.188 iterations 20 Cbc0038I Pass 72: suminf. 2.17594 (6) obj. 202.188 iterations 98 Cbc0038I Pass 73: suminf. 1.54822 (4) obj. 202.188 iterations 16 Cbc0038I Pass 74: suminf. 0.17274 (2) obj. 201.993 iterations 51 Cbc0038I Pass 75: suminf. 0.17523 (2) obj. 202.188 iterations 12 Cbc0038I Pass 76: suminf. 0.18073 (4) obj. 202.188 iterations 28 Cbc0038I Pass 77: suminf. 0.17883 (4) obj. 202.188 iterations 24 Cbc0038I Pass 78: suminf. 0.17480 (2) obj. 202.036 iterations 25 Cbc0038I Pass 79: suminf. 0.17674 (2) obj. 202.188 iterations 23 Cbc0038I Pass 80: suminf. 0.74144 (4) obj. 202.188 iterations 24 Cbc0038I Pass 81: suminf. 0.18696 (2) obj. 202.161 iterations 20 Cbc0038I Pass 82: suminf. 0.18731 (2) obj. 202.188 iterations 25 Cbc0038I Pass 83: suminf. 1.02955 (4) obj. 202.188 iterations 51 Cbc0038I Pass 84: suminf. 0.18649 (2) obj. 202.134 iterations 20 Cbc0038I Pass 85: suminf. 0.18718 (2) obj. 202.188 iterations 15 Cbc0038I Pass 86: suminf. 0.64022 (5) obj. 202.188 iterations 32 Cbc0038I Pass 87: suminf. 0.41106 (4) obj. 202.188 iterations 26 Cbc0038I Pass 88: suminf. 0.17391 (2) obj. 202.188 iterations 31 Cbc0038I No solution found this major pass Cbc0038I Before mini branch and bound, 1666 integers at bound fixed and 757 continuous Cbc0038I Full problem 1847 rows 2504 columns, reduced to 125 rows 52 columns Cbc0038I Mini branch and bound improved solution from 202.303 to 202.303 (4.55 seconds) Cbc0038I Round again with cutoff of 202.108 Cbc0038I Reduced cost fixing fixed 974 variables on major pass 5 Cbc0038I Pass 88: suminf. 0.57453 (4) obj. 202.108 iterations 0 Cbc0038I Pass 89: suminf. 0.27001 (4) obj. 202.108 iterations 89 Cbc0038I Pass 90: suminf. 0.16937 (2) obj. 201.972 iterations 6 Cbc0038I Pass 91: suminf. 0.17111 (2) obj. 202.108 iterations 21 Cbc0038I Pass 92: suminf. 1.18950 (6) obj. 202.108 iterations 66 Cbc0038I Pass 93: suminf. 0.71414 (4) obj. 202.108 iterations 104 Cbc0038I Pass 94: suminf. 1.12932 (4) obj. 202.108 iterations 75 Cbc0038I Pass 95: suminf. 0.17883 (2) obj. 202.084 iterations 5 Cbc0038I Pass 96: suminf. 0.17914 (2) obj. 202.108 iterations 28 Cbc0038I Pass 97: suminf. 0.72993 (4) obj. 202.108 iterations 34 Cbc0038I Pass 98: suminf. 0.62147 (4) obj. 202.108 iterations 24 Cbc0038I Pass 99: suminf. 0.16976 (2) obj. 202.108 iterations 36 Cbc0038I Pass 100: suminf. 0.16836 (2) obj. 201.998 iterations 25 Cbc0038I Pass 101: suminf. 1.29657 (4) obj. 202.108 iterations 41 Cbc0038I Pass 102: suminf. 0.77729 (4) obj. 202.108 iterations 47 Cbc0038I Pass 103: suminf. 0.17701 (4) obj. 202.108 iterations 43 Cbc0038I Pass 104: suminf. 0.16989 (2) obj. 202.05 iterations 4 Cbc0038I Pass 105: suminf. 0.17063 (2) obj. 202.108 iterations 18 Cbc0038I Pass 106: suminf. 1.31549 (4) obj. 202.108 iterations 67 Cbc0038I Pass 107: suminf. 0.90509 (4) obj. 202.108 iterations 10 Cbc0038I Pass 108: suminf. 0.16951 (2) obj. 202.108 iterations 35 Cbc0038I Pass 109: suminf. 0.16847 (2) obj. 202.026 iterations 28 Cbc0038I Pass 110: suminf. 1.12572 (4) obj. 202.108 iterations 33 Cbc0038I Pass 111: suminf. 0.97968 (4) obj. 202.108 iterations 6 Cbc0038I Pass 112: suminf. 0.16783 (2) obj. 202.007 iterations 14 Cbc0038I Pass 113: suminf. 0.16912 (2) obj. 202.108 iterations 25 Cbc0038I Pass 114: suminf. 0.48698 (6) obj. 202.108 iterations 42 Cbc0038I Pass 115: suminf. 0.17659 (2) obj. 202.046 iterations 46 Cbc0038I Pass 116: suminf. 0.17738 (2) obj. 202.108 iterations 21 Cbc0038I Pass 117: suminf. 0.71302 (6) obj. 202.108 iterations 32 Cbc0038I No solution found this major pass Cbc0038I Before mini branch and bound, 1665 integers at bound fixed and 752 continuous Cbc0038I Full problem 1847 rows 2504 columns, reduced to 140 rows 56 columns Cbc0038I Mini branch and bound did not improve solution (5.26 seconds) Cbc0038I After 5.27 seconds - Feasibility pump exiting with objective of 202.303 - took 3.48 seconds Cbc0012I Integer solution of 202.3028 found by feasibility pump after 0 iterations and 0 nodes (5.28 seconds) Cbc0038I Full problem 1847 rows 2504 columns, reduced to 1 rows 3 columns Cbc0031I 4 added rows had average density of 1690.5 Cbc0013I At root node, 4 cuts changed objective from 201.92144 to 201.93024 in 10 passes Cbc0014I Cut generator 0 (Probing)
- 0 row cuts average 0.0 elements, 5 column cuts (5 active) in 0.222 seconds - new frequency is 1 Cbc0014I Cut generator 1 (Gomory) - 0 row cuts average 0.0 elements, 0 column cuts (0 active) in 0.024 seconds - new frequency is -100 Cbc0014I Cut generator 2 (Knapsack) - 0 row cuts average 0.0 elements, 0 column cuts (0 active) in 0.129 seconds - new frequency is -100 Cbc0014I Cut generator 3 (Clique) - 0 row cuts average 0.0 elements, 0 column cuts (0 active) in 0.000 seconds - new frequency is -100 Cbc0014I Cut generator 4 (OddWheel) - 0 row cuts average 0.0 elements, 0 column cuts (0 active) in 0.001 seconds - new frequency is -100 Cbc0014I Cut generator 5 (MixedIntegerRounding2) - 26 row cuts average 1690.6 elements, 0 column cuts (0 active) in 0.206 seconds - new frequency is 1 Cbc0014I Cut generator 6 (FlowCover) - 0 row cuts average 0.0 elements, 0 column cuts (0 active) in 0.095 seconds - new frequency is -100 Cbc0010I After 0 nodes, 1 on tree, 202.3028 best solution, best possible 201.93101 (7.32 seconds) Cbc0010I After 3 nodes, 2 on tree, 202.3028 best solution, best possible 201.93246 (9.94 seconds) Cbc0004I Integer solution of 202.30158 found after 530 iterations and 7 nodes (10.10 seconds) Cbc0016I Integer solution of 202.2723 found by strong branching after 1408 iterations and 18 nodes (10.48 seconds) Cbc0016I Integer solution of 202.1965 found by strong branching after 2055 iterations and 29 nodes (10.85 seconds) Cbc0011I Exiting as integer gap of 0.014460426 less than 1e-10 or 0.01% Cbc0001I Search completed - best objective 202.1964979673536, took 2106 iterations and 30 nodes (10.87 seconds) Cbc0032I Strong branching done 54 times (1917 iterations), fathomed 11 nodes and fixed 0 variables Cbc0035I Maximum depth 6, 1850 variables fixed on reduced cost |
Let me know what other information I can provide to assist. Thank you!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/coin-or/python-mip/issues/83, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4VZOWUHAMPMQNVLG24SQDRMTEMJANCNFSM4MIBOCPA.
--
Haroldo Gambini Santos Computing Department Universidade Federal de Ouro Preto - UFOP email: haroldo@ufop.edu.br home/research page: www.decom.ufop.br/haroldo
It has long been an axiom of mine that the little things are infinitely the most important. -- Sir Arthur Conan Doyle, "A Case of Identity"
Haroldo, thanks for the quick reply! It's working in 1.7.3 and 1.8.0 on Linux and crashing in both versions on Windows. Yeah binaries with debug turned on would be great.
It looks like it crashes after this message: Cbc0035I Maximum depth 1, 2290 variables fixed on reduced cost
, just before heading to the final steps and printing out the result (got this output one of the rare times when it ran without crashing):
Cuts at root node changed objective from 177.357 to 177.372
Probing was tried 10 times and created 119 cuts of which 0 were active after adding rounds of cuts (0.200 seconds)
Gomory was tried 7 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.017 seconds)
Knapsack was tried 7 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.397 seconds)
Clique was tried 7 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.001 seconds)
OddWheel was tried 7 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.000 seconds)
MixedIntegerRounding2 was tried 10 times and created 1 cuts of which 0 were active after adding rounds of cuts (0.392 seconds)
FlowCover was tried 7 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.150 seconds)
TwoMirCuts was tried 1 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.018 seconds)
ZeroHalf was tried 1 times and created 0 cuts of which 0 were active after adding rounds of cuts (0.001 seconds)
2480 bounds tightened after postprocessing
Result - Optimal solution found (within gap tolerance)
Objective value: 177.37904412
Lower bound: 177.372
Gap: 0.00
Enumerated nodes: 2
Total iterations: 224
Time (CPU seconds): 14.55
Time (Wallclock seconds): 14.55
Total time (CPU seconds): 14.56 (Wallclock seconds): 14.56
There are DLLs built with debugging symbols at Bintray that I guess you should be able to just drop in. Use any of the *mdd*
versions.
Hi @tkralphs the mdd builds are built with Visual Studio. I included in Python-MIP the mingw32 builds. It was simpler to include blas amd and suitesparse in these builds. Would it be possible to generate mingw32 equivalent debug builds ? Asking because you probably know the best way to do it. I can try to modify appveyor files myself if you are too busy...
Hi @inikiforovski could you provide the .mps file of this problem ?
@h-g-s sure thing, please see attached. dt_optimization.mps.mps.gz
I am facing similar issue on windows with 1.8 version.
I was also not able to figure out which dlls to substitute to make it work.
I'm having a silent crash on Windows as well, with CBC solver when adding SOS to my model, it works fine otherwise but it solves slower (as expected).
I have no idea if this is my same problems, but it could be. I can provide the ".lp" files if it is useful, is it?
Here attached the mps file for my problem with SOS that silently crashes on Windows AND crashes with some log on Linux (probably it isn't the same bug) model.mps.mps.gz
Here is a relevant section of the log that i get on Linux before the "core dumped" message, looks as a CBC issue to me:
tests/test_smoketest.py Fatal Python error: Aborted
Current thread 0x00007f2a9ee5a740 (most recent call first): File "/opt/conda/envs/alhso/lib/python3.8/site-packages/mip/cbc.py", line 1005 in optimize File "/opt/conda/envs/alhso/lib/python3.8/site-packages/mip/model.py", line 497 in optimize File "/var/lib/jenkins/workspace/foo/bar/bar.py", line 329 in main File "/var/lib/jenkins/workspace/foo/tests/test_smoketest.py", line 7 in test_main
Should I open a new issue?
I have a branch that performs CI/CD on Travis with Windows and has a non-regression test ready with a problem the actually reproduce this crash. It turns out that the same crash happens on Mac. Are you interested in a pull request?
Sadly I need this working in Windows.
Hi @bonelli , the more tests the better ! I hope some of the problem also appears on Linux, right now it is the platform where I can debug CBC.
Hi @bonelli , the more tests the better ! I hope some of the problem also appears on Linux, right now it is the platform where I can debug CBC.
Sadly no, on Linux it doesn't appear. But there is a stack trace from Travis when it fails at least. I'll give you the pull request with the failing test.
Another option to provide more details in the crash on windows is to replace the windows cbc binaries (mip/libraries/win6) with these https://bintray.com/coin-or/download/download_file?file_path=Cbc-master-x86_64-w64-mingw32-dbg.zip (all dlls in folder bin) They are compiled with debug information, hopefully much more information is provided in the crash...
I made a PR #111 with Windows configuration in Travis and a non-regression test
Haroldo, I replaced the DLLs, when the crash happens I see the following information as before:
Faulting application name: python.exe, version: 3.6.5150.1013, time stamp: 0x5abd3210
Faulting module name: msvcrt.dll, version: 7.0.18362.1, time stamp: 0xf5bdefd7
Exception code: 0xc0000005
Fault offset: 0x00000000000747a0
Faulting process id: 0x906c
Faulting application start time: 0x01d639b95deacfb1
Faulting application path: c:\users\igor.nikiforovski\appdata\local\continuum\anaconda3\envs\py365\python.exe
Faulting module path: C:\WINDOWS\System32\msvcrt.dll
Report Id: b2586995-595a-4c64-aea9-66fdcce663b0
Faulting package full name:
Faulting package-relative application ID:
I also see this as a separate event a couple of seconds later:
Fault bucket 2131451623915082033, type 4
Event Name: APPCRASH
Response: Not available
Cab Id: 0
Problem signature:
P1: python.exe
P2: 3.6.5150.1013
P3: 5abd3210
P4: msvcrt.dll
P5: 7.0.18362.1
P6: f5bdefd7
P7: c0000005
P8: 00000000000747a0
P9:
P10:
Attached files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER76D1.tmp.dmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER8401.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER8422.tmp.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER842F.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER846F.tmp.txt
These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_python.exe_2c3eb359e7492b67a9ea2df79bd8151bf721cd65_951a5f31_121c8b98-e984-4a10-b99c-2edefb7af663
Analysis symbol:
Rechecking for solution: 0
Report Id: b2586995-595a-4c64-aea9-66fdcce663b0
Report Status: 268435456
Hashed bucket: a4a43b5dcd9ae0f93d946ff583635131
Cab Guid: 0
Let me know if that's what you were looking for. Thanks!
Edit: here's the .wer file as well: Report.zip
Hi @inikiforovski , I finally setup a Windows machine to debug. In my case, cbc crashes while trying do unzip the file. If I decompress the file before and just enter a .mps file everything works. Maybe there is a problem in building cbc on Windows with zlib. Could you check if it works this way for you too ?
@h-g-s, I tried both defining the model outright without saving it and saving to an .mps file and loading it from that without zipping, I get the error both ways. Sometimes it works and gets a solution the first couple of times but then crashes.
Every time, it happens right after the "Cbc0035I Maximum depth 1, 2290 variables fixed on reduced cost" message, which is one of the last messages before it shows the result if it does not crash.
I tried this in Anaconda with python 3.6.5, 3.7.6 and 3.8.1 environments and get the crash in every one of them. With 3.7.6 I get a slightly different error:
Faulting application name: python.exe, version: 3.7.6150.1013, time stamp: 0x5e163a94
Faulting module name: cbc-c-windows-x86-64.dll, version: 0.0.0.0, time stamp: 0x5e49fabd
Exception code: 0xc0000005
Fault offset: 0x000000000031172e
Faulting process id: 0xc690
Faulting application start time: 0x01d63e63b8cb994c
Faulting application path: C:\Users\igor.nikiforovski\AppData\Local\Continuum\anaconda3\envs\py376\python.exe
Faulting module path: C:\Users\igor.nikiforovski\AppData\Local\Continuum\anaconda3\envs\py376\lib\site-packages\mip\libraries\cbc-c-windows-x86-64.dll
Report Id: 4c48fcf9-c1fa-43e8-a350-49aa07abc622
Faulting package full name:
Faulting package-relative application ID:
Fault bucket 2243953957684152097, type 4
Event Name: APPCRASH
Response: Not available
Cab Id: 0
Problem signature:
P1: python.exe
P2: 3.7.6150.1013
P3: 5e163a94
P4: cbc-c-windows-x86-64.dll
P5: 0.0.0.0
P6: 5e49fabd
P7: c0000005
P8: 000000000031172e
P9:
P10:
Attached files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER32CD.tmp.dmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER337A.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER33AA.tmp.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER33B9.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER33F9.tmp.txt
These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_python.exe_be99ed8a492abc82e05a2842f313866df936c3_e7d2fc86_83a7a49d-673e-426b-a014-46ec44f93899
Analysis symbol:
Rechecking for solution: 0
Report Id: 4c48fcf9-c1fa-43e8-a350-49aa07abc622
Report Status: 268435456
Hashed bucket: 12e348968b5ebf79af24203c4c188721
Cab Guid: 0
The mps-file runs fine under windows with latest release 1.14.0. At the moment i will consider this as not reproducible and close it.
I wrote a MIP formulation that represents the data structure of a decision tree with the goal of optimizing the inputs/outputs for a given decision tree regression problem. The problem has roughly 5000 variables and 8000 constraints. When I run it on a linux env everything works well but running in anaconda on windows results in consistent crashes with the occasional successful solution.
Here's what I gathered from event viewer for one of the crashes:
And here's another common one:
Here's the output I see in Anaconda:
Let me know what other information I can provide to assist. Thank you!