help > RE: CONN & Matlab Crashes During Denoising: "Illegal instruction detected" (Mac)
Jul 14, 2022  08:07 PM | Keith Dodd
RE: CONN & Matlab Crashes During Denoising: "Illegal instruction detected" (Mac)
It is not always at the same spot. I tried again today and denoising actually completed for whatever odd reason. However, it clearly did not run correctly, because when I then try to run analysis I run into this error:

ERROR DESCRIPTION:

Error using conn_process
Incorrect number of ROI components for subject 3 condition 1. Please re-run Setup&Denoising step (all subjects/seeds)
Error in conn_process (line 81)
case 'analyses_gui_seedandroi',conn_disp(['CONN: RUNNING ANALYSIS STEP (ROI-to-ROI or seed-to-voxel analyses)']); conn_process([10,11,15],varargin{:});
Error in conn (line 9265)
else conn_process('analyses_gui_seedandroi',CONN_x.Analysis); ispending=false;
Error in conn_menumanager (line 121)
feval(CONN_MM.MENU{n0}.callback{n1}{1},CONN_MM.MENU{n0}.callback{n1}{2:end});
CONN21.a
SPM12 + DAiSS DEM FieldMap MEEGtools cat12
Matlab v.2022a
project: CONN21.a
storage: 3848.8Gb available
spm @ /Users/keithdodd/spm12


This happened when I tried to run analysis JUST after running denoising. I can try running denoising again, but I am not sure how that would help. Why would denoising have given the wrong number of ROI components? How can I search for the problem (and hopefully fix it)? What other information can I provide to help?

Thanks,
Keith

Originally posted by Alfonso Nieto-Castanon:
Hi Keith,

It's a bit hard to diagnose. Hard-crashes like those are some times associated with faulty hardware (e.g. memory card or storage device), but they can also appear due to other issues like the computer entering 'sleep' mode, or a hard drive becoming full or otherwise unresponsive. Is the error always happening exactly at the same point in the analysis? (if so that may also indicate some problem accessing one particular perhaps-corrupt file?)

Best
Alfonso

Originally posted by Keith Dodd:
This is a new issue for me. When trying to run denoising, it gets to step 3, runs for a bit and then crashes with "Matlab needing to close." I have pasted the crash log. I contacted Matlab support and they told me to try updating matlab and to remove accessibility privileges to other apps. I did both, and the same thing still happened. So they told me to post here for help.

Any ideas what might be going on? As of yesterday with this, I can no longer use CONN as it cannot get past the denoising step.

Thanks!

MATLAB Log File: /Users/keithdodd/matlab_crash_dump.58443-1

