Segmentation violation detected imaqmex

4 views (last 30 days)
ambroise
ambroise on 11 Jun 2014
Edited: Walter Roberson on 25 Jul 2018
I have a crash in matlab 2013a using the image acquisition toolbox. It is not reproducible in the way that it appears at random moments.
I am capturing frames at ~100Hz from a camera using a timer and getsnapshot and then write them into a binary file. Sometimes Matlab crashes after a few minutes, but it may last hours without problem.
Thank you for your help.
Matlab crash report is below.
------------------------------------------------------------------------
Segmentation violation detected at Tue Jun 10 17:44:28 2014
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Default Encoding : windows-1252
MATLAB Architecture: win32
MATLAB Root : C:\Program Files (x86)\MATLAB\R2013a
MATLAB Version : 8.1.0.604 (R2013a)
Operating System : Microsoft Windows 7
Processor ID : x86 Family 6 Model 26 Stepping 5, GenuineIntel
Virtual Machine : Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
Window System : Version 6.1 (Build 7601: Service Pack 1)
Fault Count: 2
Abnormal termination:
Segmentation violation
Register State (from fault):
EAX = 248242b8 EBX = 2dfa4ee0
ECX = 048b0000 EDX = 2dfa4ee0
ESP = 00c23a08 EBP = 00c23a3c
ESI = 6cf91e81 EDI = 2dfa4ed8
EIP = 771be3be EFL = 00010206
CS = 00000023 DS = 0000002b SS = 0000002b
ES = 0000002b FS = 00000053 GS = 0000002b
Stack Trace (from fault):
[ 0] 0x771be3be C:\Windows\SysWOW64\ntdll.dll+00189374 RtlInitUnicodeString+00000406
[ 1] 0x771be023 C:\Windows\SysWOW64\ntdll.dll+00188451 RtlFreeHeap+00000126
[ 2] 0x753714ad C:\Windows\syswow64\kernel32.dll+00070829 HeapFree+00000020
[ 3] 0x0033016a C:\Program Files (x86)\MATLAB\R2013a\bin\win32\MSVCR100.dll+00065898 free+00000028
[ 4] 0x2752bb06 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\tamutil.dll+00047878 tamutil::TMCriticalSection::~TMCriticalSection+00000038
[ 5] 0x2ac387ed C:\Program Files (x86)\MATLAB\R2013a\toolbox\imaq\imaq\imaqmex.mexw32+00100333
[ 6] 0x2ac45a1d C:\Program Files (x86)\MATLAB\R2013a\toolbox\imaq\imaq\imaqmex.mexw32+00154141
[ 7] 0x2ac459b9 C:\Program Files (x86)\MATLAB\R2013a\toolbox\imaq\imaq\imaqmex.mexw32+00154041
[ 8] 0x2ac3fd7e C:\Program Files (x86)\MATLAB\R2013a\toolbox\imaq\imaq\imaqmex.mexw32+00130430
[ 9] 0x031f8be3 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\udd.dll+00232419 UDMethodInfo::invokeMethodE+00000067
[ 10] 0x03eef4b8 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\udd_mi.dll+00259256 registerCheckIfHG2ObjectFcn+00027080
[ 11] 0x03eef76c C:\Program Files (x86)\MATLAB\R2013a\bin\win32\udd_mi.dll+00259948 registerCheckIfHG2ObjectFcn+00027772
[ 12] 0x723a3616 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\mcos.dll+00079382 mcos::COSInterface::getPreGetEvent+00001382
[ 13] 0x02e0cdd8 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00052696 Mfh_MATLAB_fn::dispatch_fh+00000728
[ 14] 0x02e0d139 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00053561 Mfunction_handle::dispatch+00000745
[ 15] 0x7b995884 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00481412 inDestroyWS+00203364
[ 16] 0x7b997ae7 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00490215 inDestroyWS+00212167
[ 17] 0x7b9a9ce7 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00564455 inDestroyWS+00286407
[ 18] 0x7b9a9e02 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00564738 inDestroyWS+00286690
[ 19] 0x7b98ee57 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00454231 inDestroyWS+00176183
[ 20] 0x7b9944e8 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00476392 inDestroyWS+00198344
[ 21] 0x7b9a7abe C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00555710 inDestroyWS+00277662
[ 22] 0x02e0c939 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00051513 Mfh_file::dispatch_fh+00000505
[ 23] 0x02e0d139 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00053561 Mfunction_handle::dispatch+00000745
[ 24] 0x7b995884 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00481412 inDestroyWS+00203364
[ 25] 0x7b997ae7 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00490215 inDestroyWS+00212167
[ 26] 0x7b9a9ce7 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00564455 inDestroyWS+00286407
[ 27] 0x7b9a9e02 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00564738 inDestroyWS+00286690
[ 28] 0x7b98ee57 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00454231 inDestroyWS+00176183
[ 29] 0x7b9944e8 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00476392 inDestroyWS+00198344
[ 30] 0x7b9a7abe C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00555710 inDestroyWS+00277662
[ 31] 0x02e0c939 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00051513 Mfh_file::dispatch_fh+00000505
[ 32] 0x02e0d139 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00053561 Mfunction_handle::dispatch+00000745
[ 33] 0x02e09eb5 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00040629 Mdispatcher::is_PartialPath+00000741
[ 34] 0x02e0e76c C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00059244 mdMxarrayFunctionHandle::isHiddenFunctionBinding+00000412
[ 35] 0x7db8d604 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\libmx.dll+00251396 mxFevalFunctionHandle+00000036
[ 36] 0x7b938746 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00100166 inFullFevalFcn+00000134
[ 37] 0x02e0d1fc C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00053756 Mfunction_handle::dispatch+00000940
[ 38] 0x02e0cffe C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00053246 Mfunction_handle::dispatch+00000430
[ 39] 0x7b995884 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00481412 inDestroyWS+00203364
[ 40] 0x7b997ae7 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00490215 inDestroyWS+00212167
[ 41] 0x7b9a9ce7 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00564455 inDestroyWS+00286407
[ 42] 0x7b9a9e02 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00564738 inDestroyWS+00286690
[ 43] 0x7b98ee57 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00454231 inDestroyWS+00176183
[ 44] 0x7b9944e8 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00476392 inDestroyWS+00198344
[ 45] 0x7b9a7abe C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00555710 inDestroyWS+00277662
[ 46] 0x02e0c939 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00051513 Mfh_file::dispatch_fh+00000505
[ 47] 0x02e0d139 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00053561 Mfunction_handle::dispatch+00000745
[ 48] 0x723bd720 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\mcos.dll+00186144 mcos::COSJITInterface::getClassOffset+00002224
[ 49] 0x02e0cdd8 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00052696 Mfh_MATLAB_fn::dispatch_fh+00000728
[ 50] 0x02e0d139 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00053561 Mfunction_handle::dispatch+00000745
[ 51] 0x7b995884 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00481412 inDestroyWS+00203364
[ 52] 0x7b997ae7 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00490215 inDestroyWS+00212167
[ 53] 0x7b9a9ce7 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00564455 inDestroyWS+00286407
[ 54] 0x7b9a9e02 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00564738 inDestroyWS+00286690
[ 55] 0x7b98ee57 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00454231 inDestroyWS+00176183
[ 56] 0x7b9944e8 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00476392 inDestroyWS+00198344
[ 57] 0x7b9a7abe C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00555710 inDestroyWS+00277662
[ 58] 0x02e0c939 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00051513 Mfh_file::dispatch_fh+00000505
[ 59] 0x02e0d139 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00053561 Mfunction_handle::dispatch+00000745
[ 60] 0x7b9e09f4 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00788980 MathWorks::MException::MExceptionEnvelope::ReplaceMExceptionData+00005172
[ 61] 0x7b9e0a95 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00789141 MathWorks::MException::MExceptionEnvelope::ReplaceMExceptionData+00005333
[ 62] 0x7b9e0b43 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+00789315 MathWorks::MException::MExceptionEnvelope::ReplaceMExceptionData+00005507
[ 63] 0x7bca4423 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\m_interpreter.dll+03687459 inCallFcnWithTrapInDesiredWS+00000039
[ 64] 0x02b2e6b5 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\iqm.dll+00779957 iqm::BaseFEvalPlugin::inCallFcnWithTrap+00000037
[ 65] 0x02b2fc86 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\iqm.dll+00785542 iqm::BaseFEvalPlugin::execute+00000230
[ 66] 0x2001b2ce C:\Program Files (x86)\MATLAB\R2013a\bin\win32\nativejmi.dll+00242382 nativejmi::JmiFEvalIIP::serializeExplicit+00009182
[ 67] 0x2004b62c C:\Program Files (x86)\MATLAB\R2013a\bin\win32\nativejmi.dll+00439852 Java_com_mathworks_jmi_Matlab_nativeGetMemOpt+00003084
[ 68] 0x02aeb5b0 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\iqm.dll+00505264 iqm::initialize+00025328
[ 69] 0x02ae0eb7 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\iqm.dll+00462519 iqm::IqmInputRequestEvent::EventType+00018711
[ 70] 0x02ae5071 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\iqm.dll+00479345 iqm::Iqm::deliver+00000129
[ 71] 0x02b7b55c C:\Program Files (x86)\MATLAB\R2013a\bin\win32\iqm.dll+01095004 cmddistributor::IIPEnqueueMessage::deliver+00000172
[ 72] 0x72b25051 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\mlutil.dll+01658961 mlutil::exchange::MessageQueue::deliver+00000193
[ 73] 0x72b258ca C:\Program Files (x86)\MATLAB\R2013a\bin\win32\mlutil.dll+01661130 mlutil::exchange::MessageQueue::deliver+00002362
[ 74] 0x72afe999 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\mlutil.dll+01501593 mlutil::testhelp::submitWithRouting+00015561
[ 75] 0x72b005ca C:\Program Files (x86)\MATLAB\R2013a\bin\win32\mlutil.dll+01508810 mlutil::testhelp::submitWithRouting+00022778
[ 76] 0x72af8188 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\mlutil.dll+01474952 mlutil::exchange::ReplyMessage::getOriginatorID+00007048
[ 77] 0x02aaf3bc C:\Program Files (x86)\MATLAB\R2013a\bin\win32\iqm.dll+00259004 cmddistributor::IIPEnqueueMessage::IIPEnqueueMessage+00001468
[ 78] 0x02ad2ae7 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\iqm.dll+00404199 cmddistributor::IIPEnqueueMessage::IIPEnqueueMessage+00146663
[ 79] 0x200425ac C:\Program Files (x86)\MATLAB\R2013a\bin\win32\nativejmi.dll+00402860 NativeLabCmdWinRemove+00149628
[ 80] 0x200428c7 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\nativejmi.dll+00403655 NativeLabCmdWinRemove+00150423
[ 81] 0x20043420 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\nativejmi.dll+00406560 NativeLabCmdWinRemove+00153328
[ 82] 0x20043695 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\nativejmi.dll+00407189 NativeLabCmdWinRemove+00153957
[ 83] 0x20043743 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\nativejmi.dll+00407363 NativeLabCmdWinRemove+00154131
[ 84] 0x082d11b2 C:\Program Files (x86)\MATLAB\R2013a\sys\java\jre\win32\jre\bin\client\jvm.dll+01118642 JVM_MonitorNotify+00000162
[ 85] 0x771be38c C:\Windows\SysWOW64\ntdll.dll+00189324 RtlInitUnicodeString+00000356
[ 86] 0x38343335 <unknown-module>+00000000
[ 87] 0x3031505f <unknown-module>+00000000
[ 88] 0x39312d30 <unknown-module>+00000000
Abnormal termination:
Segmentation violation
Register State (from fault):
EAX = 724a3b0c EBX = 2dfcc960
ECX = 048b0000 EDX = 2dfcc960
ESP = 310afdb8 EBP = 310afdec
ESI = 3a31b7c5 EDI = 2dfcc958
EIP = 771be3be EFL = 00010206
CS = 00000023 DS = 0000002b SS = 0000002b
ES = 0000002b FS = 00000053 GS = 0000002b
Stack Trace (from fault):
[ 0] 0x771be3be C:\Windows\SysWOW64\ntdll.dll+00189374 RtlInitUnicodeString+00000406
[ 1] 0x771be023 C:\Windows\SysWOW64\ntdll.dll+00188451 RtlFreeHeap+00000126
[ 2] 0x753714ad C:\Windows\syswow64\kernel32.dll+00070829 HeapFree+00000020
[ 3] 0x0033016a C:\Program Files (x86)\MATLAB\R2013a\bin\win32\MSVCR100.dll+00065898 free+00000028
[ 4] 0x27529953 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\tamutil.dll+00039251 tamutil::EventQueue::popEvent+00000195
[ 5] 0x27529c79 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\tamutil.dll+00040057 tamutil::EventQueue::processEvents+00000185
[ 6] 0x27529cf0 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\tamutil.dll+00040176 tamutil::EventQueue::processEvents+00000016
[ 7] 0x27532f8d C:\Program Files (x86)\MATLAB\R2013a\bin\win32\tamutil.dll+00077709 tamutil::WorkThread::run+00000109
[ 8] 0x27530abf C:\Program Files (x86)\MATLAB\R2013a\bin\win32\tamutil.dll+00068287 tamutil::Thread::getID+00007743
[ 9] 0x71204c23 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\boost_thread-vc100-mt-1_49.dll+00019491 boost::thread::~thread+00003171
[ 10] 0x0037c556 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\MSVCR100.dll+00378198 endthreadex+00000058
[ 11] 0x0037c600 C:\Program Files (x86)\MATLAB\R2013a\bin\win32\MSVCR100.dll+00378368 endthreadex+00000228
[ 12] 0x7537338a C:\Windows\syswow64\kernel32.dll+00078730 BaseThreadInitThunk+00000018
[ 13] 0x771c9f72 C:\Windows\SysWOW64\ntdll.dll+00237426 RtlInitializeExceptionChain+00000099
[ 14] 0x771c9f45 C:\Windows\SysWOW64\ntdll.dll+00237381 RtlInitializeExceptionChain+00000054
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.

Answers (1)

Image Analyst
Image Analyst on 11 Jun 2014
This is something only the Mathworks or the person/company who wrote your video adapter (such as the camera manufacturer) can answer.

Categories

Find more on Introduction to Installation and Licensing 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!