Matlab crashes with Gurobi
回答済みHi to everyone, any help would be highly appreciated.
I am using Gurobi 9.1.2 and I have tested the following in both Matlab versions 2019b and 2020a in different environments.
I have also tested the following by using Primal and Dual Simplex algorithms. The crash happens only with Primal Simplex or the default method (-1).
I am able to solve small LPs, for instance with LPs with 200 variables and 5 constraints, however Matlab crashes when I am trying bigger LPs (1000 variables and 6 constraints).
-------------------------------------------------------------------------------
Access violation detected at Τετ Μαϊ 26 03:45:06 2021 +0300
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : windows-1253
Deployed : false
Graphics Driver : Unknown hardware
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) UHD Graphics 620 Version 27.20.100.8935 (2020-10-28)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : win64
MATLAB Entitlement ID : 5224002
MATLAB Root : C:\Program Files\MATLAB\R2019b
MATLAB Version : 9.7.0.1586710 (R2019b) Update 8
OpenGL : hardware
Operating System : Microsoft Windows 10 Pro
Process ID : 1304
Processor ID : x86 Family 6 Model 142 Stepping 12, GenuineIntel
Session Key : f6ba0861-9742-40c0-9aee-f8760b51b4ee
Window System : Version 10.0 (Build 19041)
Fault Count: 1
Abnormal termination:
Access violation
Register State (from fault):
RAX = 0000000000000006 RBX = 0000000000000000
RCX = 0000000130728490 RDX = 00000001310b3ba0
RSP = 00000000043f8710 RBP = 00000001310b3d00
RSI = 0000000000000000 RDI = 0000000112460d40
R8 = 0000000000000000 R9 = 0000000112460f00
R10 = 0000000000000000 R11 = 0000000000000000
R12 = 0000000000000000 R13 = 0000000112460f40
R14 = 0000000112461000 R15 = 00000001310b3ba0
RIP = 00007fff3ab2eb4d EFL = 00010246
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00007fff3ab2eb4d C:\gurobi912\win64\bin\gurobi91.dll+00518989 GRBrelaxmodel+00476533
[ 1] 0x00007fff3ab2e324 C:\gurobi912\win64\bin\gurobi91.dll+00516900 GRBrelaxmodel+00474444
[ 2] 0x00007fff3abae268 C:\gurobi912\win64\bin\gurobi91.dll+01041000 GRBrelaxmodel+00998544
[ 3] 0x00007fff3abaf5e3 C:\gurobi912\win64\bin\gurobi91.dll+01045987 GRBrelaxmodel+01003531
[ 4] 0x00007fff3b223ab0 C:\gurobi912\win64\bin\gurobi91.dll+07813808 GRBrelaxmodel+07771352
[ 5] 0x00007fff3b121c0e C:\gurobi912\win64\bin\gurobi91.dll+06757390 GRBrelaxmodel+06714934
[ 6] 0x00007fff7d921732 C:\gurobi912\win64\matlab\gurobi.mexw64+00005938
[ 7] 0x00007fff7d921c75 C:\gurobi912\win64\matlab\gurobi.mexw64+00007285 mexFunction+00000837
[ 8] 0x00000000fc636d66 C:\Program Files\MATLAB\R2019b\bin\win64\libmex.dll+00355686 mexfile::Inspector::needs_upgrade+00012886
[ 9] 0x00000000fc637f4b C:\Program Files\MATLAB\R2019b\bin\win64\libmex.dll+00360267 MexRetrieveVersion+00003339
[ 10] 0x00000000fc6380bc C:\Program Files\MATLAB\R2019b\bin\win64\libmex.dll+00360636 MexRetrieveVersion+00003708
[ 11] 0x00000000fc638224 C:\Program Files\MATLAB\R2019b\bin\win64\libmex.dll+00360996 MexRetrieveVersion+00004068
[ 12] 0x00000000fc61a2c9 C:\Program Files\MATLAB\R2019b\bin\win64\libmex.dll+00238281 mexUnlock_800+00025209
[ 13] 0x000000001bc25f09 bin\win64\pgo\m_dispatcher.dll+00614153 Mfh_file::dispatch_file_common+00000165
[ 14] 0x000000001bc25589 bin\win64\pgo\m_dispatcher.dll+00611721 Mfh_error::lookup+00006517
[ 15] 0x000000001bc25e5d bin\win64\pgo\m_dispatcher.dll+00613981 Mfh_file::dispatch+00000045
[ 16] 0x000000001c9d1653 bin\win64\pgo\m_lxe.dll+00464467
[ 17] 0x000000001cab3e01 bin\win64\pgo\m_lxe.dll+01392129 MathWorks::lxe::StartupLxeEngine+00819453
[ 18] 0x000000001c9cf9cb bin\win64\pgo\m_lxe.dll+00457163
[ 19] 0x000000001cafdfc4 bin\win64\pgo\m_lxe.dll+01695684 MathWorks::lxe::StartupLxeEngine+01123008
[ 20] 0x000000001c9cf440 bin\win64\pgo\m_lxe.dll+00455744
[ 21] 0x000000001c9c47e5 bin\win64\pgo\m_lxe.dll+00411621
[ 22] 0x000000001c9c38fc bin\win64\pgo\m_lxe.dll+00407804
[ 23] 0x000000001cb7657d bin\win64\pgo\m_lxe.dll+02188669 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree>::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree>+00020429
[ 24] 0x000000001c9c36e0 bin\win64\pgo\m_lxe.dll+00407264
[ 25] 0x000000001cb0b84d bin\win64\pgo\m_lxe.dll+01751117 MathWorks::lxe::StartupLxeEngine+01178441
[ 26] 0x000000001bc25f09 bin\win64\pgo\m_dispatcher.dll+00614153 Mfh_file::dispatch_file_common+00000165
[ 27] 0x000000001bc25589 bin\win64\pgo\m_dispatcher.dll+00611721 Mfh_error::lookup+00006517
[ 28] 0x000000001bc25e5d bin\win64\pgo\m_dispatcher.dll+00613981 Mfh_file::dispatch+00000045
[ 29] 0x000000001c9d1c05 bin\win64\pgo\m_lxe.dll+00465925
[ 30] 0x000000001c9d49a0 bin\win64\pgo\m_lxe.dll+00477600
[ 31] 0x000000001c9d107c bin\win64\pgo\m_lxe.dll+00462972
[ 32] 0x000000001cac8bb1 bin\win64\pgo\m_lxe.dll+01477553 MathWorks::lxe::StartupLxeEngine+00904877
[ 33] 0x000000001c9c31dd bin\win64\pgo\m_lxe.dll+00405981
[ 34] 0x000000001c9c545a bin\win64\pgo\m_lxe.dll+00414810
[ 35] 0x000000001c9c633d bin\win64\pgo\m_lxe.dll+00418621
[ 36] 0x000000001c9c5f2f bin\win64\pgo\m_lxe.dll+00417583
[ 37] 0x000000001cad6da0 bin\win64\pgo\m_lxe.dll+01535392 MathWorks::lxe::StartupLxeEngine+00962716
[ 38] 0x000000001c9cea0b bin\win64\pgo\m_lxe.dll+00453131
[ 39] 0x000000001c9c47e5 bin\win64\pgo\m_lxe.dll+00411621
[ 40] 0x000000001c9c38fc bin\win64\pgo\m_lxe.dll+00407804
[ 41] 0x000000001c98e04b bin\win64\pgo\m_lxe.dll+00188491
[ 42] 0x000000001c990213 bin\win64\pgo\m_lxe.dll+00197139
[ 43] 0x000000001c99010a bin\win64\pgo\m_lxe.dll+00196874
[ 44] 0x000000001ca881a8 bin\win64\pgo\m_lxe.dll+01212840 MathWorks::lxe::StartupLxeEngine+00640164
[ 45] 0x000000001ca88156 bin\win64\pgo\m_lxe.dll+01212758 MathWorks::lxe::StartupLxeEngine+00640082
[ 46] 0x000000001e47b7b4 bin\win64\pgo\m_lxe.dll+28424116 MathWorks::lxe::profiler::IMexProfilingSupport::~IMexProfilingSupport+00083224
[ 47] 0x00000000fb61b19c C:\Program Files\MATLAB\R2019b\bin\win64\libmwbridge.dll+00176540 mnParser+00001212
[ 48] 0x000000001ba3d5f7 C:\Program Files\MATLAB\R2019b\bin\win64\mcr.dll+00906743 mcrInstance::releaseThread+00002647
[ 49] 0x000000001b97a0ca C:\Program Files\MATLAB\R2019b\bin\win64\mcr.dll+00106698 mcrOptions::set_use_license_manager+00068938
[ 50] 0x000000001b99a334 C:\Program Files\MATLAB\R2019b\bin\win64\mcr.dll+00238388 mcrOptions::set_use_license_manager+00200628
[ 51] 0x00000000fd02047e C:\Program Files\MATLAB\R2019b\bin\win64\iqm.dll+00590974 iqm::PackagedTaskPlugin::execute+00000878
[ 52] 0x00000000fd020303 C:\Program Files\MATLAB\R2019b\bin\win64\iqm.dll+00590595 iqm::PackagedTaskPlugin::execute+00000499
[ 53] 0x000000001b9e37de C:\Program Files\MATLAB\R2019b\bin\win64\mcr.dll+00538590 mcr::runtime::setInterpreterThreadSingletonToCurrent+00188382
[ 54] 0x00000000fcffca21 C:\Program Files\MATLAB\R2019b\bin\win64\iqm.dll+00444961 iqm::Iqm::setupIqmFcnPtrs+00101969
[ 55] 0x00000000fcfd3ab7 C:\Program Files\MATLAB\R2019b\bin\win64\iqm.dll+00277175 iqm::Iqm::create+00009159
[ 56] 0x00000000fcfd326d C:\Program Files\MATLAB\R2019b\bin\win64\iqm.dll+00275053 iqm::Iqm::create+00007037
[ 57] 0x000000001b9c120f C:\Program Files\MATLAB\R2019b\bin\win64\mcr.dll+00397839 mcr::runtime::setInterpreterThreadSingletonToCurrent+00047631
[ 58] 0x000000001b9c17fe C:\Program Files\MATLAB\R2019b\bin\win64\mcr.dll+00399358 mcr::runtime::setInterpreterThreadSingletonToCurrent+00049150
[ 59] 0x000000001b9c040c C:\Program Files\MATLAB\R2019b\bin\win64\mcr.dll+00394252 mcr::runtime::setInterpreterThreadSingletonToCurrent+00044044
[ 60] 0x000000001ba827d6 C:\Program Files\MATLAB\R2019b\bin\win64\mcr.dll+01189846 mcr::mvm::detail::activateMcr+00016598
[ 61] 0x000000001b8b0dbf C:\Program Files\MATLAB\R2019b\bin\win64\MVMLocal.dll+00396735 mvm_server::inproc::LocalFactory::terminate+00187135
[ 62] 0x00000000fa9e7c10 C:\Program Files\MATLAB\R2019b\bin\win64\mvm.dll+01801232 mvm::detail::SessionImpl::initWithOptions+00000736
[ 63] 0x00000000fa9e8941 C:\Program Files\MATLAB\R2019b\bin\win64\mvm.dll+01804609 mvm::detail::SessionImpl::runMain+00000081
[ 64] 0x00000000fa9e8bc7 C:\Program Files\MATLAB\R2019b\bin\win64\mvm.dll+01805255 mvm::detail::SessionImpl::runMatlabDesktop+00000279
[ 65] 0x000000014000782c C:\Program Files\MATLAB\R2019b\bin\win64\MATLAB.exe+00030764 mwboost::serialization::singleton_module::unlock+00001180
[ 66] 0x000000014000870a C:\Program Files\MATLAB\R2019b\bin\win64\MATLAB.exe+00034570 mwboost::serialization::singleton_module::unlock+00004986
[ 67] 0x00007fffbd347034 C:\WINDOWS\System32\KERNEL32.DLL+00094260 BaseThreadInitThunk+00000020
[ 68] 0x00007fffbf302651 C:\WINDOWS\SYSTEM32\ntdll.dll+00337489 RtlUserThreadStart+00000033
This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files.
Thank you in advance for any assist!
-
正式なコメント
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Thanks for reporting this. I'll open a ticket for you in our online support portal so we can investigate further.
0 -
Hi Greg,
Gurobi 9.5 was recently released. Included in this release is a fix for the bug you observed. Using Gurobi 9.5, your model runs as expected with the default Method=-1 and Method=0.
We hope this fix works well for you. Thank you for reporting this bug and please let us know if you find any other issues in the future.
Best regards,
Maliheh
1
投稿コメントは受け付けていません。
コメント
3件のコメント