Matlab crash - Access Violation During VideoWriter Script

1 次查看(过去 30 天)
Thank you ahead of time for taking the time to read through this.
I am currently creating a Matlab program that manages multiple video objects. Specifically, it is a scheduling program for 16 cameras. It allows a user create recording schedules for the 16 cameras while synchronizing these recordings with another data acquisition device through the sending of network packets (managed by a different mex file). It also has features to review the video and data in synchrony, but that is beside the point.
The whole project is created in Matlab's GUIDE and has a fairly simple architecture. A user enters values into a table for scheduling the cameras, clicks on record, and a timer is created to manage the video file schedule. In the simplest recording scenario, I get an error. The user clicks record and a timer is created that is called every five minutes to 'split' the video files. It does this by calling a function that stops all of the video objects, closes the files, clears them from memory, creates new ones, and begins writing to new files. After this timer callback finishes executing, Matlab then usually attempts to call a privateGetVideoWriterLoggerFcn (for some reason) which attempts to point to the diskLogger property of a video input object. The problem is that this video input object was cleared in the timercallback, so this Matlab private function errors. This is strange and unexpected behavior for me. It is almost as if Matlab's invisible timer used for that function is queuing its calls instead of dropping them in the case of a busy response from Matlab.
Periodically, I get a Matlab crash just before Matlab attempts to call the privateGetVideoWriterLoggerFcn. The crash dump is below:
------------------------------------------------------------------------
Access violation detected at Wed Nov 23 06:57:19 2016
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Crash Mode : continue (default)
Current Graphics Driver: Unknown hardware
Default Encoding : windows-1252
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics Version 10.18.10.3958
Graphics card 2 : NVIDIA ( 0x10de ) NVIDIA GeForce GTX 650 Version 9.18.13.4709
Host Name : ENGRLAB-001
MATLAB Architecture : win32
MATLAB Root : C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a
MATLAB Version : 8.5.0.197613 (R2015a)
OpenGL : hardware
Operating System : Microsoft Windows 7 Professional
Processor ID : x86 Family 6 Model 58 Stepping 9, GenuineIntel
Virtual Machine : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) Client VM mixed mode
Window System : Version 6.1 (Build 7601: Service Pack 1)
Fault Count: 1
Abnormal termination:
Access violation
Register State (from fault):
EAX = 30da0087 EBX = 00000001
ECX = 3b1f0da8 EDX = 4264b0c0
ESP = 00c2c0bc EBP = 00c2c14c
ESI = 3b1f0da8 EDI = 3adc3a90
EIP = ffffff00 EFL = 00010202
CS = 00000023 DS = 0000002b SS = 0000002b
ES = 0000002b FS = 00000053 GS = 0000002b
Stack Trace (from fault):
[ 0] 0xffffff00 <unknown-module>+00000000
[ 1] 0x30d7ff93 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\tamobjsys.dll+00065427 tamobjsys::MCallbackEvent::execute+00000499
[ 2] 0x63dd9f6d C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\tamutil.dll+00040813 tamutil::EventQueue::processEvent+00000061
[ 3] 0x63dda0ad C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\tamutil.dll+00041133 tamutil::EventQueue::processEvents+00000285
[ 4] 0x63dda170 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\tamutil.dll+00041328 tamutil::EventQueue::processEvents+00000016
[ 5] 0x2bc53e0d C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\tammex.dll+00015885 tammex::MEventManager::getInstance+00000173
[ 6] 0x036da015 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\iqm.dll+00499733 boost::archive::detail::ptr_serialization_support<boost::archive::xml_oarchive,iqm::PackagedTaskIIP>::instantiate+00000949
[ 7] 0x036c2f8e C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\iqm.dll+00405390 iqm::PackagedTaskCompletedEvent::type+00005326
[ 8] 0x036d3496 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\iqm.dll+00472214 iqm::PackagedTaskIIP::~PackagedTaskIIP+00002710
[ 9] 0x036d9d78 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\iqm.dll+00499064 boost::archive::detail::ptr_serialization_support<boost::archive::xml_oarchive,iqm::PackagedTaskIIP>::instantiate+00000280
[ 10] 0x036dc623 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\iqm.dll+00509475 iqm::PackagedTaskPlugin::PackagedTaskPlugin+00000403
[ 11] 0x036dc937 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\iqm.dll+00510263 iqm::PackagedTaskPlugin::execute+00000103
[ 12] 0x7cfa900f C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\mcr.dll+00233487 mcrRegisterExternalFunction+00015839
[ 13] 0x0369282b C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\iqm.dll+00206891 iqm::Iqm::setupIqmFcnPtrs+00028795
[ 14] 0x036922dd C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\iqm.dll+00205533 iqm::Iqm::setupIqmFcnPtrs+00027437
[ 15] 0x0368334e C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\iqm.dll+00144206 iqm::Iqm::deliver+00003246
[ 16] 0x7b7216ab C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\uiw.dll+00464555 UIW_AttachThreadInput+00000843
[ 17] 0x7b7210e7 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\uiw.dll+00463079 wsd_to_MSW+00004039
[ 18] 0x7b72119b C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\uiw.dll+00463259 wsd_to_MSW+00004219
[ 19] 0x75658f26 C:\Windows\syswow64\USER32.dll+00167718 RemovePropA+00000178
[ 20] 0x756480a9 C:\Windows\syswow64\USER32.dll+00098473 GetUserObjectInformationW+00000065
[ 21] 0x75648ba1 C:\Windows\syswow64\USER32.dll+00101281 RegisterClassW+00000316
[ 22] 0x77cf011a C:\Windows\SysWOW64\ntdll.dll+00065818 KiUserCallbackDispatcher+00000046
[ 23] 0x7b6d5945 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\uiw.dll+00153925 UIW_ShowMenuItem+00005397
[ 24] 0x7b6d2a9e C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\uiw.dll+00141982 uiwInitializeInstance+00000446
[ 25] 0x047692f6 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\libmwbridge.dll+00037622 ioReadLine+00003798
[ 26] 0x047685e8 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\libmwbridge.dll+00034280 ioReadLine+00000456
[ 27] 0x047682d0 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\libmwbridge.dll+00033488 ioCmdLineEditSave+00011472
[ 28] 0x04768405 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\libmwbridge.dll+00033797 ioReadLine+00000117
[ 29] 0x0476e998 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\libmwbridge.dll+00059800 mnDebugPrompt+00001304
[ 30] 0x0476e592 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\libmwbridge.dll+00058770 mnDebugPrompt+00000274
[ 31] 0x0476ec3d C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\libmwbridge.dll+00060477 mnParser+00000509
[ 32] 0x7cfcdf03 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\mcr.dll+00384771 mcrInstance::mnParser_on_interpreter_thread+00000051
[ 33] 0x7cf98dc5 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\mcr.dll+00167365 mcr::runtime::setInterpreterThreadToCurrent+00017765
[ 34] 0x7cf98e36 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\mcr.dll+00167478 mcr::runtime::setInterpreterThreadToCurrent+00017878
[ 35] 0x7cf9a60f C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\mcr.dll+00173583 mcr::runtime::setInterpreterThreadToCurrent+00023983
[ 36] 0x7cf9a562 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\mcr.dll+00173410 mcr::runtime::setInterpreterThreadToCurrent+00023810
[ 37] 0x7cf995b6 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\mcr.dll+00169398 mcr::runtime::setInterpreterThreadToCurrent+00019798
[ 38] 0x7b7216ab C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\uiw.dll+00464555 UIW_AttachThreadInput+00000843
[ 39] 0x7b7210e7 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\uiw.dll+00463079 wsd_to_MSW+00004039
[ 40] 0x7b72119b C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\uiw.dll+00463259 wsd_to_MSW+00004219
[ 41] 0x75658f26 C:\Windows\syswow64\USER32.dll+00167718 RemovePropA+00000178
[ 42] 0x756480a9 C:\Windows\syswow64\USER32.dll+00098473 GetUserObjectInformationW+00000065
[ 43] 0x75648ba1 C:\Windows\syswow64\USER32.dll+00101281 RegisterClassW+00000316
[ 44] 0x77cf011a C:\Windows\SysWOW64\ntdll.dll+00065818 KiUserCallbackDispatcher+00000046
[ 45] 0x756571ac C:\Windows\syswow64\USER32.dll+00160172 PeekMessageA+00000360
[ 46] 0x7b6d55ba C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\uiw.dll+00153018 UIW_ShowMenuItem+00004490
[ 47] 0x7b721f74 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\uiw.dll+00466804 UIW_SuspendAttachThreadInput+00000564
[ 48] 0x01004d44 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\libmwservices.dll+01199428 services::system_events::PpeDispatchHook::dispatchOne+00029092
[ 49] 0x01011496 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\libmwservices.dll+01250454 sysq::addProcessPendingEventsUnitTestHook+00007702
[ 50] 0x01002dce C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\libmwservices.dll+01191374 services::system_events::PpeDispatchHook::dispatchOne+00021038
[ 51] 0x01011541 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\libmwservices.dll+01250625 sysq::addProcessPendingEventsUnitTestHook+00007873
[ 52] 0x01012ff9 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\libmwservices.dll+01257465 sysq::getCondition+00004105
[ 53] 0x0101478b C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\libmwservices.dll+01263499 svWS_ProcessPendingEvents+00000139
[ 54] 0x010146f0 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\libmwservices.dll+01263344 svWS_ProcessPendingEvents+00000016
[ 55] 0x7cf99c61 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\mcr.dll+00171105 mcr::runtime::setInterpreterThreadToCurrent+00021505
[ 56] 0x7cf9a7dd C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\mcr.dll+00174045 mcr::runtime::setInterpreterThreadToCurrent+00024445
[ 57] 0x7cf92cbf C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\mcr.dll+00142527 mcr_process_events+00006879
[ 58] 0x7cf946e3 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\mcr.dll+00149219 mcr_process_events+00013571
[ 59] 0x070db154 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\MVMLocal.dll+00176468 mvm_server::inproc::LocalFactory::terminate+00047604
[ 60] 0x7b3f267d C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\mvm.dll+00861821 mvm::detail::initLocalMvmHack+00000381
[ 61] 0x7b3f183b C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\mvm.dll+00858171 mvm::detail::RequestMvmMessage::toString+00008171
[ 62] 0x7b3f2c9d C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\mvm.dll+00863389 mvm::detail::SessionImpl::privateSession+00000285
[ 63] 0x7b3f2e63 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\mvm.dll+00863843 mvm::detail::SessionImpl::privateSession+00000739
[ 64] 0x00405efd C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\MATLAB.exe+00024317
[ 65] 0x00407835 C:\Program Files (x86)\MATLAB\MATLAB Production Server\R2015a\bin\win32\MATLAB.exe+00030773
[ 66] 0x75c6336a C:\Windows\syswow64\kernel32.dll+00078698 BaseThreadInitThunk+00000018
[ 67] 0x77d19902 C:\Windows\SysWOW64\ntdll.dll+00235778 RtlInitializeExceptionChain+00000099
[ 68] 0x77d198d5 C:\Windows\SysWOW64\ntdll.dll+00235733 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.
I am not fully understanding the stack trace. As far as Tamutil.dll, the closest I have found is something like this: http://stackoverflow.com/questions/30711935/matlab-crash-during-acquisition-of-pointgrey-images, but I can't change my video input method. The overhead would be too much for Matlab/the PC/my sychronization to handle.
Can anybody help better interpret the stack trace or suggest any solution to this crash?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by