matlab has encountered,matlab崩溃,matlab has encountered an internal problem needs to close
我用VLFeat-0.9.17做分类,刚开始提取的sift特征没问题,后来想试试加一个liop特征,matlab就总崩溃。代码出错部分是这样的:numImages = numel(images) ;
numDescrsPerImage = ceil(opts.numWords * opts.numSamplesPerWord / numImages) ;
for i = 1:numImages
fprintf('%s: reading: %s\n', mfilename, images{i}) ;
im = encoder.readImageFn(images{i}) ;
w = size(im,2) ;
h = size(im,1) ;
features = encoder.extractorFn(im) ;
randn('state',0) ;
rand('state',0) ;
sel = vl_colsubset(1:size(features.descr,2), single(numDescrsPerImage)) ;
descrs{i} = features.descr(:,sel) ;
frames{i} = features.frame(:,sel) ;
frames{i} = bsxfun(@times, bsxfun(@minus, frames{i}(1:2,:), [w;h]/2), 1./[w;h]) ;
%liop
w_ = size(im,1);
h_ = size(im,2);
if w_< h_
im_squa = imcrop(im,[0,0,w_,w_]);
end
imshow(im_squa);
descrs_liop = vl_liop(im_squa) ;%%一运行到这里就崩溃,函数是直接用的库里面的
temp = zeros(144,size(descrs{i},2)-1);
descrs_liop = cat(2,descrs_liop,temp);
descrs{i} = cat(1,descrs{i},descrs_liop) ;
end
descrs = cat(2, descrs{:}) ;
frames = cat(2, frames{:}) ;
崩溃后详细信息是这样的:
MATLAB crash file:D:\liuliu\AppData\Local\Temp\6\matlab_crash_dump.8580-1:
------------------------------------------------------------------------
Segmentation violation detected at Wed Mar 05 21:27:03 2014
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Default Encoding: GBK
MATLAB Root : C:\Program Files\MATLAB\R2012b
MATLAB Version : 8.0.0.783 (R2012b)
Operating System: Microsoft Windows Server 2008 R2
Processor ID : x86 Family 31 Model 9 Stepping 1, AuthenticAMD
Virtual Machine : Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : Version 6.1 (Build 7600)
Fault Count: 1
Abnormal termination:
Segmentation violation
Register State (from fault):
RAX = 0000000027c03e68 RBX = 00000000259634a0
RCX = 00000000000388b1 RDX = 0000000028020060
RSP = 0000000004125150 RBP = 0000000025dcb860
RSI = 00000000000e1f04 RDI = 0000000000000001
R8 = 00000001614bfe80 R9 = 0000000000000000
R10 = 0000000000000000 R11 = 0000000025dcb860
R12 = 0000000000000240 R13 = 0000000027c03e68
R14 = 0000000000000000 R15 = 00000000000001e1
RIP = 0000000026f7e8a1 EFL = 00010206
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x0000000026f7e8a1 D:\liuliu\Desktop\xinyao\vlfeat-0.9.17\toolbox\mex\mexw64\vl.dll+00190625 ( vl_liopdesc_process+001249 )
[ 1] 0x000000002140186f D:\liuliu\Desktop\xinyao\vlfeat-0.9.17\toolbox\mex\mexw64\vl_liop.mexw64+00006255 ( mexFunction+001119 )
[ 2] 0x000000006ef60f83 C:\Program Files\MATLAB\R2012b\bin\win64\libmex.dll+00069507 ( mexRunMexFile+000131 )
[ 3] 0x000000006ef5fce2 C:\Program Files\MATLAB\R2012b\bin\win64\libmex.dll+00064738 ( inSwapMexfileReader+000226 )
[ 4] 0x000000006ef5fe64 C:\Program Files\MATLAB\R2012b\bin\win64\libmex.dll+00065124 ( inSwapMexfileReader+000612 )
[ 5] 0x0000000074e8c80d C:\Program Files\MATLAB\R2012b\bin\win64\m_dispatcher.dll+00051213 ( Mfh_file::dispatch_fh+000509 )
[ 6] 0x0000000074e8d0d6 C:\Program Files\MATLAB\R2012b\bin\win64\m_dispatcher.dll+00053462 ( Mfunction_handle::dispatch+000854 )
[ 7] 0x000007fee9cc9482 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00496770 ( inFunctionHandleInterface::DestroyWorkspace+309314 )
[ 8] 0x000007fee9cc5ca4 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00482468 ( inFunctionHandleInterface::DestroyWorkspace+295012 )
[ 9] 0x000007fee9cade1f C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00384543 ( inFunctionHandleInterface::DestroyWorkspace+197087 )
[ 10] 0x000007fee9cadd80 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00384384 ( inFunctionHandleInterface::DestroyWorkspace+196928 )
[ 11] 0x000007fee9cd197d C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00530813 ( inFunctionHandleInterface::DestroyWorkspace+343357 )
[ 12] 0x000007fee9cd0271 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00524913 ( inFunctionHandleInterface::DestroyWorkspace+337457 )
[ 13] 0x000007fee9cb20e9 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00401641 ( inFunctionHandleInterface::DestroyWorkspace+214185 )
[ 14] 0x0000000074e8c80d C:\Program Files\MATLAB\R2012b\bin\win64\m_dispatcher.dll+00051213 ( Mfh_file::dispatch_fh+000509 )
[ 15] 0x0000000074e8d0d6 C:\Program Files\MATLAB\R2012b\bin\win64\m_dispatcher.dll+00053462 ( Mfunction_handle::dispatch+000854 )
[ 16] 0x000007fee9cc9482 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00496770 ( inFunctionHandleInterface::DestroyWorkspace+309314 )
[ 17] 0x000007fee9cc5ca4 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00482468 ( inFunctionHandleInterface::DestroyWorkspace+295012 )
[ 18] 0x000007fee9cade1f C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00384543 ( inFunctionHandleInterface::DestroyWorkspace+197087 )
[ 19] 0x000007fee9cadd80 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00384384 ( inFunctionHandleInterface::DestroyWorkspace+196928 )
[ 20] 0x000007fee9cd197d C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00530813 ( inFunctionHandleInterface::DestroyWorkspace+343357 )
[ 21] 0x000007fee9cd0271 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00524913 ( inFunctionHandleInterface::DestroyWorkspace+337457 )
[ 22] 0x000007fee9cb20e9 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00401641 ( inFunctionHandleInterface::DestroyWorkspace+214185 )
[ 23] 0x0000000074e8c80d C:\Program Files\MATLAB\R2012b\bin\win64\m_dispatcher.dll+00051213 ( Mfh_file::dispatch_fh+000509 )
[ 24] 0x0000000074e8d0d6 C:\Program Files\MATLAB\R2012b\bin\win64\m_dispatcher.dll+00053462 ( Mfunction_handle::dispatch+000854 )
[ 25] 0x000007fee9cc9482 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00496770 ( inFunctionHandleInterface::DestroyWorkspace+309314 )
[ 26] 0x000007fee9d5318f C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+01061263 ( inEachVisibleName+014415 )
[ 27] 0x000007fee9cc74ca C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00488650 ( inFunctionHandleInterface::DestroyWorkspace+301194 )
[ 28] 0x000007fee9cade1f C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00384543 ( inFunctionHandleInterface::DestroyWorkspace+197087 )
[ 29] 0x000007fee9cadd80 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00384384 ( inFunctionHandleInterface::DestroyWorkspace+196928 )
[ 30] 0x000007fee9cd197d C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00530813 ( inFunctionHandleInterface::DestroyWorkspace+343357 )
[ 31] 0x000007fee9cd0271 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00524913 ( inFunctionHandleInterface::DestroyWorkspace+337457 )
[ 32] 0x000007fee9cb20e9 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00401641 ( inFunctionHandleInterface::DestroyWorkspace+214185 )
[ 33] 0x0000000074e8c80d C:\Program Files\MATLAB\R2012b\bin\win64\m_dispatcher.dll+00051213 ( Mfh_file::dispatch_fh+000509 )
[ 34] 0x0000000074e8d0d6 C:\Program Files\MATLAB\R2012b\bin\win64\m_dispatcher.dll+00053462 ( Mfunction_handle::dispatch+000854 )
[ 35] 0x000007fee9d651e5 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+01135077 ( inValidateLoadedObject+001893 )
[ 36] 0x000007fee9d74595 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+01197461 ( init_cleaner+015541 )
[ 37] 0x000007fee9d77b75 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+01211253 ( inSetMaxFrameCount+002261 )
[ 38] 0x000007fee9d77b48 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+01211208 ( inSetMaxFrameCount+002216 )
[ 39] 0x000007fee9d77b07 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+01211143 ( inSetMaxFrameCount+002151 )
[ 40] 0x000007fee9c60213 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+00066067 ( inPathNotification::function_clear_notification+004019 )
[ 41] 0x000007fee9d6aed0 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+01158864 ( inEvalCmdWithLocalReturn+000416 )
[ 42] 0x000007fee9d6ae2c C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+01158700 ( inEvalCmdWithLocalReturn+000252 )
[ 43] 0x000007fee9d6ad71 C:\Program Files\MATLAB\R2012b\bin\win64\m_interpreter.dll+01158513 ( inEvalCmdWithLocalReturn+000065 )
[ 44] 0x0000000079fbf90d C:\Program Files\MATLAB\R2012b\bin\win64\libmwbridge.dll+00063757 ( mnDebugPrompt+000109 )
[ 45] 0x0000000079fc0471 C:\Program Files\MATLAB\R2012b\bin\win64\libmwbridge.dll+00066673 ( mnParser+000593 )
[ 46] 0x00000000749a64a4 C:\Program Files\MATLAB\R2012b\bin\win64\mcr.dll+00222372 ( mcrInstance::mnParser_on_interpreter_thread+000036 )
[ 47] 0x000000007498681f C:\Program Files\MATLAB\R2012b\bin\win64\mcr.dll+00092191 ( mcr::setInterpreterThreadToCurrent+029887 )
[ 48] 0x0000000074986881 C:\Program Files\MATLAB\R2012b\bin\win64\mcr.dll+00092289 ( mcr::setInterpreterThreadToCurrent+029985 )
[ 49] 0x000000000575e0b6 C:\Program Files\MATLAB\R2012b\bin\win64\uiw.dll+00385206 ( UIW_IsUserMessage+000086 )
[ 50] 0x000000000575e7b9 C:\Program Files\MATLAB\R2012b\bin\win64\uiw.dll+00387001 ( UIW_SetGLIMUserMsg+000153 )
[ 51] 0x0000000077488fea C:\Windows\system32\USER32.dll+00167914 ( GetMessagePos+001114 )
[ 52] 0x000000007747201b C:\Windows\system32\USER32.dll+00073755 ( SystemParametersInfoW+000235 )
[ 53] 0x0000000077477195 C:\Windows\system32\USER32.dll+00094613 ( GetGUIThreadInfo+000469 )
[ 54] 0x00000000775afc65 C:\Windows\SYSTEM32\ntdll.dll+00326757 ( KiUserCallbackDispatcher+000031 )
[ 55] 0x000000007747bb2a C:\Windows\system32\USER32.dll+00113450 ( PeekMessageW+000186 )
[ 56] 0x00000000774761a6 C:\Windows\system32\USER32.dll+00090534 ( PeekMessageA+000198 )
[ 57] 0x0000000077476137 C:\Windows\system32\USER32.dll+00090423 ( PeekMessageA+000087 )
[ 58] 0x0000000005738f4b C:\Program Files\MATLAB\R2012b\bin\win64\uiw.dll+00233291 ( UIW_SetCurrentDialog+000731 )
[ 59] 0x000000000575fbe2 C:\Program Files\MATLAB\R2012b\bin\win64\uiw.dll+00392162 ( ws_FreeSystemFont+000546 )
[ 60] 0x00000000049de6a3 C:\Program Files\MATLAB\R2012b\bin\win64\libmwservices.dll+00779939 ( sysq::removeCommitDatabaseUpdatesHook+002131 )
[ 61] 0x00000000049dfe18 C:\Program Files\MATLAB\R2012b\bin\win64\libmwservices.dll+00785944 ( sysq::removeCommitDatabaseUpdatesHook+008136 )
[ 62] 0x00000000049e1a20 C:\Program Files\MATLAB\R2012b\bin\win64\libmwservices.dll+00793120 ( sysq::addProcessPendingEventsUnitTestHook+000240 )
[ 63] 0x00000000049e1ae8 C:\Program Files\MATLAB\R2012b\bin\win64\libmwservices.dll+00793320 ( sysq::addProcessPendingEventsUnitTestHook+000440 )
[ 64] 0x00000000049e1ca3 C:\Program Files\MATLAB\R2012b\bin\win64\libmwservices.dll+00793763 ( sysq::addProcessPendingEventsUnitTestHook+000883 )
[ 65] 0x00000000049e1d76 C:\Program Files\MATLAB\R2012b\bin\win64\libmwservices.dll+00793974 ( sysq::addProcessPendingEventsUnitTestHook+001094 )
[ 66] 0x000000007498837e C:\Program Files\MATLAB\R2012b\bin\win64\mcr.dll+00099198 ( mcr::setInterpreterThreadToCurrent+036894 )
[ 67] 0x0000000074988665 C:\Program Files\MATLAB\R2012b\bin\win64\mcr.dll+00099941 ( mcr::setInterpreterThreadToCurrent+037637 )
[ 68] 0x000000007497b166 C:\Program Files\MATLAB\R2012b\bin\win64\mcr.dll+00045414 ( DepfunRules::postWarning+003430 )
[ 69] 0x000000013fe78a33 C:\Program Files\MATLAB\R2012b\bin\win64\matlab.exe+00035379 ( ???+000000 )
[ 70] 0x000000013fe78c97 C:\Program Files\MATLAB\R2012b\bin\win64\matlab.exe+00035991 ( ???+000000 )
[ 71] 0x000000013fe79163 C:\Program Files\MATLAB\R2012b\bin\win64\matlab.exe+00037219 ( ???+000000 )
[ 72] 0x000000007735f56d C:\Windows\system32\kernel32.dll+00128365 ( BaseThreadInitThunk+000013 )
[ 73] 0x0000000077593021 C:\Windows\SYSTEM32\ntdll.dll+00208929 ( RtlUserThreadStart+000033 )
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.
If this problem is reproducible, please submit a Service Request via:
http://www.mathworks.com/support/contact_us/
A technical support engineer might contact you with further information.
Thank you for your help.
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)