Access violation error by debugging own functions

2 views (last 30 days)
Hi. I have started getting these messages several times per day since last two weeks when debugging own functions that merely call functions within matlab. The strange thing is that I can debug the functions perfectly the first 2 or 3 times and after that this error (see below) usually turns out.
No external libraries are called in the functions nor .mat files are read or saved.
Matlab runs from a virtual Server, no local computer is available.
Thanks in advance!
------------------------------------------------------------------------ Access violation detected at Mon Aug 03 14:25:26 2015 ------------------------------------------------------------------------
Configuration: Crash Decoding : Disabled Default Encoding : windows-1252 MATLAB Architecture: win64 MATLAB Root : C:\Program Files\MATLAB\R2014a MATLAB Version : 8.3.0.532 (R2014a) Operating System : Microsoft Windows 7 Professional Processor ID : x86 Family 6 Model 62 Stepping 4, GenuineIntel Virtual Machine : Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot™ 64-Bit Server VM mixed mode Window System : Version 6.1 (Build 7601: Service Pack 1)
Fault Count: 1
Abnormal termination: Access violation
Register State (from fault): RAX = 0000000000000000 RBX = 0000000000000000 RCX = 0000000000000002 RDX = 000000000401ffd8 RSP = 000000000401ffa0 RBP = 0000000004020000 RSI = 0000000004020110 RDI = 00000000040206c8
R8 = 00000000ffd00003 R9 = 00000000184c2d90
R10 = 0000000000000020 R11 = 0000000017a79be0
R12 = 00000000fffffffd R13 = 0000000026b17610
R14 = 0000000026b17610 R15 = 00000000ffffffff
RIP = 00000000046ecac8 EFL = 00010202
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault): [ 0] 0x00000000046ecac8 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00641736 MathWorks::MException::MExceptionEnvelope::GetID+00436536 [ 1] 0x00000000046c8227 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00492071 MathWorks::MException::MExceptionEnvelope::GetID+00286871 [ 2] 0x000000000470ccf0 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00773360 inDestroyWS+00004880 [ 3] 0x00000000046d76f9 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00554745 MathWorks::MException::MExceptionEnvelope::GetID+00349545 [ 4] 0x00000000046d9350 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00562000 MathWorks::MException::MExceptionEnvelope::GetID+00356800 [ 5] 0x00000000046f446f C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00672879 MathWorks::MException::MExceptionEnvelope::GetID+00467679 [ 6] 0x00000000046f45b8 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00673208 MathWorks::MException::MExceptionEnvelope::GetID+00468008 [ 7] 0x00000000046e4a2d C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00608813 MathWorks::MException::MExceptionEnvelope::GetID+00403613 [ 8] 0x00000000046e192c C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00596268 MathWorks::MException::MExceptionEnvelope::GetID+00391068 [ 9] 0x00000000046f11c9 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00659913 MathWorks::MException::MExceptionEnvelope::GetID+00454713 [ 10] 0x000000000417be4f C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00048719 Mfh_file::dispatch_fh+00000687 [ 11] 0x000000000417c77a C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00051066 Mfunction_handle::dispatch+00000810 [ 12] 0x00000000046dcdfe C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00577022 MathWorks::MException::MExceptionEnvelope::GetID+00371822 [ 13] 0x00000000046d9569 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00562537 MathWorks::MException::MExceptionEnvelope::GetID+00357337 [ 14] 0x00000000046f446f C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00672879 MathWorks::MException::MExceptionEnvelope::GetID+00467679 [ 15] 0x00000000046f45b8 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00673208 MathWorks::MException::MExceptionEnvelope::GetID+00468008 [ 16] 0x00000000046e4a2d C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00608813 MathWorks::MException::MExceptionEnvelope::GetID+00403613 [ 17] 0x00000000046e192c C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00596268 MathWorks::MException::MExceptionEnvelope::GetID+00391068 [ 18] 0x00000000046f11c9 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00659913 MathWorks::MException::MExceptionEnvelope::GetID+00454713 [ 19] 0x000000000417be4f C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00048719 Mfh_file::dispatch_fh+00000687 [ 20] 0x000000000417c77a C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00051066 Mfunction_handle::dispatch+00000810 [ 21] 0x00000000046dcdfe C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00577022 MathWorks::MException::MExceptionEnvelope::GetID+00371822 [ 22] 0x00000000046d9569 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00562537 MathWorks::MException::MExceptionEnvelope::GetID+00357337 [ 23] 0x00000000046f446f C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00672879 MathWorks::MException::MExceptionEnvelope::GetID+00467679 [ 24] 0x00000000046f45b8 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00673208 MathWorks::MException::MExceptionEnvelope::GetID+00468008 [ 25] 0x00000000046e4a2d C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00608813 MathWorks::MException::MExceptionEnvelope::GetID+00403613 [ 26] 0x00000000046e192c C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00596268 MathWorks::MException::MExceptionEnvelope::GetID+00391068 [ 27] 0x00000000046f11c9 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00659913 MathWorks::MException::MExceptionEnvelope::GetID+00454713 [ 28] 0x000000000417be4f C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00048719 Mfh_file::dispatch_fh+00000687 [ 29] 0x000000000417c77a C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00051066 Mfunction_handle::dispatch+00000810 [ 30] 0x0000000004735d06 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00941318 in_is_matlab_function+00012502 [ 31] 0x0000000004745d37 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01006903 inCallFcn+00000071 [ 32] 0x0000000004748735 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01017653 inFullFevalFcn+00000245 [ 33] 0x000000000417c07f C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00049279 Mfh_file::dispatch_fh+00001247 [ 34] 0x000000000417c637 C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00050743 Mfunction_handle::dispatch+00000487 [ 35] 0x00000000046dcdfe C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00577022 MathWorks::MException::MExceptionEnvelope::GetID+00371822 [ 36] 0x00000000046d9569 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00562537 MathWorks::MException::MExceptionEnvelope::GetID+00357337 [ 37] 0x00000000046f446f C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00672879 MathWorks::MException::MExceptionEnvelope::GetID+00467679 [ 38] 0x00000000046f45b8 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00673208 MathWorks::MException::MExceptionEnvelope::GetID+00468008 [ 39] 0x00000000046e4a2d C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00608813 MathWorks::MException::MExceptionEnvelope::GetID+00403613 [ 40] 0x00000000046e192c C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00596268 MathWorks::MException::MExceptionEnvelope::GetID+00391068 [ 41] 0x00000000046f11c9 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00659913 MathWorks::MException::MExceptionEnvelope::GetID+00454713 [ 42] 0x000000000417be4f C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00048719 Mfh_file::dispatch_fh+00000687 [ 43] 0x000000000417c77a C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00051066 Mfunction_handle::dispatch+00000810 [ 44] 0x00000000046dcdfe C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00577022 MathWorks::MException::MExceptionEnvelope::GetID+00371822 [ 45] 0x00000000047568a7 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01075367 inEachVisibleName+00016119 [ 46] 0x00000000046dab1a C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00568090 MathWorks::MException::MExceptionEnvelope::GetID+00362890 [ 47] 0x00000000046f446f C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00672879 MathWorks::MException::MExceptionEnvelope::GetID+00467679 [ 48] 0x00000000046f45b8 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00673208 MathWorks::MException::MExceptionEnvelope::GetID+00468008 [ 49] 0x00000000046e4a2d C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00608813 MathWorks::MException::MExceptionEnvelope::GetID+00403613 [ 50] 0x00000000046e192c C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00596268 MathWorks::MException::MExceptionEnvelope::GetID+00391068 [ 51] 0x00000000046f11c9 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+00659913 MathWorks::MException::MExceptionEnvelope::GetID+00454713 [ 52] 0x000000000417c00e C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00049166 Mfh_file::dispatch_fh+00001134 [ 53] 0x000000000417c77a C:\Program Files\MATLAB\R2014a\bin\win64\m_dispatcher.dll+00051066 Mfunction_handle::dispatch+00000810 [ 54] 0x0000000004764a0e C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01133070 inValidateLoadedObject+00003486 [ 55] 0x000000000476bd95 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01162645 inResetInterpreter+00005029 [ 56] 0x0000000004770a05 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01182213 MathWorks::MException::MExceptionEnvelope::Copy+00010997 [ 57] 0x00000000047709d2 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01182162 MathWorks::MException::MExceptionEnvelope::Copy+00010946 [ 58] 0x0000000004770997 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+01182103 MathWorks::MException::MExceptionEnvelope::Copy+00010887 [ 59] 0x0000000004b5e89c C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+05302428 inMexPutVariable+00004204 [ 60] 0x0000000004b5ebf6 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+05303286 inMexPutVariable+00005062 [ 61] 0x0000000004b5f02e C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+05304366 inMexPutVariable+00006142 [ 62] 0x0000000004b5f36c C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+05305196 inMexPutVariable+00006972 [ 63] 0x0000000004a70161 C:\Program Files\MATLAB\R2014a\bin\win64\m_interpreter.dll+04325729 inEvalCmdWithLocalReturn+00000065 [ 64] 0x00000000050cbecd C:\Program Files\MATLAB\R2014a\bin\win64\libmwbridge.dll+00048845 mnDebugPrompt+00000109 [ 65] 0x00000000050ccfaf C:\Program Files\MATLAB\R2014a\bin\win64\libmwbridge.dll+00053167 mnParser+00000735 [ 66] 0x00000000fd0afae4 C:\Program Files\MATLAB\R2014a\bin\win64\mcr.dll+00195300 mcrInstance::mnParser_on_interpreter_thread+00000036 [ 67] 0x00000000fd093af0 C:\Program Files\MATLAB\R2014a\bin\win64\mcr.dll+00080624 mcr::runtime::setInterpreterThreadToCurrent+00029488 [ 68] 0x00000000fd093b50 C:\Program Files\MATLAB\R2014a\bin\win64\mcr.dll+00080720 mcr::runtime::setInterpreterThreadToCurrent+00029584 [ 69] 0x00000000fab6e026 C:\Program Files\MATLAB\R2014a\bin\win64\uiw.dll+00581670 UIW_IsUserMessage+00000086 [ 70] 0x00000000fab6e705 C:\Program Files\MATLAB\R2014a\bin\win64\uiw.dll+00583429 UIW_SetGLIMUserMsg+00000117 [ 71] 0x00000000fab6e789 C:\Program Files\MATLAB\R2014a\bin\win64\uiw.dll+00583561 UIW_SetGLIMUserMsg+00000249 [ 72] 0x00000000777e87fe C:\Windows\system32\USER32.dll+00165886 GetMenuBarInfo+00000638 [ 73] 0x00000000777cf5fb C:\Windows\system32\USER32.dll+00062971 SystemParametersInfoW+00000235 [ 74] 0x00000000777d4895 C:\Windows\system32\USER32.dll+00084117 IsProcessDPIAware+00000465 [ 75] 0x000000007790dae5 C:\Windows\SYSTEM32\ntdll.dll+00318181 KiUserCallbackDispatcher+00000031 [ 76] 0x00000000777d908a C:\Windows\system32\USER32.dll+00102538 PeekMessageW+00000186 [ 77] 0x00000000777d50fe C:\Windows\system32\USER32.dll+00086270 GetKeyState+00000238 [ 78] 0x00000000777d3a6f C:\Windows\system32\USER32.dll+00080495 PeekMessageA+00000087 [ 79] 0x00000000fab1bd4b C:\Program Files\MATLAB\R2014a\bin\win64\uiw.dll+00245067 UIW_SetCurrentDialog+00000731 [ 80] 0x00000000fab6fbe2 C:\Program Files\MATLAB\R2014a\bin\win64\uiw.dll+00588770 ws_FreeSystemFont+00000482 [ 81] 0x00000001000e2ed0 C:\Program Files\MATLAB\R2014a\bin\win64\libmwservices.dll+00995024 services::system_events::PpeDispatchHook::~PpeDispatchHook+00053488 [ 82] 0x00000001000e36a5 C:\Program Files\MATLAB\R2014a\bin\win64\libmwservices.dll+00997029 services::system_events::PpeDispatchHook::~PpeDispatchHook+00055493 [ 83] 0x00000001000e4330 C:\Program Files\MATLAB\R2014a\bin\win64\libmwservices.dll+01000240 services::system_events::PpeDispatchHook::~PpeDispatchHook+00058704 [ 84] 0x00000001000ed4c6 C:\Program Files\MATLAB\R2014a\bin\win64\libmwservices.dll+01037510 sysq::removeProcessPendingEventsHook+00011030 [ 85] 0x00000001000ed7ca C:\Program Files\MATLAB\R2014a\bin\win64\libmwservices.dll+01038282 svWS_ProcessPendingEvents+00000138 [ 86] 0x00000000fd094b6d C:\Program Files\MATLAB\R2014a\bin\win64\mcr.dll+00084845 mcr::runtime::setInterpreterThreadToCurrent+00033709 [ 87] 0x00000000fd094e3b C:\Program Files\MATLAB\R2014a\bin\win64\mcr.dll+00085563 mcr::runtime::setInterpreterThreadToCurrent+00034427 [ 88] 0x00000000fd088b75 C:\Program Files\MATLAB\R2014a\bin\win64\mcr.dll+00035701 mcrInstantiationError::operator=+00003221 [ 89] 0x00000000fd08bea2 C:\Program Files\MATLAB\R2014a\bin\win64\mcr.dll+00048802 mcr_invoke_on_interpreter_thread+00001602 [ 90] 0x00000000fa7e6e5d C:\Program Files\MATLAB\R2014a\bin\win64\MVMLocal.dll+00159325 mvm_server::inproc::LocalFactory::createMVM+00040653 [ 91] 0x00000000051bafaa C:\Program Files\MATLAB\R2014a\bin\win64\mvm.dll+00569258 mvm::detail::SessionImpl::privateSession+00001754 [ 92] 0x00000000051bd32a C:\Program Files\MATLAB\R2014a\bin\win64\mvm.dll+00578346 mvm::detail::SessionImpl::privateSession+00010842 [ 93] 0x00000000051bce85 C:\Program Files\MATLAB\R2014a\bin\win64\mvm.dll+00577157 mvm::detail::SessionImpl::privateSession+00009653 [ 94] 0x0000000140004f79 C:\Program Files\MATLAB\R2014a\bin\win64\MATLAB.exe+00020345 [ 95] 0x0000000140006a07 C:\Program Files\MATLAB\R2014a\bin\win64\MATLAB.exe+00027143 [ 96] 0x00000000776b59cd C:\Windows\system32\kernel32.dll+00088525 BaseThreadInitThunk+00000013 [ 97] 0x00000000778eb891 C:\Windows\SYSTEM32\ntdll.dll+00178321 RtlUserThreadStart+00000033
  1 Comment
sm
sm on 4 Aug 2015
Edited: sm on 4 Aug 2015
I get similar error sometimes when I use the database toolbox
C:\Windows\system32\kernel32.dll+00088525 BaseThreadInitThunk+00000013
I contacted Mathworks technical support and after a couple of weeks, they told me that they cannot reproduce the error on their end and thus they cannot assist me further! If you find a solution I would be very interested.

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!