为什么MATLAB崩溃了#34; MATLAB遇到了内部错误,需要关闭"?

时间:2018-01-04 06:38:10

标签: matlab caffe

" Matlab遇到了内部问题,需要关闭"

MATLAB crash file:C:\Users\MJ\AppData\Local\Temp\matlab_crash_dump.7584-1:
------------------------------------------------------------------------
              abort() detected at Thu Jan  4 15:30:18 2018
------------------------------------------------------------------------

Configuration:
  Crash Decoding      : Disabled - No sandbox or build area path
  Crash Mode          : continue (default)
  Current Graphics Driver: Unknown hardware 
  Default Encoding    : KSC_5601
  Deployed            : false
  Graphics card 1     : NVIDIA ( 0x10de ) NVIDIA GeForce GTX 1070 Version 23.21.13.8871 (2017-12-15)
  Host Name           : DESKTOP-EGKG0V7
  MATLAB Architecture : win64
  MATLAB Entitlement ID: 2385114
  MATLAB Root         : C:\Program Files\MATLAB\R2017b
  MATLAB Version      : 9.3.0.713579 (R2017b)
  OpenGL              : hardware
  Operating System    : Microsoft Windows 10 Education
  Processor ID        : x86 Family 6 Model 158 Stepping 9, 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 16299)

Fault Count: 1

Stack Trace (captured):
[  0] 0x0000000012795e83                              bin\win64\libmwfl.dll+00155267 foundation::core::diag::thread_context::unspecified_bool+00000051

[  1] 0x0000000012794478                              bin\win64\libmwfl.dll+00148600 foundation::core::diag::stacktrace_base::capture+00000024

[  2] 0x00000000127979ce                              bin\win64\libmwfl.dll+00162254 foundation::core::diag::symbols::getSymbolAddress+00006494

[  3] 0x000000001279a807                              bin\win64\libmwfl.dll+00174087 foundation::core::diag::disable_terminate_dialog+00000887

[  4] 0x00000000174df615                                  bin\win64\mcr.dll+00652821 mnShutdownMCR+00023605

[  5] 0x00000000174df2a1                                  bin\win64\mcr.dll+00651937 mnShutdownMCR+00022721

[  6] 0x00000000174df378                                  bin\win64\mcr.dll+00652152 mnShutdownMCR+00022936

[  7] 0x00000000174dc5e9                                  bin\win64\mcr.dll+00640489 mnShutdownMCR+00011273

[  8] 0x00000000174ddc59                                  bin\win64\mcr.dll+00646233 mnShutdownMCR+00017017

[  9] 0x00007ffa0fd4a9ff                   C:\Windows\System32\ucrtbase.dll+00436735 raise+00000463

[ 10] 0x00007ffa0fd4b6f1                   C:\Windows\System32\ucrtbase.dll+00440049 abort+00000049

[ 11] 0x00007ffa003b469a D:\T_caffe\caffe\caffe-windows\matlab\+caffe\private\glog.dll+00018074 google::Demangle+00008410

[ 12] 0x00007ffa003b9de2 D:\T_caffe\caffe\caffe-windows\matlab\+caffe\private\glog.dll+00040418 google::LogMessage::SendToLog+00000738

[ 13] 0x00007ffa003b7a25 D:\T_caffe\caffe\caffe-windows\matlab\+caffe\private\glog.dll+00031269 google::LogMessage::Flush+00000213

[ 14] 0x00007ffa003b61e2 D:\T_caffe\caffe\caffe-windows\matlab\+caffe\private\glog.dll+00025058 google::LogMessageFatal::~LogMessageFatal+00000018

[ 15] 0x00007ff9c9f5db3a D:\T_caffe\caffe\caffe-windows\matlab\+caffe\private\caffe_.mexw64+00842554 mexFunction+00770010

[ 16] 0x00007ff9c9ea1dba D:\T_caffe\caffe\caffe-windows\matlab\+caffe\private\caffe_.mexw64+00073146 mexFunction+00000602

[ 17] 0x00000000fc60234a                               bin\win64\libmex.dll+00140106 mexRunMexFile+00000314

[ 18] 0x00000000fc600d22                               bin\win64\libmex.dll+00134434 mexFeature_mexver+00002146

[ 19] 0x00000000fc5ffab7                               bin\win64\libmex.dll+00129719 mexUnlock+00028455

[ 20] 0x00000000175aca93                     bin\win64\pgo\m_dispatcher.dll+00117395 Mfh_file::dispatch_fh_impl+00000835

[ 21] 0x00000000175ac73e                     bin\win64\pgo\m_dispatcher.dll+00116542 Mfh_file::dispatch_fh+00000062

