Cbc icon indicating copy to clipboard operation
Cbc copied to clipboard

Cbc crashes on Windows, runs ok on Linux

Open gt6989b opened this issue 5 years ago • 5 comments

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

gt6989b avatar Aug 11 '20 18:08 gt6989b

Hi,

Yes, we are aware of some instabilities on windows.

I don't think that there is one active Cbc developer working on windows currently, so I don't have any hope that this will improve soon.

Maybe use Python in WSL would be a solution ?

Cheers

--

Haroldo Gambini Santos Department of Computer Science Universidade Federal de Ouro Preto - UFOP email: [email protected] home/research page: www.decom.ufop.br/haroldo

On Tue, 11 Aug 2020, gt6989b wrote:

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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.[AB4VZOV44X7PKQJICVHMWZ3SAGFMPA5CNFSM4P3LTXBKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4KC3YV5A.gif]

h-g-s avatar Aug 11 '20 18:08 h-g-s

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

gt6989b avatar Aug 11 '20 19:08 gt6989b

@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.

tkralphs avatar Aug 13 '20 17:08 tkralphs

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

gt6989b avatar Aug 13 '20 17:08 gt6989b

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?

nick-gorman avatar Nov 16 '20 01:11 nick-gorman