------------------------------------------------
MATLAB Log File
------------------------------------------------
--------------------------------------------------------------------------------
Illegal instruction detected at 2022-07-06 11:09:49 -0600
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : false
Graphics Driver : ATI Technologies Inc. AMD Radeon Pro 5700 OpenGL Engine Version 2.1 ATI-4.8.54
Graphics Text Issue Info : xmin=0.000000, ymin=-10.500000, xmax=227.000000, ymax=10.500000
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : maci64
MATLAB Entitlement ID : 3223604
MATLAB Root : /Applications/MATLAB_R2022a.app
MATLAB Version : 9.12.0.1975300 (R2022a) Update 3
OpenGL : hardware
Operating System : Mac OS Version 12.4 (Build 21F79)
Process ID : 58443
Processor ID : x86 Family 6 Model 165 Stepping 5, GenuineIntel
Session Key : bd1a9c15-6d5e-4cad-98e4-146309430bf9
Window System : Quartz
Fault Count: 1
Abnormal termination:
Illegal instruction
Current Thread: 'CrBrowserMain' id 0x11b5c8600
Register State (from fault):
RAX = 00007fbcf0c68a00 RBX = 00007ff80edd6400
RCX = 85220a4ae820005b RDX = 0000000000001401
RSP = 00007ff7b239f5f0 RBP = 00007ff7b239f620
RSI = 0000000000001596 RDI = 00007ff7b239f190
R8 = 0000000000000196 R9 = 00007ff7b239ebd0
R10 = 0000000000000196 R11 = 00007fbcf0c69f96
R12 = 00007fbd6770ac40 R13 = 00006000038a21f0
R14 = 000060000fa0db30 R15 = 00007ff829347c13
RIP = 00007ff811dc429a RFL = 0000000000010206
CS = 000000000000002b FS = 0000000000000000 GS = 0000000000000000
Stack Trace (from fault):
[ 0] 0x000000010e795894 /Applications/MATLAB_R2022a.app/bin/maci64/libmwfl.dylib+00325780 _ZN10foundation4core4diag15stacktrace_base7captureERKNS1_14thread_contextEm+00000052
[ 1] 0x000000010e74d34a /Applications/MATLAB_R2022a.app/bin/maci64/libmwfl.dylib+00029514 _ZN10foundation4core4test17terminate_handledERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE+00006986
[ 2] 0x000000010e74b505 /Applications/MATLAB_R2022a.app/bin/maci64/libmwfl.dylib+00021765 _ZN10foundation4core4diag13terminate_logEPKcPK17__darwin_ucontext+00000149
[ 3] 0x00000001164346bb /Applications/MATLAB_R2022a.app/bin/maci64/libmwmcr.dylib+00526011 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00012203
[ 4] 0x0000000116432662 /Applications/MATLAB_R2022a.app/bin/maci64/libmwmcr.dylib+00517730 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00003922
[ 5] 0x000000011642fee5 /Applications/MATLAB_R2022a.app/bin/maci64/libmwmcr.dylib+00507621 mnFatalSignalHandler+00000149
[ 6] 0x00007ff80ef58dfd /usr/lib/system/libsystem_platform.dylib+00015869 _sigtramp+00000029
[ 7] 0x000060000fa0cb70 +00000000
[ 8] 0x00007ff811dc3fcd /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit+03915725 -[NSApplication reportException:]+00000733
[ 9] 0x00007ff811a3801c /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit+00196636 -[NSApplication run]+00000765
[ 10] 0x0000000113e68589 /Applications/MATLAB_R2022a.app/bin/maci64/libmwuix.dylib+00152969 _Z23MacSetMcrGetAppNameProcPFNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEvE+00004537
[ 11] 0x00007ff80efff75c /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation+00481116 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__+00000012
[ 12] 0x00007ff80f09cb52 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation+01125202 ___CFXRegistrationPost_block_invoke+00000049
[ 13] 0x00007ff80f09cad0 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation+01125072 _CFXRegistrationPost+00000496
[ 14] 0x00007ff80efd1398 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation+00291736 _CFXNotificationPost+00000735
[ 15] 0x00007ff80fe1580e /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation+00038926 -[NSNotificationCenter postNotificationName:object:userInfo:]+00000082
[ 16] 0x00007ff811a4faae /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit+00293550 -[NSApplication _postDidFinishNotification]+00000305
[ 17] 0x00007ff811a4f7fc /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit+00292860 -[NSApplication _sendFinishLaunchingNotification]+00000208
[ 18] 0x00007ff811a4d3cc /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit+00283596 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:]+00000541
[ 19] 0x00007ff811a4d020 /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit+00282656 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:]+00000665
[ 20] 0x00007ff80fe40734 /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation+00214836 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:]+00000308
[ 21] 0x00007ff80fe405a6 /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation+00214438 _NSAppleEventManagerGenericHandler+00000080
[ 22] 0x00007ff8156c23f0 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE+00046064 _AppleEventsCheckInAppWithBlock+00014079
[ 23] 0x00007ff8156c1c5a /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE+00044122 _AppleEventsCheckInAppWithBlock+00012137
[ 24] 0x00007ff8156bb38f /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE+00017295 aeProcessAppleEvent+00000419
[ 25] 0x00007ff817cc0ce2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox+00261346 AEProcessAppleEvent+00000054
[ 26] 0x00007ff811a47652 /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit+00259666 _DPSNextEvent+00002036
[ 27] 0x00007ff811a458ba /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit+00252090 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]+00001394
[ 28] 0x00007ff811a37f69 /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit+00196457 -[NSApplication run]+00000586
[ 29] 0x00007ff811a0bee7 /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit+00016103 NSApplicationMain+00000817
[ 30] 0x0000000113e68ab6 /Applications/MATLAB_R2022a.app/bin/maci64/libmwuix.dylib+00154294 _Z21MacRunApplicationMainb+00000086
[ 31] 0x000000011643abe7 /Applications/MATLAB_R2022a.app/bin/maci64/libmwmcr.dylib+00551911 _ZN3mcr7runtime9uix_proxy21MacRunApplicationMainEb+00000103
[ 32] 0x00000001163e3a62 /Applications/MATLAB_R2022a.app/bin/maci64/libmwmcr.dylib+00195170 _ZN3mcr7runtime10MainThread7runMainERKN7mwboost9function0IiEEbb+00000306
[ 33] 0x00000001163e3727 /Applications/MATLAB_R2022a.app/bin/maci64/libmwmcr.dylib+00194343 _Z12mcr_run_mainRKN7mwboost9function0IiEEbb+00000103
[ 34] 0x0000000115fce2f4 /Applications/MATLAB_R2022a.app/bin/maci64/libmwMVMLocal.dylib+00168692 _ZN10mvm_server12terminateFcnEv+00016916
[ 35] 0x000000010e29a5d9 /Applications/MATLAB_R2022a.app/bin/maci64/libmwmvm.dylib+00812505 _ZN3mvm6detail11SessionImpl7runMainERKN7mwboost9function1IiRKNSt3__16vectorINS4_12basic_stringIDsNS4_11char_traitsIDsEENS4_9allocatorIDsEEEENS9_ISB_EEEEEESF_+00000089
[ 36] 0x000000010e29aad4 /Applications/MATLAB_R2022a.app/bin/maci64/libmwmvm.dylib+00813780 _ZN3mvm6detail11SessionImpl16runMatlabDesktopEv+00000420
[ 37] 0x000000010db5ff5a /Applications/MATLAB_R2022a.app/bin/maci64/MATLAB+00008026 main+00001098
[ 38] 0x000000011b54d51e +00000000

Threaded View

TitleAuthorDate
Keith Dodd Jul 6, 2022
Alfonso Nieto-Castanon Jul 11, 2022
RE: CONN & Matlab Crashes During Denoising: "Illegal instruction detected" (Mac)
Keith Dodd Jul 14, 2022