Access violation with parfor

9 views (last 30 days)
Hari
Hari on 14 Mar 2016
Commented: Hari on 15 Mar 2016
I had a long series of codes that worked well with both "for" as well as with changing to "parfor" version. Before sharing the code with others, I wanted to structure the code better by splitting specific parts in to separate scripts.
Unfortunately with the new code version, it fails during the parfor process with "Access violation.." and wants to close down Matlab immediately. On the other hand, changing parfor to for in the new version does NOT cause any issues and it executes correctly (albeit extremely slowly).
I have tried it on a different PC, but the issue remains. How could I go about debugging? Major part of my code is based on optimizing different set of functions for different values of the parameters associated with each function.
The access violation error message is below:
------------------------------------------------------------------------
Access violation detected at Sun Mar 13 11:54:51 2016
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Crash Mode : continue (default)
Current Graphics Driver: Unknown hardware
Default Encoding : windows-1252
Graphics card 1 : NVIDIA ( 0x10de ) NVIDIA GeForce 210 Version 9.18.13.4192
Host Name : DesktpPC
MATLAB Architecture : win64
MATLAB Root : C:\Program Files\MATLAB\R2015a
MATLAB Version : 8.5.0.197613 (R2015a)
OpenGL : hardware
Operating System : Microsoft Windows 10 Pro
Processor ID : x86 Family 6 Model 63 Stepping 2, GenuineIntel
Virtual Machine : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : Version 10.0 (Build 10586)
Fault Count: 1
Abnormal termination:
Access violation
Register State (from fault):
RAX = 0000000000000064 RBX = 0000000000000064
RCX = 9000d20007ada47f RDX = 0000000000000007
RSP = 00000000045e2a08 RBP = 00000000045e2b10
RSI = 0000000008286910 RDI = 9000d20007ada47f
R8 = 00000000045e26d0 R9 = 00007ff8dcb80000
R10 = 0000000000000000 R11 = 0000000000000200
R12 = 00000000045e3220 R13 = 00000000045e3430
R14 = 0000000000100005 R15 = 0000000000000000
RIP = 00000000fe10f0c0 EFL = 00010282
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00000000fe10f0c0 C:\Program Files\MATLAB\R2015a\bin\win64\libmx.dll+00061632 mxArray_tag::get_kernel_bits+00000000
[ 1] 0x000000001105c511 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00115985 in_is_matlab_function+00060609
[ 2] 0x000000001105bb1d C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00113437 in_is_matlab_function+00058061
[ 3] 0x000000001105a09c C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00106652 in_is_matlab_function+00051276
[ 4] 0x000000001112684f C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944207 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000991
[ 5] 0x00000000111267b1 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944049 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000833
[ 6] 0x000000001109da75 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00383605 inGetCurrentWS+00155269
[ 7] 0x000000001109ce8c C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00380556 inGetCurrentWS+00152220
[ 8] 0x000000001109b6e9 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00374505 inGetCurrentWS+00146169
[ 9] 0x00000000046e2694 C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00075412 Mfh_file::dispatch_fh+00000548
[ 10] 0x00000000046e2a7e C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00076414 Mfunction_handle::dispatch+00000766
[ 11] 0x00000000046e1847 C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00071751 mdSetCurrentIntFcnIndexProtected::~mdSetCurrentIntFcnIndexProtected+00002135
[ 12] 0x0000000011096e50 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00355920 inGetCurrentWS+00127584
[ 13] 0x0000000011096414 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00353300 inGetCurrentWS+00124964
[ 14] 0x000000001109c64c C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00378444 inGetCurrentWS+00150108
[ 15] 0x000000001109bcd5 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00376021 inGetCurrentWS+00147685
[ 16] 0x000000001105f19c C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00127388 in_is_matlab_function+00072012
[ 17] 0x0000000011059f95 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00106389 in_is_matlab_function+00051013
[ 18] 0x000000001112684f C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944207 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000991
[ 19] 0x00000000111267b1 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944049 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000833
[ 20] 0x000000001109da75 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00383605 inGetCurrentWS+00155269
[ 21] 0x000000001109ce8c C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00380556 inGetCurrentWS+00152220
[ 22] 0x000000001109b6e9 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00374505 inGetCurrentWS+00146169
[ 23] 0x00000000046e2694 C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00075412 Mfh_file::dispatch_fh+00000548
[ 24] 0x00000000046e2a7e C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00076414 Mfunction_handle::dispatch+00000766
[ 25] 0x0000000011059597 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00103831 in_is_matlab_function+00048455
[ 26] 0x000000001105a1ab C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00106923 in_is_matlab_function+00051547
[ 27] 0x000000001112684f C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944207 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000991
[ 28] 0x00000000111267b1 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944049 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000833
[ 29] 0x000000001109da75 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00383605 inGetCurrentWS+00155269
[ 30] 0x000000001109ce8c C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00380556 inGetCurrentWS+00152220
[ 31] 0x000000001109b6e9 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00374505 inGetCurrentWS+00146169
[ 32] 0x00000000046e2694 C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00075412 Mfh_file::dispatch_fh+00000548
[ 33] 0x00000000046e2a7e C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00076414 Mfunction_handle::dispatch+00000766
[ 34] 0x0000000011059597 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00103831 in_is_matlab_function+00048455
[ 35] 0x000000001105a1ab C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00106923 in_is_matlab_function+00051547
[ 36] 0x000000001112684f C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944207 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000991
[ 37] 0x00000000111267b1 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944049 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000833
[ 38] 0x000000001109da75 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00383605 inGetCurrentWS+00155269
[ 39] 0x000000001109ce8c C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00380556 inGetCurrentWS+00152220
[ 40] 0x000000001109b6e9 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00374505 inGetCurrentWS+00146169
[ 41] 0x00000000046e2694 C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00075412 Mfh_file::dispatch_fh+00000548
[ 42] 0x00000000046e2a7e C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00076414 Mfunction_handle::dispatch+00000766
[ 43] 0x000000001112b268 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00963176 inAnonymousFunction+00000360
[ 44] 0x000000001112b864 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00964708 inAnonymousFunction+00001892
[ 45] 0x000000001112ba25 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00965157 inAnonymousFunction+00002341
[ 46] 0x000000001112b9f2 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00965106 inAnonymousFunction+00002290
[ 47] 0x000000001112b9a7 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00965031 inAnonymousFunction+00002215
[ 48] 0x00000000110df6bd C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00652989 inGetCallersWorkSpace+00001805
[ 49] 0x0000000011160ae7 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+01182439 inFullEvalFcn+00000567
[ 50] 0x00000000111609f7 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+01182199 inFullEvalFcn+00000327
[ 51] 0x00000000111608ed C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+01181933 inFullEvalFcn+00000061
[ 52] 0x00000000046e2f5e C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00077662 mdLogging::log_function_exit+00000110
[ 53] 0x00000000046e295c C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00076124 Mfunction_handle::dispatch+00000476
[ 54] 0x0000000011059597 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00103831 in_is_matlab_function+00048455
[ 55] 0x000000001105a1ab C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00106923 in_is_matlab_function+00051547
[ 56] 0x000000001112684f C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944207 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000991
[ 57] 0x00000000111267b1 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944049 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000833
[ 58] 0x000000001109da75 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00383605 inGetCurrentWS+00155269
[ 59] 0x000000001109ce8c C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00380556 inGetCurrentWS+00152220
[ 60] 0x000000001109b6e9 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00374505 inGetCurrentWS+00146169
[ 61] 0x00000000046e2757 C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00075607 Mfh_file::dispatch_fh+00000743
[ 62] 0x00000000046e2a7e C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00076414 Mfunction_handle::dispatch+00000766
[ 63] 0x0000000011059597 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00103831 in_is_matlab_function+00048455
[ 64] 0x000000001113f6de C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+01046238 inHorzcatFcn+00002798
[ 65] 0x000000001105b5af C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00112047 in_is_matlab_function+00056671
[ 66] 0x000000001112684f C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944207 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000991
[ 67] 0x00000000111267b1 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944049 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000833
[ 68] 0x00000000111249a5 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00936357 inSwapWorkSpaces+00245205
[ 69] 0x0000000011124805 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00935941 inSwapWorkSpaces+00244789
[ 70] 0x0000000011124778 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00935800 inSwapWorkSpaces+00244648
[ 71] 0x00000000111246e2 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00935650 inSwapWorkSpaces+00244498
[ 72] 0x0000000011124633 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00935475 inSwapWorkSpaces+00244323
[ 73] 0x00000000110df5ee C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00652782 inGetCallersWorkSpace+00001598
[ 74] 0x00000000110df274 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00651892 inGetCallersWorkSpace+00000708
[ 75] 0x00000000110e863c C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00689724 inEvalExpInWS+00000268
[ 76] 0x00000000110e857b C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00689531 inEvalExpInWS+00000075
[ 77] 0x00000000110e8479 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00689273 inSetWorkSpaces+00005081
[ 78] 0x00000000110e8390 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00689040 inSetWorkSpaces+00004848
[ 79] 0x00000000046e2f5e C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00077662 mdLogging::log_function_exit+00000110
[ 80] 0x00000000046e295c C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00076124 Mfunction_handle::dispatch+00000476
[ 81] 0x0000000011059597 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00103831 in_is_matlab_function+00048455
[ 82] 0x000000001105a1ab C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00106923 in_is_matlab_function+00051547
[ 83] 0x000000001112684f C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944207 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000991
[ 84] 0x00000000111267b1 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944049 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000833
[ 85] 0x000000001109da75 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00383605 inGetCurrentWS+00155269
[ 86] 0x000000001109ce8c C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00380556 inGetCurrentWS+00152220
[ 87] 0x000000001109b6e9 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00374505 inGetCurrentWS+00146169
[ 88] 0x00000000046e2694 C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00075412 Mfh_file::dispatch_fh+00000548
[ 89] 0x00000000046e2a7e C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00076414 Mfunction_handle::dispatch+00000766
[ 90] 0x0000000011059597 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00103831 in_is_matlab_function+00048455
[ 91] 0x00000000111731a7 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+01257895 inIsKeyword+00027799
[ 92] 0x000000001105b69a C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00112282 in_is_matlab_function+00056906
[ 93] 0x000000001112684f C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944207 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000991
[ 94] 0x00000000111267b1 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944049 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000833
[ 95] 0x000000001109da75 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00383605 inGetCurrentWS+00155269
[ 96] 0x000000001109ce8c C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00380556 inGetCurrentWS+00152220
[ 97] 0x000000001109b6e9 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00374505 inGetCurrentWS+00146169
[ 98] 0x00000000046e2757 C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00075607 Mfh_file::dispatch_fh+00000743
[ 99] 0x00000000046e2a7e C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00076414 Mfunction_handle::dispatch+00000766
[100] 0x0000000011059597 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00103831 in_is_matlab_function+00048455
[101] 0x00000000111731a7 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+01257895 inIsKeyword+00027799
[102] 0x000000001105b69a C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00112282 in_is_matlab_function+00056906
[103] 0x000000001112684f C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944207 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000991
[104] 0x00000000111267b1 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944049 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000833
[105] 0x000000001109da75 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00383605 inGetCurrentWS+00155269
[106] 0x000000001109ce8c C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00380556 inGetCurrentWS+00152220
[107] 0x000000001109b6e9 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00374505 inGetCurrentWS+00146169
[108] 0x00000000046e2757 C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00075607 Mfh_file::dispatch_fh+00000743
[109] 0x00000000046e2a7e C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00076414 Mfunction_handle::dispatch+00000766
[110] 0x000000001112b268 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00963176 inAnonymousFunction+00000360
[111] 0x000000001112b864 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00964708 inAnonymousFunction+00001892
[112] 0x000000001112ba25 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00965157 inAnonymousFunction+00002341
[113] 0x000000001112b9f2 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00965106 inAnonymousFunction+00002290
[114] 0x000000001112b9a7 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00965031 inAnonymousFunction+00002215
[115] 0x00000000110df6bd C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00652989 inGetCallersWorkSpace+00001805
[116] 0x00000000110d854d C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00623949 inEvalCmdWithLocalReturn+00000285
[117] 0x00000000110d8471 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00623729 inEvalCmdWithLocalReturn+00000065
[118] 0x00000000fb5fe82d C:\Program Files\MATLAB\R2015a\bin\win64\libmwbridge.dll+00059437 mnGetPrompt+00002717
[119] 0x00000000fb5ff2a9 C:\Program Files\MATLAB\R2015a\bin\win64\libmwbridge.dll+00062121 mnParser+00000745
[120] 0x00000000fd0e13d4 C:\Program Files\MATLAB\R2015a\bin\win64\mcr.dll+00398292 mcrInstance::mnParser_on_interpreter_thread+00000036
[121] 0x00000000fd0a9757 C:\Program Files\MATLAB\R2015a\bin\win64\mcr.dll+00169815 mcr::runtime::setInterpreterThreadToCurrent+00019751
[122] 0x00000000fd0a9793 C:\Program Files\MATLAB\R2015a\bin\win64\mcr.dll+00169875 mcr::runtime::setInterpreterThreadToCurrent+00019811
[123] 0x00000000fd0a9f91 C:\Program Files\MATLAB\R2015a\bin\win64\mcr.dll+00171921 mcr::runtime::setInterpreterThreadToCurrent+00021857
[124] 0x00000000fab5d216 C:\Program Files\MATLAB\R2015a\bin\win64\uiw.dll+00512534 UIW_AttachThreadInput+00001270
[125] 0x00000000fab5caa5 C:\Program Files\MATLAB\R2015a\bin\win64\uiw.dll+00510629 wsd_to_MSW+00004373
[126] 0x00000000fab5cb29 C:\Program Files\MATLAB\R2015a\bin\win64\uiw.dll+00510761 wsd_to_MSW+00004505
[127] 0x00007ff8ffe50b0e C:\WINDOWS\system32\USER32.dll+00199438 CreateWindowStationA+00000846
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.
  3 Comments
Hari
Hari on 14 Mar 2016
I haven't submitted it to the Tech support. Will do now and get back.
Hari
Hari on 15 Mar 2016
My issue got resolved. The tech support asked a crucial question which was applicable to my case--> Are you using the "run" command to execute the other scripts you have recently written? If so, do these scripts called with "run" utilize "parfor"?
As soon as I replaced run('CallAnotherScript') with just CallAnotherScript the issue disappeared.
For the record here is the old set-up
a. Code based on run function
%Script1
Series of matlab codes. None of them has parfor
run('CallAnotherScript') % This is the final line of code in Script1
%CallAnotherScript
Series of matlab codes before parfor
parfor code which calls functions but no scripts % This is where the Access violation happens
Series of matlab codes after parfor
b. Code without run function
%Script1
Series of matlab codes. None of them has parfor
CallAnotherScript % This is the final line of code in Script1
%CallAnotherScript
Series of matlab codes before parfor
parfor code which calls functions but no scripts % NO more errors
Series of matlab codes after parfor
Anybody have an idea as to why/how by removing run function the issue disappeared?
Thanks in advance

Sign in to comment.

Answers (0)

Categories

Find more on Startup and Shutdown 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!