Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cbc crashes on Windows, runs ok on Linux #325

Open
gt6989b opened this issue Aug 11, 2020 · 5 comments
Open

Cbc crashes on Windows, runs ok on Linux #325

gt6989b opened this issue Aug 11, 2020 · 5 comments

Comments

@gt6989b
Copy link

gt6989b commented Aug 11, 2020

etfCreator.20200715.083000.lp.zip
Describe the bug
I run a formulation of a MIP problem. It runs fine on Linux, converging to an optimal solution. In Windows, however, it crashes in different places at different times, usually with the message

Process finished with exit code -1073741819 (0xC0000005)

To Reproduce
I am attaching the formulation as an .lp file.

Desktop (please complete the following information):

  • Operating System, version: Windows 10
  • Python version: 3.7.8
  • Python-MIP version (we recommend you to test with the latest version): 1.11.0 (same error with 1.10.0)

Additional context
This may be related to Issue 83

@h-g-s
Copy link
Contributor

h-g-s commented Aug 11, 2020 via email

@gt6989b
Copy link
Author

gt6989b commented Aug 11, 2020

Hi, @h-g-s -- what is WSL?

@tkralphs tkralphs transferred this issue from coin-or/python-mip Aug 13, 2020
@tkralphs tkralphs changed the title Python-MIP crashes on Windows, runs ok on Linux Cbc crashes on Windows, runs ok on Linux Aug 13, 2020
@tkralphs
Copy link
Member

@gt6989b Since this is really a Cbc issue and not a Python-MIP issue, I transferred to Cbc and changed the title. We do test Cbc in Windows and I am working in Windows, although it is true that I work mostly with WSL and MSys2 on Windows, not with Visual Studio. WSL is "Windows Subsystem for Linux." See here for the options building Cbc on Windows.

There are binaries built with gcc on Windows (in Msys2) here. You probably want the mingw64 binaries. I believe @h-g-s said they are a drop-in replacement for the Visual Studio ones. You might have more luck with those, since they are built with the same compiler as on Linux.

@gt6989b
Copy link
Author

gt6989b commented Aug 13, 2020

@tkralphs Ted, thank you very much for your help, will try this sometime.

@nick-gorman
Copy link

Hi @h-g-s ,

Could you provide instructions for using the precompiled binaries as a 'drop-in replacement'? For instance, I've installed mip on windows in a venv, do I just need to replace the files in the directory venv\Lib\site-packages\mip\libraries\win64?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants