Segmentation violation detected with matlab R2013a
1 次查看(过去 30 天)
显示 更早的评论
%%Extracting & Saving of frames from a Video file through Matlab Code%%
clc;
close all;
clear all;
% assigning the name of sample avi file to a variable
filename = 'E:\MATLAB\toolbox\images\imdemos\traffic.avi';
%reading a video file
mov = VideoReader(filename);
% Defining Output folder as 'snaps'
opFolder = fullfile(cd, 'traff');
%if not existing
if ~exist(opFolder, 'dir')
%make directory & execute as indicated in opfolder variable
mkdir(opFolder);
end
%getting no of frames
numFrames = mov.NumberOfFrames;
%setting current status of number of frames written to zero
numFramesWritten = 0;
%for loop to traverse & process from frame '1' to 'last' frames
for t = 1 : numFrames
currFrame = read(mov, t); %reading individual frames
opBaseFileName = sprintf('%3.3d.png', t);
opFullFileName = fullfile(opFolder, opBaseFileName);
imwrite(currFrame, opFullFileName, 'png'); %saving as 'png' file
%indicating the current progress of the file/frame written
progIndication = sprintf('Wrote frame %4d of %d.', t, numFrames);
disp(progIndication);
numFramesWritten = numFramesWritten + 1;
end %end of 'for' loop
progIndication = sprintf('Wrote %d frames to folder "%s"',numFramesWritten, opFolder);
disp(progIndication);
%End of the code
This is my code
and the following is the error:
------------------------------------------------------------------------ Segmentation violation detected at Mon Feb 08 12:14:26 2016 ------------------------------------------------------------------------
Configuration: Crash Decoding : Disabled Default Encoding : windows-1252 MATLAB Architecture: win64 MATLAB Root : E:\MATLAB MATLAB Version : 8.1.0.604 (R2013a) Operating System : Microsoft Windows 8 Processor ID : x86 Family 6 Model 61 Stepping 4, GenuineIntel Virtual Machine : Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot™ 64-Bit Server VM mixed mode Window System : Version 6.2 (Build 9200)
Fault Count: 1
Abnormal termination: Segmentation violation
Register State (from fault):
RAX = 00000000e0ed5090 RBX = 000000000000006a
RCX = 00000000e0ed5590 RDX = ffffffff7b2930f0
RSP = 00000000045f5188 RBP = 0000000000000280
RSI = 00000000e0ed5310 RDI = 000000005c168400
R8 = 0000000000000280 R9 = 0000000000000014
R10 = 0000000000000001 R11 = 00000000e0ed5310
R12 = 0000000027debc60 R13 = 0000000000000a00
R14 = 00000000000000a0 R15 = 0000000000000000
RIP = 000000006e7dc1b0 EFL = 00010287
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x000000006e7dc1b0 E:\MATLAB\bin\win64\MSVCR100.dll+00246192 memmove+00000592
[ 1] 0x00000000334a38de E:\MATLAB\bin\win64\tamimframe.dll+00080094 imaqframekit::MemoryLimiter::MemoryLimiter+00009006
[ 2] 0x00000000337489ac E:\MATLAB\toolbox\shared\multimedia\bin\win64\reader\mediafoundationplugin.dll+00035244
[ 3] 0x00000000337473a3 E:\MATLAB\toolbox\shared\multimedia\bin\win64\reader\mediafoundationplugin.dll+00029603
[ 4] 0x0000000033355528 E:\MATLAB\bin\win64\mmreaderudd.dll+00021800
[ 5] 0x00000000333518d2 E:\MATLAB\bin\win64\mmreaderudd.dll+00006354
[ 6] 0x0000000074f7b6e6 E:\MATLAB\bin\win64\udd.dll+00243430 UDMethodInfo::invokeMethodE+00000038
[ 7] 0x0000000012f64110 E:\MATLAB\bin\win64\udd_mi.dll+00278800 registerCheckIfHG2ObjectFcn+00029616
[ 8] 0x0000000012f643d6 E:\MATLAB\bin\win64\udd_mi.dll+00279510 registerCheckIfHG2ObjectFcn+00030326
[ 9] 0x000000007b0ea630 E:\MATLAB\bin\win64\mcos.dll+00304688 mcos::COSJITInterface::isArrayHandle+00004320
[ 10] 0x0000000074e8ca05 E:\MATLAB\bin\win64\m_dispatcher.dll+00051717 Mfh_MATLAB_fn::dispatch_fh+00000453
[ 11] 0x0000000074e8ced2 E:\MATLAB\bin\win64\m_dispatcher.dll+00052946 Mfunction_handle::dispatch+00000802
[ 12] 0x0000000011aa6d48 E:\MATLAB\bin\win64\m_interpreter.dll+00683336 inDestroyWS+00240776
[ 13] 0x0000000011aa91ff E:\MATLAB\bin\win64\m_interpreter.dll+00692735 inDestroyWS+00250175
[ 14] 0x0000000011ac021f E:\MATLAB\bin\win64\m_interpreter.dll+00786975 inDestroyWS+00344415
[ 15] 0x0000000011ac0370 E:\MATLAB\bin\win64\m_interpreter.dll+00787312 inDestroyWS+00344752
[ 16] 0x0000000011a9f1dd E:\MATLAB\bin\win64\m_interpreter.dll+00651741 inDestroyWS+00209181
[ 17] 0x0000000011aa0bd0 E:\MATLAB\bin\win64\m_interpreter.dll+00658384 inDestroyWS+00215824
[ 18] 0x0000000011a8cf79 E:\MATLAB\bin\win64\m_interpreter.dll+00577401 inDestroyWS+00134841
[ 19] 0x0000000074e8c64f E:\MATLAB\bin\win64\m_dispatcher.dll+00050767 Mfh_file::dispatch_fh+00000623
[ 20] 0x0000000074e8ced2 E:\MATLAB\bin\win64\m_dispatcher.dll+00052946 Mfunction_handle::dispatch+00000802
[ 21] 0x000000007b0e3f9e E:\MATLAB\bin\win64\mcos.dll+00278430 omDoesClassImplementSubsasgn+00000942
[ 22] 0x000000007b0e0feb E:\MATLAB\bin\win64\mcos.dll+00266219 mcos::COSMethodInfo::isStatic+00001259
[ 23] 0x000000007b0c98a4 E:\MATLAB\bin\win64\mcos.dll+00170148 mcos::COSInterfacePtr::operator*+00002820
[ 24] 0x000000007b0c594f E:\MATLAB\bin\win64\mcos.dll+00153935 omSetArrayElement+00001119
[ 25] 0x000000007b0c3532 E:\MATLAB\bin\win64\mcos.dll+00144690 mcos::COSValue::COSValue+00000546
[ 26] 0x000000007b0db7c1 E:\MATLAB\bin\win64\mcos.dll+00243649 omGetPropertyValueForInterpreterIndexing+00001313
[ 27] 0x0000000074e8ca05 E:\MATLAB\bin\win64\m_dispatcher.dll+00051717 Mfh_MATLAB_fn::dispatch_fh+00000453
[ 28] 0x0000000074e8ced2 E:\MATLAB\bin\win64\m_dispatcher.dll+00052946 Mfunction_handle::dispatch+00000802
[ 29] 0x0000000011aa6d48 E:\MATLAB\bin\win64\m_interpreter.dll+00683336 inDestroyWS+00240776
[ 30] 0x0000000011a1f9f7 E:\MATLAB\bin\win64\m_interpreter.dll+00129527 inFullEvalFcn+00022023
[ 31] 0x0000000011aaa877 E:\MATLAB\bin\win64\m_interpreter.dll+00698487 inDestroyWS+00255927
[ 32] 0x0000000011ac021f E:\MATLAB\bin\win64\m_interpreter.dll+00786975 inDestroyWS+00344415
[ 33] 0x0000000011ac0370 E:\MATLAB\bin\win64\m_interpreter.dll+00787312 inDestroyWS+00344752
[ 34] 0x0000000011a9f1dd E:\MATLAB\bin\win64\m_interpreter.dll+00651741 inDestroyWS+00209181
[ 35] 0x0000000011aa0bd0 E:\MATLAB\bin\win64\m_interpreter.dll+00658384 inDestroyWS+00215824
[ 36] 0x0000000011a8cf79 E:\MATLAB\bin\win64\m_interpreter.dll+00577401 inDestroyWS+00134841
[ 37] 0x0000000074e8c64f E:\MATLAB\bin\win64\m_dispatcher.dll+00050767 Mfh_file::dispatch_fh+00000623
[ 38] 0x0000000074e8ced2 E:\MATLAB\bin\win64\m_dispatcher.dll+00052946 Mfunction_handle::dispatch+00000802
[ 39] 0x0000000011aa6d48 E:\MATLAB\bin\win64\m_interpreter.dll+00683336 inDestroyWS+00240776
[ 40] 0x0000000011a1f9f7 E:\MATLAB\bin\win64\m_interpreter.dll+00129527 inFullEvalFcn+00022023
[ 41] 0x0000000011aaa877 E:\MATLAB\bin\win64\m_interpreter.dll+00698487 inDestroyWS+00255927
[ 42] 0x0000000011ac021f E:\MATLAB\bin\win64\m_interpreter.dll+00786975 inDestroyWS+00344415
[ 43] 0x0000000011ac0370 E:\MATLAB\bin\win64\m_interpreter.dll+00787312 inDestroyWS+00344752
[ 44] 0x0000000011a9f1dd E:\MATLAB\bin\win64\m_interpreter.dll+00651741 inDestroyWS+00209181
[ 45] 0x0000000011aa0bd0 E:\MATLAB\bin\win64\m_interpreter.dll+00658384 inDestroyWS+00215824
[ 46] 0x0000000011a8cf79 E:\MATLAB\bin\win64\m_interpreter.dll+00577401 inDestroyWS+00134841
[ 47] 0x0000000074e8c64f E:\MATLAB\bin\win64\m_dispatcher.dll+00050767 Mfh_file::dispatch_fh+00000623
[ 48] 0x0000000074e8ced2 E:\MATLAB\bin\win64\m_dispatcher.dll+00052946 Mfunction_handle::dispatch+00000802
[ 49] 0x0000000011a0e70e E:\MATLAB\bin\win64\m_interpreter.dll+00059150 inValidateLoadedObject+00002350
[ 50] 0x0000000011b16495 E:\MATLAB\bin\win64\m_interpreter.dll+01139861 IInterpreter::IInterpreter+00000229
[ 51] 0x0000000011b1ca45 E:\MATLAB\bin\win64\m_interpreter.dll+01165893 inRegisterFunctionHandles+00004405
[ 52] 0x0000000011b1ca12 E:\MATLAB\bin\win64\m_interpreter.dll+01165842 inRegisterFunctionHandles+00004354
[ 53] 0x0000000011b1c9d7 E:\MATLAB\bin\win64\m_interpreter.dll+01165783 inRegisterFunctionHandles+00004295
[ 54] 0x0000000011b0ba0e E:\MATLAB\bin\win64\m_interpreter.dll+01096206 inGetSeqVarPtrsFromCurrentWS+00005742
[ 55] 0x0000000011a0be89 E:\MATLAB\bin\win64\m_interpreter.dll+00048777 inEvalCmdWithLocalReturn+00000329
[ 56] 0x0000000011a0bdcc E:\MATLAB\bin\win64\m_interpreter.dll+00048588 inEvalCmdWithLocalReturn+00000140
[ 57] 0x0000000011a0bd81 E:\MATLAB\bin\win64\m_interpreter.dll+00048513 inEvalCmdWithLocalReturn+00000065
[ 58] 0x0000000079fbbecd E:\MATLAB\bin\win64\libmwbridge.dll+00048845 mnDebugPrompt+00000109
[ 59] 0x0000000079fbd01b E:\MATLAB\bin\win64\libmwbridge.dll+00053275 mnParser+00000763
[ 60] 0x000000007499daa4 E:\MATLAB\bin\win64\mcr.dll+00187044 mcrInstance::mnParser_on_interpreter_thread+00000036
[ 61] 0x0000000074982220 E:\MATLAB\bin\win64\mcr.dll+00074272 mcr::setInterpreterThreadToCurrent+00031664
[ 62] 0x0000000074982280 E:\MATLAB\bin\win64\mcr.dll+00074368 mcr::setInterpreterThreadToCurrent+00031760
[ 63] 0x000000001302f9d6 E:\MATLAB\bin\win64\uiw.dll+00391638 UIW_IsUserMessage+00000086
[ 64] 0x0000000013030095 E:\MATLAB\bin\win64\uiw.dll+00393365 UIW_SetGLIMUserMsg+00000117
[ 65] 0x00007ff92dee0b0e C:\WINDOWS\system32\USER32.dll+00199438 CreateWindowStationA+00000846
[ 66] 0x00007ff92decd4ff C:\WINDOWS\system32\USER32.dll+00120063 GetPropW+00000719
[ 67] 0x00007ff92decd466 C:\WINDOWS\system32\USER32.dll+00119910 GetPropW+00000566
[ 68] 0x00007ff92eca88a4 C:\WINDOWS\SYSTEM32\ntdll.dll+00690340 KiUserCallbackDispatcher+00000036
[ 69] 0x00007ff92dee1ed4 C:\WINDOWS\system32\USER32.dll+00204500 Ordinal2559+00000148
[ 70] 0x00007ff92decc7dc C:\WINDOWS\system32\USER32.dll+00116700 PeekMessageW+00000364
[ 71] 0x00007ff92decc640 C:\WINDOWS\system32\USER32.dll+00116288 PeekMessageA+00000256
[ 72] 0x0000000013009a1b E:\MATLAB\bin\win64\uiw.dll+00236059 UIW_SetCurrentDialog+00000731
[ 73] 0x0000000013031532 E:\MATLAB\bin\win64\uiw.dll+00398642 ws_FreeSystemFont+00000482
[ 74] 0x00000001800d8930 E:\MATLAB\bin\win64\libmwservices.dll+00887088 services::system_events::PpeDispatchHook::~PpeDispatchHook+00055600
[ 75] 0x00000001800d92f5 E:\MATLAB\bin\win64\libmwservices.dll+00889589 services::system_events::PpeDispatchHook::~PpeDispatchHook+00058101
[ 76] 0x00000001800da100 E:\MATLAB\bin\win64\libmwservices.dll+00893184 services::system_events::PpeDispatchHook::~PpeDispatchHook+00061696
[ 77] 0x00000001800e28d2 E:\MATLAB\bin\win64\libmwservices.dll+00927954 svWS_ProcessPendingEvents+00001090
[ 78] 0x000000007498329d E:\MATLAB\bin\win64\mcr.dll+00078493 mcr::setInterpreterThreadToCurrent+00035885
[ 79] 0x0000000074983562 E:\MATLAB\bin\win64\mcr.dll+00079202 mcr::setInterpreterThreadToCurrent+00036594
[ 80] 0x0000000074976915 E:\MATLAB\bin\win64\mcr.dll+00026901 mcrInstantiationError::operator=+00003781
[ 81] 0x0000000074979d52 E:\MATLAB\bin\win64\mcr.dll+00040274 mcr_invoke_on_interpreter_thread+00001602
[ 82] 0x0000000140005591 E:\MATLAB\bin\win64\MATLAB.exe+00021905
[ 83] 0x0000000140005c3a E:\MATLAB\bin\win64\MATLAB.exe+00023610
[ 84] 0x0000000140006103 E:\MATLAB\bin\win64\MATLAB.exe+00024835
[ 85] 0x00007ff92c058102 C:\WINDOWS\system32\KERNEL32.DLL+00098562 BaseThreadInitThunk+00000034
[ 86] 0x00007ff92ec5c2e4 C:\WINDOWS\SYSTEM32\ntdll.dll+00377572 RtlUserThreadStart+00000052
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.** This crash report has been saved to disk as C:\Users\DELL\AppData\Local\Temp\matlab_crash_dump.10236-1
Caught MathWorks::System::FatalException
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Results, Reporting, and Test File Management 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!