[ 22] 0x000000001759a8d8                     bin\win64\pgo\m_dispatcher.dll+00043224 Mfunction_handle::dispatch+00001032

[ 23] 0x000000001849794e                            bin\win64\pgo\m_lxe.dll+00227662

[ 24] 0x0000000018494571                            bin\win64\pgo\m_lxe.dll+00214385

[ 25] 0x000000001849b3a6                            bin\win64\pgo\m_lxe.dll+00242598

[ 26] 0x000000001849bfb3                            bin\win64\pgo\m_lxe.dll+00245683

[ 27] 0x000000001849dff5                            bin\win64\pgo\m_lxe.dll+00253941

[ 28] 0x000000001849d44f                            bin\win64\pgo\m_lxe.dll+00250959

[ 29] 0x000000001849d822                            bin\win64\pgo\m_lxe.dll+00251938

[ 30] 0x000000001856331b                            bin\win64\pgo\m_lxe.dll+01061659 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00604503

[ 31] 0x000000001856ad46                            bin\win64\pgo\m_lxe.dll+01092934 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00635778

[ 32] 0x000000001856a570                            bin\win64\pgo\m_lxe.dll+01090928 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00633772

[ 33] 0x00000000184fa4d6                            bin\win64\pgo\m_lxe.dll+00632022 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00174866

[ 34] 0x00000000184f9ccd                            bin\win64\pgo\m_lxe.dll+00629965 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00172809

[ 35] 0x00000000184f9be6                            bin\win64\pgo\m_lxe.dll+00629734 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00172578

[ 36] 0x00000000184f35a5                            bin\win64\pgo\m_lxe.dll+00603557 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00146401

[ 37] 0x00000000184f3532                            bin\win64\pgo\m_lxe.dll+00603442 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00146286

[ 38] 0x00000000184f71d5                            bin\win64\pgo\m_lxe.dll+00618965 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00161809

[ 39] 0x00000000177b5b63                    bin\win64\pgo\m_interpreter.dll+00416611 inEvalCmdWithLocalReturn+00000063

[ 40] 0x00000000fb60de26                          bin\win64\libmwbridge.dll+00122406 mnParser+00001254

[ 41] 0x000000001747bdb1                                  bin\win64\mcr.dll+00245169 mcr::runtime::setInterpreterThreadSingletonToCurrent+00029793

[ 42] 0x000000001747ace5                                  
bin\win64\mcr.dll+00240869 mcr::runtime::setInterpreterThreadSingletonToCurrent+00025493

[ 43] 0x000000001747ad53                                  bin\win64\mcr.dll+00240979 mcr::runtime::setInterpreterThreadSingletonToCurrent+00025603

[ 44] 0x000000001747b6e1                                  bin\win64\mcr.dll+00243425 mcr::runtime::setInterpreterThreadSingletonToCurrent+00028049

[ 45] 0x00000000fd02cc77                                  bin\win64\iqm.dll+00642167 iqm::UserEvalPlugin::pre+00028951

[ 46] 0x00000000fd039cfc                                  bin\win64\iqm.dll+00695548 iqm::UserEvalPlugin::pre+00082332

[ 47] 0x00000000fd02737f                                  bin\win64\iqm.dll+00619391 iqm::UserEvalPlugin::pre+00006175

[ 48] 0x00000000fd02cc16                                  bin\win64\iqm.dll+00642070 iqm::UserEvalPlugin::pre+00028854

[ 49] 0x00000000fd027863                                  bin\win64\iqm.dll+00620643 iqm::UserEvalPlugin::pre+00007427

[ 50] 0x00000000fd03c8b6                                  bin\win64\iqm.dll+00706742 iqm::UserEvalPlugin::pre+00093526

[ 51] 0x00000000fd0080f7                                  bin\win64\iqm.dll+00491767 iqm::PackagedTaskPlugin::PackagedTaskPlugin+00000759

[ 52] 0x00000000fd0088bf                                  bin\win64\iqm.dll+00493759 iqm::PackagedTaskPlugin::execute+00000879

[ 53] 0x00000000fd00817d                                  bin\win64\iqm.dll+00491901 iqm::PackagedTaskPlugin::PackagedTaskPlugin+00000893

[ 54] 0x00000000fd008708                                  bin\win64\iqm.dll+00493320 iqm::PackagedTaskPlugin::execute+00000440

[ 55] 0x00000000fcfdbd3a                                  bin\win64\iqm.dll+00310586 iqm::Iqm::setupIqmFcnPtrs+00079802

[ 56] 0x00000000fcfdbc06                                  bin\win64\iqm.dll+00310278 iqm::Iqm::setupIqmFcnPtrs+00079494

