Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.

 View Only
Expand all | Collapse all

CPLEX causing Matlab (9.1) R2016b crash

  • 1.  CPLEX causing Matlab (9.1) R2016b crash

    Posted Wed September 21, 2016 04:59 PM

    Originally posted by: RayZ


    I just upgraded to Matlab R2016b (Matlab 9.1) on my Mac (macOS Sierra 10.12) and CPLEX is now causing a Matlab crash, even when just calling getVersion. The follow code still works just fine under Matlab 9.0, but under 9.1 I get ...

     

    >> cplex = Cplex('null');

    >> cplex.getVersion

    Attempt to restart MATLAB? [y or n]>>

     

    Is there a new version of the Matlab interface for CPLEX that is compatible with Matlab R2016b?


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: CPLEX causing Matlab (9.1) R2016b crash

    Posted Wed September 21, 2016 05:55 PM

    No, not at this time (see the detailed system requirements here).  See also, this related thread.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: CPLEX causing Matlab (9.1) R2016b crash

    Posted Thu September 22, 2016 02:03 PM

    Originally posted by: RayZ


    Ok, according to the detailed system requirements page, unless I'm missing something, CPLEX only supports OS X versions 10.7 and 10.8 (released in 2011 and 2012, respectively!) with Matlab R2011a - R2013a. I've been using it on OS X 10.9-10.12 and Matlab versions up through R2016a with no problems.

    Just to clarify, are you saying that the current version of CPLEX is only officially supported on a 3 yr old version of Matlab running on a 4 yr old version of OS X?

    In any case, please consider this a request to release a CPLEX 12.6.4 that supports current Matlab and macOS versions.

    Thanks.


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: CPLEX causing Matlab (9.1) R2016b crash

    Posted Tue December 06, 2016 10:55 AM

    Originally posted by: RayZ


    UPDATE: The original post was related to CPLEX 12.6.3. This is just to report that the problem still exists with CPLEX 12.7.0.

    According to the links provided in the reply from rkersh, the officially supported OS and Matlab versions have been updated, but unfortunately not to the current versions.

    Supported OS versions include OS X Yosemite 10.10 and El Capitan 10.11, but do not include the current macOS Sierra 10.12. Similarly for Matlab, the supported versions include R2014b (8.4) through R2016a (9.0), but do not include the current R2016b (9.1).

    So, my request for a version of CPLEX that works with current versions of macOS and Matlab still stands.


    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: CPLEX causing Matlab (9.1) R2016b crash

    Posted Tue December 06, 2016 02:17 PM

    We're well aware that the issue with R2016b still exists with CPLEX 12.7, and we're working on this.


    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: CPLEX causing Matlab (9.1) R2016b crash

    Posted Tue April 25, 2017 05:46 AM

    Originally posted by: Laci Ladanyi


    Just an update: cplex 12.7.1 is supposed to work with R2016b (and R2017a). At least all our internal tests pass :-).


    #CPLEXOptimizers
    #DecisionOptimization


  • 7.  Re: CPLEX causing Matlab (9.1) R2016b crash

    Posted Fri June 23, 2017 02:58 AM

    Originally posted by: arnyeinstein


    Hi 

    I am using 12.7.1 and Matlab 2017a. Matlab still crashes sometimes (I haven't found the reason why it only sometimes crashes. The crash dump points to 12.7.1

    Cheers

    Renger


    ------------------------------------------------------------------------
              Access violation detected at Thu Jun 22 17:18:59 2017
    ------------------------------------------------------------------------

    Configuration:
      Crash Decoding      : Disabled - No sandbox or build area path
      Crash Mode          : continue (default)
      Current Graphics Driver: Unknown software 
      Default Encoding    : windows-1252
      Deployed            : false
      Graphics card 1     : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics 520 Version 21.20.16.4590
      Host Name           : T460s
      MATLAB Architecture : win64
      MATLAB Entitlement ID: 1833007
      MATLAB Root         : C:\Program Files\MATLAB\R2017a
      MATLAB Version      : 9.2.0.538062 (R2017a)
      OpenGL              : software
      Operating System    : Microsoft Windows 10 Pro
      Processor ID        : x86 Family 6 Model 78 Stepping 3, GenuineIntel
      Virtual Machine     : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
      Window System       : Version 10.0 (Build 15063)

    Fault Count: 1


    Abnormal termination:
    Access violation

    Register State (from fault):
      RAX = 000000004b4f92f0  RBX = 000000004b4f8410
      RCX = 000000004b4f92f0  RDX = 0000000000000000
      RSP = 00000000043f8570  RBP = 00000000043f8b91
      RSI = 00000000043f99b0  RDI = 000000007df7e750
     
       R8 = 000000000c1fbc80   R9 = 000000004b4f9c20
      R10 = 000000004b4f8000  R11 = 00007ffd05769f10
      R12 = 00000000043f8af8  R13 = 0000000000000000
      R14 = 0000000000000000  R15 = 00000000043f8af0
     
      RIP = 00007ffd31ac2d5e  EFL = 00010206
     
       CS = 0033   FS = 0053   GS = 002b

    Stack Trace (from fault):
    [  0] 0x00007ffd31ac2d5e C:\Program Files\IBM\ILOG\CPLEX_Studio1271\cplex\matlab\x64_win64\cplexlink1271.mexw64+00011614 mexFunction+00000910
    [  1] 0x00000000fc5fd8c9                               bin\win64\libmex.dll+00121033 mexRunMexFile+00000313
    [  2] 0x00000000fc5fc4f2                               bin\win64\libmex.dll+00115954 mexFeature_mexver+00002130
    [  3] 0x00000000fc5fb306                               bin\win64\libmex.dll+00111366 mexUnlock+00023430
    [  4] 0x00000000081e44d4                     bin\win64\pgo\m_dispatcher.dll+00017620 Mfh_file::dispatch_fh_impl+00000820
    [  5] 0x00000000081e4196                     bin\win64\pgo\m_dispatcher.dll+00016790 Mfh_file::dispatch_fh+00000062
    [  6] 0x00000000081e98fd                     bin\win64\pgo\m_dispatcher.dll+00039165 Mfunction_handle::dispatch+00001037
    [  7] 0x0000000008eeaadd                            bin\win64\pgo\m_lxe.dll+00240349
    [  8] 0x0000000008ec95d7                            bin\win64\pgo\m_lxe.dll+00103895
    [  9] 0x0000000008ec85c0                            bin\win64\pgo\m_lxe.dll+00099776
    [ 10] 0x0000000008ed004a                            bin\win64\pgo\m_lxe.dll+00131146
    [ 11] 0x0000000008ecf7d0                            bin\win64\pgo\m_lxe.dll+00128976
    [ 12] 0x0000000008fa8caf                            bin\win64\pgo\m_lxe.dll+01019055 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<boost::shared_ptr<MathWorks::lxe::MatlabIrTree>,std::allocator<boost::shared_ptr<MathWorks::lxe::MatlabIrTree> > > > >::get_instance+00029043
    [ 13] 0x0000000008fa8e1f                            bin\win64\pgo\m_lxe.dll+01019423 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<boost::shared_ptr<MathWorks::lxe::MatlabIrTree>,std::allocator<boost::shared_ptr<MathWorks::lxe::MatlabIrTree> > > > >::get_instance+00029411
    [ 14] 0x0000000008fa8db1                            bin\win64\pgo\m_lxe.dll+01019313 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<boost::shared_ptr<MathWorks::lxe::MatlabIrTree>,std::allocator<boost::shared_ptr<MathWorks::lxe::MatlabIrTree> > > > >::get_instance+00029301
    [ 15] 0x00000000081e44d4                     bin\win64\pgo\m_dispatcher.dll+00017620 Mfh_file::dispatch_fh_impl+00000820
    [ 16] 0x00000000081e4196                     bin\win64\pgo\m_dispatcher.dll+00016790 Mfh_file::dispatch_fh+00000062
    [ 17] 0x00000000081e98fd                     bin\win64\pgo\m_dispatcher.dll+00039165 Mfunction_handle::dispatch+00001037
    [ 18] 0x0000000008ee8cea                            bin\win64\pgo\m_lxe.dll+00232682
    [ 19] 0x00000000090781bb                            bin\win64\pgo\m_lxe.dll+01868219 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00366027
    [ 20] 0x0000000008ed26c9                            bin\win64\pgo\m_lxe.dll+00141001
    [ 21] 0x0000000008ed32f3                            bin\win64\pgo\m_lxe.dll+00144115
    [ 22] 0x0000000008ed474c                            bin\win64\pgo\m_lxe.dll+00149324
    [ 23] 0x0000000008ed5288                            bin\win64\pgo\m_lxe.dll+00152200
    [ 24] 0x0000000008ed498f                            bin\win64\pgo\m_lxe.dll+00149903
    [ 25] 0x0000000008ec8c4b                            bin\win64\pgo\m_lxe.dll+00101451
    [ 26] 0x0000000008ed004a                            bin\win64\pgo\m_lxe.dll+00131146
    [ 27] 0x0000000008ecf7d0                            bin\win64\pgo\m_lxe.dll+00128976
    [ 28] 0x0000000008fa8caf                            bin\win64\pgo\m_lxe.dll+01019055 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<boost::shared_ptr<MathWorks::lxe::MatlabIrTree>,std::allocator<boost::shared_ptr<MathWorks::lxe::MatlabIrTree> > > > >::get_instance+00029043
    [ 29] 0x0000000008fa8e1f                            bin\win64\pgo\m_lxe.dll+01019423 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<boost::shared_ptr<MathWorks::lxe::MatlabIrTree>,std::allocator<boost::shared_ptr<MathWorks::lxe::MatlabIrTree> > > > >::get_instance+00029411
    [ 30] 0x0000000008fa8db1                            bin\win64\pgo\m_lxe.dll+01019313 boost::serialization::singleton<boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<boost::shared_ptr<MathWorks::lxe::MatlabIrTree>,std::allocator<boost::shared_ptr<MathWorks::lxe::MatlabIrTree> > > > >::get_instance+00029301
    [ 31] 0x00000000081e44d4                     bin\win64\pgo\m_dispatcher.dll+00017620 Mfh_file::dispatch_fh_impl+00000820
    [ 32] 0x00000000081e4196                     bin\win64\pgo\m_dispatcher.dll+00016790 Mfh_file::dispatch_fh+00000062
    [ 33] 0x00000000081e98fd                     bin\win64\pgo\m_dispatcher.dll+00039165 Mfunction_handle::dispatch+00001037
    [ 34] 0x0000000008ee8cea                            bin\win64\pgo\m_lxe.dll+00232682
    [ 35] 0x00000000090781bb                            bin\win64\pgo\m_lxe.dll+01868219 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00366027
    [ 36] 0x0000000008ed26c9                            bin\win64\pgo\m_lxe.dll+00141001
    [ 37] 0x0000000008ed32f3                            bin\win64\pgo\m_lxe.dll+00144115
    [ 38] 0x0000000008ed474c                            bin\win64\pgo\m_lxe.dll+00149324
    [ 39] 0x0000000008ed5288                            bin\win64\pgo\m_lxe.dll+00152200
    [ 40] 0x0000000008ed498f                            bin\win64\pgo\m_lxe.dll+00149903
    [ 41] 0x0000000008ec8c4b                            bin\win64\pgo\m_lxe.dll+00101451
    [ 42] 0x0000000008ed004a                            bin\win64\pgo\m_lxe.dll+00131146
    [ 43] 0x0000000008ecf7d0                            bin\win64\pgo\m_lxe.dll+00128976
    [ 44] 0x0000000009025d0f                            bin\win64\pgo\m_lxe.dll+01531151 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00028959
    [ 45] 0x00000000090252d3                            bin\win64\pgo\m_lxe.dll+01528531 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00026339
    [ 46] 0x00000000090251b9                            bin\win64\pgo\m_lxe.dll+01528249 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00026057
    [ 47] 0x00000000090b0ea9                            bin\win64\pgo\m_lxe.dll+02100905 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,MathWorks::lxe::MatlabIrTree>::load_object_data+00015609
    [ 48] 0x00000000090b0e32                            bin\win64\pgo\m_lxe.dll+02100786 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,MathWorks::lxe::MatlabIrTree>::load_object_data+00015490
    [ 49] 0x00000000090230dd                            bin\win64\pgo\m_lxe.dll+01519837 boost::archive::detail::iserializer<boost::archive::binaryTerm_iarchive,std::vector<MathWorks::lxe::MatlabIrTree * __ptr64,std::allocator<MathWorks::lxe::MatlabIrTree * __ptr64> > >::load_object_data+00017645
    [ 50] 0x00000000084cd0cb                    bin\win64\pgo\m_interpreter.dll+00446667 inEvalCmdWithLocalReturn+00000063
    [ 51] 0x00000000fb60923d                          bin\win64\libmwbridge.dll+00102973 mnGetPrompt+00013165
    [ 52] 0x00000000fb60a2f3                          bin\win64\libmwbridge.dll+00107251 mnParser+00001107
    [ 53] 0x00000000080975f1                                  bin\win64\mcr.dll+00226801 mcr::runtime::setInterpreterThreadSingletonToCurrent+00027889
    [ 54] 0x00000000080964e7                                  bin\win64\mcr.dll+00222439 mcr::runtime::setInterpreterThreadSingletonToCurrent+00023527
    [ 55] 0x0000000008096563                                  bin\win64\mcr.dll+00222563 mcr::runtime::setInterpreterThreadSingletonToCurrent+00023651
    [ 56] 0x0000000008096e81                                  bin\win64\mcr.dll+00224897 mcr::runtime::setInterpreterThreadSingletonToCurrent+00025985
    [ 57] 0x00000000fd01e647                                  bin\win64\iqm.dll+00583239 iqm::UserEvalPlugin::pre+00030695
    [ 58] 0x00000000fd02af8c                                  bin\win64\iqm.dll+00634764 iqm::UserEvalPlugin::pre+00082220
    [ 59] 0x00000000fd018770                                  bin\win64\iqm.dll+00558960 iqm::UserEvalPlugin::pre+00006416
    [ 60] 0x00000000fd02de9a                                  bin\win64\iqm.dll+00646810 iqm::UserEvalPlugin::pre+00094266
    [ 61] 0x00000000fcffad17                                  bin\win64\iqm.dll+00437527 iqm::PackagedTaskPlugin::PackagedTaskPlugin+00000727
    [ 62] 0x00000000fcffb36f                                  bin\win64\iqm.dll+00439151 iqm::PackagedTaskPlugin::execute+00000575
    [ 63] 0x00000000fcffad89                                  bin\win64\iqm.dll+00437641 iqm::PackagedTaskPlugin::PackagedTaskPlugin+00000841
    [ 64] 0x00000000fcffb1e4                                  bin\win64\iqm.dll+00438756 iqm::PackagedTaskPlugin::execute+00000180
    [ 65] 0x00000000fcfd111a                                  bin\win64\iqm.dll+00266522 iqm::Iqm::setupIqmFcnPtrs+00072250
    [ 66] 0x00000000fcfd0ff3                                  bin\win64\iqm.dll+00266227 iqm::Iqm::setupIqmFcnPtrs+00071955
    [ 67] 0x00000000fcfb7b95                                  bin\win64\iqm.dll+00162709 iqm::Iqm::deliver+00003349
    [ 68] 0x00000000fcfb8815                                  bin\win64\iqm.dll+00165909 iqm::Iqm::deliver+00006549
    [ 69] 0x0000000180106383                        bin\win64\libmwservices.dll+01074051 services::system_events::PpeDispatchHook::dispatchOne+00019811
    [ 70] 0x000000018010abe3                        bin\win64\libmwservices.dll+01092579 sysq::addProcessPendingEventsUnitTestHook+00002099
    [ 71] 0x000000018010add0                        bin\win64\libmwservices.dll+01093072 sysq::addProcessPendingEventsUnitTestHook+00002592
    [ 72] 0x000000018010c095                        bin\win64\libmwservices.dll+01097877 sysq::getCondition+00003269
    [ 73] 0x000000018010cf8f                        bin\win64\libmwservices.dll+01101711 svWS_ProcessPendingEvents+00000287
    [ 74] 0x000000000809795e                                  bin\win64\mcr.dll+00227678 mcr::runtime::setInterpreterThreadSingletonToCurrent+00028766
    [ 75] 0x0000000008098046                                  bin\win64\mcr.dll+00229446 mcr::runtime::setInterpreterThreadSingletonToCurrent+00030534
    [ 76] 0x000000000808e832                                  bin\win64\mcr.dll+00190514 mcr_process_events+00010210
    [ 77] 0x0000000008090782                                  bin\win64\mcr.dll+00198530 mcr_process_events+00018226
    [ 78] 0x0000000007f7c21e                             bin\win64\MVMLocal.dll+00246302 mvm_server::inproc::LocalFactory::terminate+00073982
    [ 79] 0x00000000fa95a3d9                                  bin\win64\mvm.dll+01221593 mvm::detail::initLocalMvmHack+00000521
    [ 80] 0x00000000fa95ab25                                  bin\win64\mvm.dll+01223461 mvm::detail::SessionImpl::privateSession+00000533
    [ 81] 0x00000000fa95ad31                                  bin\win64\mvm.dll+01223985 mvm::detail::SessionImpl::privateSession+00001057
    [ 82] 0x0000000140006fd5                               bin\win64\MATLAB.exe+00028629
    [ 83] 0x0000000140007661                               bin\win64\MATLAB.exe+00030305
    [ 84] 0x00007ffd3c702774                   C:\WINDOWS\System32\KERNEL32.DLL+00075636 BaseThreadInitThunk+00000020
    [ 85] 0x00007ffd3f200d61                      C:\WINDOWS\SYSTEM32\ntdll.dll+00462177 RtlUserThreadStart+00000033


    #CPLEXOptimizers
    #DecisionOptimization


  • 8.  Re: CPLEX causing Matlab (9.1) R2016b crash

    Posted Mon July 03, 2017 12:31 PM

    Do you have a (preferably small) matlab program to reproduce this crash?


    #CPLEXOptimizers
    #DecisionOptimization


  • 9.  Re: CPLEX causing Matlab (9.1) R2016b crash

    Posted Tue November 21, 2017 09:31 AM

    Originally posted by: finnm


    I have MATLAB R2017b and it crashed with the same error in A LOT of cases. Basically every functioncall with an argument, but also when you try to view deeper parts of the cplex object. Easiest way to reproduce the error:

    options = cplexoptimset('MaxNodes', 400);

    However this works

    options = cplexoptimset

    options.MaxNodes = 400 

     

    Will there be new Versions of the  MATLAB APIs?

     


    ------------------------------------------------------------------------
              Access violation detected at Tue Nov 21 15:23:59 2017
    ------------------------------------------------------------------------

    Configuration:
      Crash Decoding      : Disabled - No sandbox or build area path
      Crash Mode          : continue (default)
      Current Graphics Driver: Unknown hardware 
      Default Encoding    : windows-1252
      Deployed            : false
      Graphics card 1     : NVIDIA ( 0x10de ) NVIDIA Quadro FX 370 Version 21.21.13.4201 (2016-11-14)
      Host Name           : DESKTOP
      MATLAB Architecture : win64
      MATLAB Entitlement ID: 1218982
      MATLAB Root         : C:\Program Files\MATLAB\R2017b
      MATLAB Version      : 9.3.0.713579 (R2017b)
      OpenGL              : hardware
      Operating System    : Microsoft Windows 10 Enterprise
      Processor ID        : x86 Family 6 Model 23 Stepping 10, GenuineIntel
      Virtual Machine     : Java 1.8.0_121-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
      Window System       : Version 10.0 (Build 15063)

    Fault Count: 1


    Abnormal termination:
    Access violation


    #CPLEXOptimizers
    #DecisionOptimization


  • 10.  Re: CPLEX causing Matlab (9.1) R2016b crash

    Posted Thu November 23, 2017 02:40 AM

    The crash reported earlier here seems to be exactly the same as in https://www.ibm.com/developerworks/community/forums/html/topic?id=79772c01-f545-44ef-9543-257197f1d9e7. This one will be fixed in 12.8.

    I cannot tell for the crash reported by finnm since it does not provide a stack trace.


    #CPLEXOptimizers
    #DecisionOptimization