Matlab crash related to Refprop
    7 views (last 30 days)
  
       Show older comments
    
Dear all,
    actually I'm having a trouble with Matlab, when using the additional Refprop package. Sometimes, randomly, Matlab crashes when recalling Refprop function. It is a very random situation. The same code may run correctly 4 times, and then crash 2 times. I really can't understand the reason, I contacted Matlab support without getting a result, since it was told me to contact Nist. Nist told me to contact Matlab support....
The following Crash report is obtained:
MATLAB crash file:C:\Users\gzzncl\AppData\Local\Temp\matlab_crash_dump.23612-1:
--------------------------------------------------------------------------------
          Access violation detected at ven apr 10 03:52:51 2020 +0200
--------------------------------------------------------------------------------
Configuration:
  Crash Decoding           : Disabled - No sandbox or build area path
  Crash Mode               : continue (default)
  Default Encoding         : windows-1252
  Deployed                 : false
  Graphics Driver          : Unknown hardware 
  Graphics card 1          : Citrix Systems Inc. ( 0x5853 ) Citrix Indirect Display Adapter Version 12.40.44.247 (2019-1-23)
  Graphics card 2          : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics 4000 Version 10.18.10.5129 (2020-1-21)
  Graphics card 3          : NVIDIA ( 0x10de ) NVIDIA GeForce 610M Version 23.21.13.8857 (2017-12-4)
  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    : 1849657
  MATLAB Root              : C:\Program Files\MATLAB\R2019b
  MATLAB Version           : 9.7.0.1296695 (R2019b) Update 4
  OpenGL                   : hardware
  Operating System         : Microsoft Windows 10 Home
  Process ID               : 23612
  Processor ID             : x86 Family 6 Model 58 Stepping 9, GenuineIntel
  Session Key              : 91b1c5d2-5164-44bb-a4c9-972aaad00ece
  Window System            : Version 10.0 (Build 18363)
Fault Count: 1
Abnormal termination:
Access violation
Register State (from fault):
  RAX = 6f7263732d74696b  RBX = 00000000c4ea8e8c
  RCX = 00000000c4ea7b00  RDX = 00000000b8444500
  RSP = 00000000043f4d28  RBP = 0000000004a50160
  RSI = 0000000004a50160  RDI = 000000017d2ebfa0
   R8 = 00000000000000ff   R9 = 0000000000000004
  R10 = 72742d7261626c6c  R11 = 00000000c4ea7aa0
  R12 = 0000000004d87210  R13 = 0000000004d870b0
  R14 = 0000000004d86f90  R15 = 0000000004a4ed30
  RIP = 00000000c192e2e0  EFL = 00010202
   CS = 0033   FS = 0053   GS = 002b