[ 57] 0x00000000fcfbf5be                                  bin\win64\iqm.dll+00193982 iqm::Iqm::deliver+00004046

[ 58] 0x00000000fcfc0545                                  bin\win64\iqm.dll+00197957 iqm::Iqm::deliver+00008021

[ 59] 0x00000001001237c1                        bin\win64\libmwservices.dll+01259457 
services::system_events::PpeDispatchHook::dispatchOne+00021505

[ 60] 0x0000000100128663                        
bin\win64\libmwservices.dll+01279587 sysq::addProcessPendingEventsUnitTestHook+00002211

[ 61] 0x0000000100128850                        bin\win64\libmwservices.dll+01280080 sysq::addProcessPendingEventsUnitTestHook+00002704

[ 62] 0x0000000100129c26                        bin\win64\libmwservices.dll+01285158 sysq::getCondition+00003462

[ 63] 0x000000010012ac66                        bin\win64\libmwservices.dll+01289318 svWS_ProcessPendingEvents+00000230

[ 64] 0x000000001747c244                                  bin\win64\mcr.dll+00246340 mcr::runtime::setInterpreterThreadSingletonToCurrent+00030964

[ 65] 0x000000001747c964                                  bin\win64\mcr.dll+00248164 mcr::runtime::setInterpreterThreadSingletonToCurrent+00032788

[ 66] 0x0000000017472762                                  bin\win64\mcr.dll+00206690 mcr_process_events+00008818

[ 67] 0x00000000172e23c5                             bin\win64\MVMLocal.dll+00271301 mvm_server::inproc::LocalFactory::terminate+00088005

[ 68] 0x00000000fa957669                                  bin\win64\mvm.dll+01209961 mvm::detail::initLocalMvmHack+00000569

[ 69] 0x00000000fa957e2b                                  bin\win64\mvm.dll+01211947 mvm::detail::SessionImpl::privateSession+00000555

[ 70] 0x00000000fa958051                                  bin\win64\mvm.dll+01212497 mvm::detail::SessionImpl::privateSession+00001105

[ 71] 0x0000000140007833                               bin\win64\MATLAB.exe+00030771

[ 72] 0x000000014000863f                               bin\win64\MATLAB.exe+00034367

[ 73] 0x00007ffa10ad1fe4                   C:\Windows\System32\KERNEL32.DLL+00073700 BaseThreadInitThunk+00000020

[ 74] 0x00007ffa1348ef91                      C:\Windows\SYSTEM32\ntdll.dll+00454545 RtlUserThreadStart+00000033

MEX文件运行时检测到此错误。如果是MEX文件 不是MathWorks的官方功能,请查看其源代码 为了错误。有关信息,请参阅“外部接口指南” 调试MEX文件。

1 个答案:

答案 0 :(得分:2)

由于mex文件中未处理的异常或mex文件调用的编译代码,MATLAB崩溃

错误消息告诉您错误发生的位置:

  

在MEX文件运行时检测到此错误。

也就是说,这不是MATLAB错误,而是mex函数中的未捕获异常(或者mex函数调用的代码,通常就是这种情况)。这就是为什么MATLAB崩溃而不是仅输出错误的原因,就像它对任何捕获的异常一样。错误跟踪可以帮助您找到罪魁祸首。在堆栈跟踪中查找mexFunction,您将找到应该归咎于哪个mex文件:

  

[16] 0x00007ff9c9ea1dba D:\ T_caffe \ caffe \ caffe-windows \ matlab + caffe \ private \ caffe_.mexw64 + 00073146 mexFunction + 00000602

因此错误起源于Caffe的MATLAB界面。查看上面这一行,找出实际发生异常的位置。此时您可能会感到难过,因为通常无法破译大量未知库。您现在可以选择尝试调试崩溃的选项。我的建议:

  1. 在MATLAB中找到导致崩溃的Caffe调用。在调用之前保存工作区,以便在MATLAB崩溃时轻松恢复它。

  2. 看到崩溃再现。

  3. 仔细查看您的输入,看看您是否能找到可疑的东西。

  4. 如果没有,请找一些运行相同功能的基本示例,然后逐步从您的输入到您自己的输入,看看崩溃何时开始发生。

  5. 这可以帮助您缩小导致崩溃的原因。另一个选择是获取源代码,使用调试符号构建它并通过附加到MATLAB进行调试。根据您的设置,这可能是过度的,或者引导您进入您不理解的代码。

    您可能会在机会中找到您正在使用的软件中的实际错误。我不知道Caffe及其MATLAB接口有多稳定。但是,最好假设广泛使用的库比您自己的代码更稳定,并从那里开始调试过程。祝你好运!