Matlab crashes in imread in a loop
Show older comments
When I run a loop to process some imagery then save it in a loop matlab keeps crashes consistently.Note that this also occurs in 2016a.
Crash report:
MATLAB crash file:
--------------------------------------------------------------------------------
In page error detected at Fri Nov 22 01:59:43 2019 -0800
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : windows-1252
Deployed : false
Graphics Driver : Intel Intel(R) HD Graphics 520 Version 4.5.0 - Build 22.20.16.4799
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics 520 Version 22.20.16.4799 (2017-9-14)
Java Version : Java 1.8.0_144-b01 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : win64
MATLAB Entitlement ID : 666923
MATLAB Root : C:\Program Files\MATLAB\R2018a
MATLAB Version : 9.4.0.813654 (R2018a)
OpenGL : hardware
Operating System : Microsoft Windows 10 Enterprise
Process ID : 6328
Processor ID : x86 Family 6 Model 78 Stepping 3, GenuineIntel
Session Key : 54d9b8ae-6167-418c-bcad-06a6ca4e6311
Window System : Version 10.0 (Build 14393)
Fault Count: 1
Abnormal termination
Register State (from fault):
RAX = 00000000b46d5060 RBX = 00000000b29d6510
RCX = 000000000002a068 RDX = 000000030e6781e8
RSP = 00000000043faca8 RBP = ffffffffffffffff
RSI = 00000003c2e1c000 RDI = 00000000b47a3e18
R8 = 00000000000000b2 R9 = 0000000000000000
R10 = 00000003c2d4d248 R11 = 00000000000f8e20
R12 = 00000000000052f5 R13 = 0000000000000001
R14 = 00000000b46d5060 R15 = 0000000000000000
RIP = 00007ff86affc387 EFL = 00010207
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00007ff86affc387 C:\Program Files\MATLAB\R2018a\bin\win64\VCRUNTIME140.dll+00050055 memmove+00000087
[ 1] 0x000000002e3960ab C:\Program Files\MATLAB\R2018a\toolbox\matlab\imagesci\private\rtifc.mexw64+00221355 mexfilerequiredapiversion+00127115
[ 2] 0x000000002e37c984 C:\Program Files\MATLAB\R2018a\toolbox\matlab\imagesci\private\rtifc.mexw64+00117124 mexfilerequiredapiversion+00022884
[ 3] 0x000000002e3650be C:\Program Files\MATLAB\R2018a\toolbox\matlab\imagesci\private\rtifc.mexw64+00020670
[ 4] 0x000000002e373f39 C:\Program Files\MATLAB\R2018a\toolbox\matlab\imagesci\private\rtifc.mexw64+00081721
[ 5] 0x000000002e373787 C:\Program Files\MATLAB\R2018a\toolbox\matlab\imagesci\private\rtifc.mexw64+00079751
[ 6] 0x000000002e376f87 C:\Program Files\MATLAB\R2018a\toolbox\matlab\imagesci\private\rtifc.mexw64+00094087 mexFunction+00000551
[ 7] 0x00000000fc626594 bin\win64\libmex.dll+00288148 MexRetrieveVersion+00002916
[ 8] 0x00000000fc6268de bin\win64\libmex.dll+00288990 MexRetrieveVersion+00003758
[ 9] 0x00000000fc612ec3 bin\win64\libmex.dll+00208579 mexUnlock_800+00024147
[ 10] 0x0000000004aac51a bin\win64\pgo\m_dispatcher.dll+00050458 Mfh_file::dispatch_fh_impl+00001114
[ 11] 0x0000000004aac0b2 bin\win64\pgo\m_dispatcher.dll+00049330 Mfh_file::dispatch_fh+00000062
[ 12] 0x0000000004aa4674 bin\win64\pgo\m_dispatcher.dll+00018036 Mfunction_handle::dispatch+00000420
[ 13] 0x0000000005980189 bin\win64\pgo\m_lxe.dll+00393609
[ 14] 0x0000000005a0a808 bin\win64\pgo\m_lxe.dll+00960520 mwboost::serialization::singleton<mwboost::archive::detail::pointer_iserializer<mwboost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00121832
[ 15] 0x0000000005a0b403 bin\win64\pgo\m_lxe.dll+00963587 mwboost::serialization::singleton<mwboost::archive::detail::pointer_iserializer<mwboost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00124899
[ 16] 0x0000000005a0c836 bin\win64\pgo\m_lxe.dll+00968758 mwboost::serialization::singleton<mwboost::archive::detail::pointer_iserializer<mwboost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00130070
[ 17] 0x0000000005a0d3f0 bin\win64\pgo\m_lxe.dll+00971760 mwboost::serialization::singleton<mwboost::archive::detail::pointer_iserializer<mwboost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00133072
[ 18] 0x0000000005a0c97f bin\win64\pgo\m_lxe.dll+00969087 mwboost::serialization::singleton<mwboost::archive::detail::pointer_iserializer<mwboost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00130399
[ 19] 0x0000000005a0ca7e bin\win64\pgo\m_lxe.dll+00969342 mwboost::serialization::singleton<mwboost::archive::detail::pointer_iserializer<mwboost::archive::binaryTerm_iarchive,ir::IrTree> >::get_instance+00130654
[ 20] 0x000000000598e8a5 bin\win64\pgo\m_lxe.dll+00452773
[ 21] 0x000000000598b335 bin\win64\pgo\m_lxe.dll+00439093
[ 22] 0x000000000598a82e bin\win64\pgo\m_lxe.dll+00436270
[ 23] 0x0000000005991b9a bin\win64\pgo\m_lxe.dll+00465818
[ 24] 0x000000000599133d bin\win64\pgo\m_lxe.dll+00463677
[ 25] 0x000000000599144e bin\win64\pgo\m_lxe.dll+00463950
[ 26] 0x0000000005b31d9c bin\win64\pgo\m_lxe.dll+02170268 mwboost::serialization::singleton<mwboost::archive::detail::pointer_oserializer<mwboost::archive::binary_oarchive,MathWorks::lxe::PreLineExecutionEvent> >::get_instance+00475644
[ 27] 0x0000000005b31d4a bin\win64\pgo\m_lxe.dll+02170186 mwboost::serialization::singleton<mwboost::archive::detail::pointer_oserializer<mwboost::archive::binary_oarchive,MathWorks::lxe::PreLineExecutionEvent> >::get_instance+00475562
[ 28] 0x000000000596051d bin\win64\pgo\m_lxe.dll+00263453
[ 29] 0x0000000004cb8acf bin\win64\pgo\m_interpreter.dll+00297679 inEvalCmdWithLocalReturn+00000063
[ 30] 0x00000000fb60bedb bin\win64\libmwbridge.dll+00114395 mnParser+00001595
[ 31] 0x00000000048f6564 bin\win64\mcr.dll+00222564 mcr::runtime::setInterpreterThreadSingletonToCurrent+00091332
[ 32] 0x00000000048f97ae bin\win64\mcr.dll+00235438 mcr::runtime::setInterpreterThreadSingletonToCurrent+00104206
[ 33] 0x0000000004916c8a bin\win64\mcr.dll+00355466 mcrRegisterExternalFunction+00007930
[ 34] 0x00000000049189bc bin\win64\mcr.dll+00362940 mcrRegisterExternalFunction+00015404
[ 35] 0x0000000004915bff bin\win64\mcr.dll+00351231 mcrRegisterExternalFunction+00003695
[ 36] 0x0000000004916c46 bin\win64\mcr.dll+00355398 mcrRegisterExternalFunction+00007862
[ 37] 0x0000000004915ce3 bin\win64\mcr.dll+00351459 mcrRegisterExternalFunction+00003923
[ 38] 0x0000000004918ff6 bin\win64\mcr.dll+00364534 mcrRegisterExternalFunction+00016998
[ 39] 0x00000000fd014f67 bin\win64\iqm.dll+00544615 iqm::IqmPlugin<cmddistributor::PackagedTaskIIP>::getIIP+00016215
[ 40] 0x00000000fd01567f bin\win64\iqm.dll+00546431 iqm::PackagedTaskPlugin::execute+00000911
[ 41] 0x00000000fd014fed bin\win64\iqm.dll+00544749 iqm::IqmPlugin<cmddistributor::PackagedTaskIIP>::getIIP+00016349
[ 42] 0x00000000fd0154c3 bin\win64\iqm.dll+00545987 iqm::PackagedTaskPlugin::execute+00000467
[ 43] 0x00000000fcfed9ea bin\win64\iqm.dll+00383466 iqm::Iqm::setupIqmFcnPtrs+00071994
[ 44] 0x00000000fcfed84c bin\win64\iqm.dll+00383052 iqm::Iqm::setupIqmFcnPtrs+00071580
[ 45] 0x00000000fcfce722 bin\win64\iqm.dll+00255778 iqm::Iqm::deliver+00003730
[ 46] 0x00000000fcfcf749 bin\win64\iqm.dll+00259913 iqm::Iqm::deliver+00007865
[ 47] 0x00000001001aa211 bin\win64\libmwservices.dll+01810961 services::system_events::PpeDispatchHook::dispatchOne+00030865
[ 48] 0x00000001001b7ff3 bin\win64\libmwservices.dll+01867763 sysq::addProcessPendingEventsUnitTestHook+00004659
[ 49] 0x00000001001b81e0 bin\win64\libmwservices.dll+01868256 sysq::addProcessPendingEventsUnitTestHook+00005152
[ 50] 0x00000001001b9576 bin\win64\libmwservices.dll+01873270 sysq::getCondition+00003446
[ 51] 0x00000001001bb0e6 bin\win64\libmwservices.dll+01880294 svWS_ProcessPendingEvents+00000230
[ 52] 0x0000000004900737 bin\win64\mcr.dll+00263991 mcr::runtime::setInterpreterThreadSingletonToCurrent+00132759
[ 53] 0x0000000004902360 bin\win64\mcr.dll+00271200 mcr::runtime::setInterpreterThreadSingletonToCurrent+00139968
[ 54] 0x00000000048de9b7 bin\win64\mcr.dll+00125367 mcr_process_events+00001959
[ 55] 0x00000000047afef5 bin\win64\MVMLocal.dll+00327413 mvm_server::inproc::LocalFactory::terminate+00139589
[ 56] 0x00000000fa9605b9 bin\win64\mvm.dll+01246649 mvm::detail::initLocalMvmHack+00000793
[ 57] 0x00000000fa960dcb bin\win64\mvm.dll+01248715 mvm::detail::SessionImpl::privateSession+00000555
[ 58] 0x00000000fa960ff1 bin\win64\mvm.dll+01249265 mvm::detail::SessionImpl::privateSession+00001105
[ 59] 0x000000014000780d bin\win64\MATLAB.exe+00030733
[ 60] 0x000000014000862f bin\win64\MATLAB.exe+00034351
[ 61] 0x00007ff87d7a84d4 C:\WINDOWS\System32\KERNEL32.DLL+00034004 BaseThreadInitThunk+00000020
[ 62] 0x00007ff87e62e851 C:\WINDOWS\SYSTEM32\ntdll.dll+00452689 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.
Answers (0)
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!