Stack Trace (from fault):
[  0] 0x00000000c192e2e0 C:\WINDOWS\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9619_none_08e065a3a84109b0\MSVCR90.dll+00123616 memmove+00000176
[  1] 0x00000000c4c921a8        C:\Program Files (x86)\REFPROP\REFPRP64.DLL+00401832 PASSCMN+00075864
[  2] 0x00007ff875b05ac1 C:\Program Files (x86)\REFPROP\REFPRP64_thunk_pcwin64.dll+00023233 voidvoidPtrcstringcstringcstringvoidPtrcstringint32int32int32int32Thunk+00000465
[  3] 0x000000001020f5fd C:\Program Files\MATLAB\R2019b\bin\win64\libmwcli.dll+00062973
[  4] 0x0000000010213a6b C:\Program Files\MATLAB\R2019b\bin\win64\libmwcli.dll+00080491 mwboost::serialization::singleton_module::get_lock+00000555
[  5] 0x0000000010233223 C:\Program Files\MATLAB\R2019b\bin\win64\libmwcli.dll+00209443 PointerMapSize+00102067
[  6] 0x00000000102346dd C:\Program Files\MATLAB\R2019b\bin\win64\libmwcli.dll+00214749 PointerMapSize+00107373
[  7] 0x00000000101e1208 C:\Program Files\MATLAB\R2019b\bin\win64\builtins\ml_external_interfaces\mwlibmwcli_builtinimpl.dll+00004616 us_set_bundle_context_instance_com_mathworks_cli_builtinimpl+00000040
[  8] 0x000000001bb2eb25                     bin\win64\pgo\m_dispatcher.dll+00125733 Mfh_MATLAB_fn_impl::dispatch_mf_with_reuse+00000137
[  9] 0x000000001bb1ed82                     bin\win64\pgo\m_dispatcher.dll+00060802 AutoPushingExecutionFrame::~AutoPushingExecutionFrame+00000770
[ 10] 0x000000001bb1e1ad                     bin\win64\pgo\m_dispatcher.dll+00057773 Mfh_MATLAB_fn_impl::dispatch+00000045
[ 11] 0x000000001c9651e3                            bin\win64\pgo\m_lxe.dll+00283107
[ 12] 0x000000001ca6a205                            bin\win64\pgo\m_lxe.dll+01352197 mwboost::archive::detail::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>+00478701
[ 13] 0x000000001c96355b                            bin\win64\pgo\m_lxe.dll+00275803
[ 14] 0x000000001c9619f3                            bin\win64\pgo\m_lxe.dll+00268787
[ 15] 0x000000001c958355                            bin\win64\pgo\m_lxe.dll+00230229
[ 16] 0x000000001c95746c                            bin\win64\pgo\m_lxe.dll+00226412
[ 17] 0x000000001c972f11                            bin\win64\pgo\m_lxe.dll+00339729
[ 18] 0x000000001c957270                            bin\win64\pgo\m_lxe.dll+00225904
[ 19] 0x000000001c956d9c                            bin\win64\pgo\m_lxe.dll+00224668
[ 20] 0x000000001bb1f3a0                     bin\win64\pgo\m_dispatcher.dll+00062368 AutoPushingExecutionFrame::~AutoPushingExecutionFrame+00002336
[ 21] 0x000000001bb1ea2d                     bin\win64\pgo\m_dispatcher.dll+00059949 Mfh_file::dispatch_with_reuse+00000045
[ 22] 0x000000001c96689b                            bin\win64\pgo\m_lxe.dll+00288923
[ 23] 0x000000001c963c62                            bin\win64\pgo\m_lxe.dll+00277602
[ 24] 0x000000001ca3ebc1                            bin\win64\pgo\m_lxe.dll+01174465 mwboost::archive::detail::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>+00300969
[ 25] 0x000000001ca3ea7b                            bin\win64\pgo\m_lxe.dll+01174139 mwboost::archive::detail::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>+00300643
[ 26] 0x000000001ca3e9d7                            bin\win64\pgo\m_lxe.dll+01173975 mwboost::archive::detail::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>+00300479
[ 27] 0x000000001ca3e5bb                            bin\win64\pgo\m_lxe.dll+01172923 mwboost::archive::detail::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>+00299427
[ 28] 0x000000001c964c0c                            bin\win64\pgo\m_lxe.dll+00281612
[ 29] 0x000000001cacfc09                            bin\win64\pgo\m_lxe.dll+01768457 MathWorks::lxe::StartupLxeEngine+00220181
[ 30] 0x000000001c956d4d                            bin\win64\pgo\m_lxe.dll+00224589
[ 31] 0x000000001c958fca                            bin\win64\pgo\m_lxe.dll+00233418
[ 32] 0x000000001c959ecd                            bin\win64\pgo\m_lxe.dll+00237261
[ 33] 0x000000001c959abf                            bin\win64\pgo\m_lxe.dll+00236223
[ 34] 0x000000001caa4ab0                            bin\win64\pgo\m_lxe.dll+01591984 MathWorks::lxe::StartupLxeEngine+00043708
[ 35] 0x000000001c962592                            bin\win64\pgo\m_lxe.dll+00271762
[ 36] 0x000000001c958355                            bin\win64\pgo\m_lxe.dll+00230229
[ 37] 0x000000001c95746c                            bin\win64\pgo\m_lxe.dll+00226412
[ 38] 0x000000001c972f11                            bin\win64\pgo\m_lxe.dll+00339729
[ 39] 0x000000001c957270                            bin\win64\pgo\m_lxe.dll+00225904
[ 40] 0x000000001c956d9c                            bin\win64\pgo\m_lxe.dll+00224668
[ 41] 0x000000001bb1f3a0                     bin\win64\pgo\m_dispatcher.dll+00062368 AutoPushingExecutionFrame::~AutoPushingExecutionFrame+00002336
[ 42] 0x000000001bb1ea2d                     bin\win64\pgo\m_dispatcher.dll+00059949 Mfh_file::dispatch_with_reuse+00000045
[ 43] 0x000000001c96689b                            bin\win64\pgo\m_lxe.dll+00288923
[ 44] 0x000000001c963c62                            bin\win64\pgo\m_lxe.dll+00277602
[ 45] 0x000000001ca3ebc1                            bin\win64\pgo\m_lxe.dll+01174465 mwboost::archive::detail::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>+00300969
[ 46] 0x000000001ca3ea7b                            bin\win64\pgo\m_lxe.dll+01174139 mwboost::archive::detail::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>+00300643
[ 47] 0x000000001ca3e9d7                            bin\win64\pgo\m_lxe.dll+01173975 mwboost::archive::detail::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>+00300479
[ 48] 0x000000001ca3e5bb                            bin\win64\pgo\m_lxe.dll+01172923 mwboost::archive::detail::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>+00299427
[ 49] 0x000000001c964c0c                            bin\win64\pgo\m_lxe.dll+00281612
[ 50] 0x000000001cacfc09                            bin\win64\pgo\m_lxe.dll+01768457 MathWorks::lxe::StartupLxeEngine+00220181
[ 51] 0x000000001c956d4d                            bin\win64\pgo\m_lxe.dll+00224589
[ 52] 0x000000001c958fca                            bin\win64\pgo\m_lxe.dll+00233418
[ 53] 0x000000001c959ecd                            bin\win64\pgo\m_lxe.dll+00237261
[ 54] 0x000000001c959abf                            bin\win64\pgo\m_lxe.dll+00236223
[ 55] 0x000000001caa4ab0                            bin\win64\pgo\m_lxe.dll+01591984 MathWorks::lxe::StartupLxeEngine+00043708
[ 56] 0x000000001c962592                            bin\win64\pgo\m_lxe.dll+00271762
[ 57] 0x000000001c958355                            bin\win64\pgo\m_lxe.dll+00230229
[ 58] 0x000000001c95746c                            bin\win64\pgo\m_lxe.dll+00226412
[ 59] 0x000000001cb365b5                            bin\win64\pgo\m_lxe.dll+02188725 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree>::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree>+00021997
[ 60] 0x000000001c957250                            bin\win64\pgo\m_lxe.dll+00225872
[ 61] 0x000000001cacf371                            bin\win64\pgo\m_lxe.dll+01766257 MathWorks::lxe::StartupLxeEngine+00217981
[ 62] 0x000000001bba5f2d                     bin\win64\pgo\m_dispatcher.dll+00614189 Mfh_file::dispatch_file_common+00000165
[ 63] 0x000000001bba55ad                     bin\win64\pgo\m_dispatcher.dll+00611757 Mfh_error::lookup+00006517
[ 64] 0x000000001bba5e81                     bin\win64\pgo\m_dispatcher.dll+00614017 Mfh_file::dispatch+00000045
[ 65] 0x000000001c965795                            bin\win64\pgo\m_lxe.dll+00284565
[ 66] 0x000000001c968530                            bin\win64\pgo\m_lxe.dll+00296240
[ 67] 0x000000001c964c0c                            bin\win64\pgo\m_lxe.dll+00281612
[ 68] 0x000000001ca8929d                            bin\win64\pgo\m_lxe.dll+01479325 mwboost::archive::detail::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>+00605829
[ 69] 0x000000001c96355b                            bin\win64\pgo\m_lxe.dll+00275803
[ 70] 0x000000001cac52f4                            bin\win64\pgo\m_lxe.dll+01725172 MathWorks::lxe::StartupLxeEngine+00176896
[ 71] 0x000000001c962fd0                            bin\win64\pgo\m_lxe.dll+00274384
[ 72] 0x000000001c958355                            bin\win64\pgo\m_lxe.dll+00230229
[ 73] 0x000000001c95746c                            bin\win64\pgo\m_lxe.dll+00226412
[ 74] 0x000000001ca49957                            bin\win64\pgo\m_lxe.dll+01218903 mwboost::archive::detail::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>+00345407
[ 75] 0x000000001ca49837                            bin\win64\pgo\m_lxe.dll+01218615 mwboost::archive::detail::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>+00345119
[ 76] 0x000000001ca4972e                            bin\win64\pgo\m_lxe.dll+01218350 mwboost::archive::detail::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>+00344854
[ 77] 0x000000001ca4a17c                            bin\win64\pgo\m_lxe.dll+01220988 mwboost::archive::detail::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>+00347492
[ 78] 0x000000001ca4a12a                            bin\win64\pgo\m_lxe.dll+01220906 mwboost::archive::detail::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>::oserializer<mwboost::archive::binary_oarchive,foundation::msg_svc::eventmgr::BaseEvent>+00347410
[ 79] 0x000000001e43e020                            bin\win64\pgo\m_lxe.dll+28434464 MathWorks::lxe::profiler::IMexProfilingSupport::~IMexProfilingSupport+00083224
[ 80] 0x00000000fb61b19c C:\Program Files\MATLAB\R2019b\bin\win64\libmwbridge.dll+00176540 mnParser+00001212
[ 81] 0x000000001b9ad5f7   C:\Program Files\MATLAB\R2019b\bin\win64\mcr.dll+00906743 mcrInstance::releaseThread+00002647
[ 82] 0x000000001b8ea0ca   C:\Program Files\MATLAB\R2019b\bin\win64\mcr.dll+00106698 mcrOptions::set_use_license_manager+00068938
[ 83] 0x000000001b90a334   C:\Program Files\MATLAB\R2019b\bin\win64\mcr.dll+00238388 mcrOptions::set_use_license_manager+00200628
[ 84] 0x00000000fd02047e   C:\Program Files\MATLAB\R2019b\bin\win64\iqm.dll+00590974 iqm::PackagedTaskPlugin::execute+00000878
[ 85] 0x00000000fd020303   C:\Program Files\MATLAB\R2019b\bin\win64\iqm.dll+00590595 iqm::PackagedTaskPlugin::execute+00000499
[ 86] 0x000000001b9537de   C:\Program Files\MATLAB\R2019b\bin\win64\mcr.dll+00538590 mcr::runtime::setInterpreterThreadSingletonToCurrent+00188382
[ 87] 0x00000000fcffca21   C:\Program Files\MATLAB\R2019b\bin\win64\iqm.dll+00444961 iqm::Iqm::setupIqmFcnPtrs+00101969
[ 88] 0x00000000fcfd3ab7   C:\Program Files\MATLAB\R2019b\bin\win64\iqm.dll+00277175 iqm::Iqm::create+00009159
[ 89] 0x00000000fcfd326d   C:\Program Files\MATLAB\R2019b\bin\win64\iqm.dll+00275053 iqm::Iqm::create+00007037
[ 90] 0x000000001b93120f   C:\Program Files\MATLAB\R2019b\bin\win64\mcr.dll+00397839 mcr::runtime::setInterpreterThreadSingletonToCurrent+00047631
[ 91] 0x000000001b9317fe   C:\Program Files\MATLAB\R2019b\bin\win64\mcr.dll+00399358 mcr::runtime::setInterpreterThreadSingletonToCurrent+00049150
[ 92] 0x000000001b93040c   C:\Program Files\MATLAB\R2019b\bin\win64\mcr.dll+00394252 mcr::runtime::setInterpreterThreadSingletonToCurrent+00044044
[ 93] 0x000000001b9f27d6   C:\Program Files\MATLAB\R2019b\bin\win64\mcr.dll+01189846 mcr::mvm::detail::activateMcr+00016598
[ 94] 0x000000001b820dbf C:\Program Files\MATLAB\R2019b\bin\win64\MVMLocal.dll+00396735 mvm_server::inproc::LocalFactory::terminate+00187135
[ 95] 0x00000000fa9e7c10   C:\Program Files\MATLAB\R2019b\bin\win64\mvm.dll+01801232 mvm::detail::SessionImpl::initWithOptions+00000736
[ 96] 0x00000000fa9e8941   C:\Program Files\MATLAB\R2019b\bin\win64\mvm.dll+01804609 mvm::detail::SessionImpl::runMain+00000081
[ 97] 0x00000000fa9e8bc7   C:\Program Files\MATLAB\R2019b\bin\win64\mvm.dll+01805255 mvm::detail::SessionImpl::runMatlabDesktop+00000279
[ 98] 0x000000014000782c C:\Program Files\MATLAB\R2019b\bin\win64\MATLAB.exe+00030764 mwboost::serialization::singleton_module::unlock+00001180
[ 99] 0x000000014000870a C:\Program Files\MATLAB\R2019b\bin\win64\MATLAB.exe+00034570 mwboost::serialization::singleton_module::unlock+00004986
[100] 0x00007ff87ee17bd4                   C:\WINDOWS\System32\KERNEL32.DLL+00097236 BaseThreadInitThunk+00000020
[101] 0x00007ff87fa8ced1                      C:\WINDOWS\SYSTEM32\ntdll.dll+00446161 RtlUserThreadStart+00000033
I hope someone could help me, thanks,
Niccolò.
2 Comments
Answers (1)
  frank cheng
 on 15 May 2020
        After replacing REFPROP with CoolProp (refer to: http://www.coolprop.org/), the problem of crash was temporarily solved. I hope this is helpful to those encounter similar problems.
5 Comments
  Sena Pad
 on 21 May 2022
				I had encountered the same problem and your solution helped me with this issue;however the calculation is too slow now. do you know any way to speed up the calculations while matlab is linked to python and refprop is invoked vie coolprop? 
  frank cheng
 on 21 May 2022
				
      Edited: frank cheng
 on 21 May 2022
  
			Now in MATLAB you can generate fluid property tables from REFPROP or CoolProp database directly. After that, invoking data from these property tables may speed up the calculations.
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!