MATLAB crash on startup Mac M2

2 views (last 30 days)
ivar
ivar on 18 Sep 2023
Answered: Sreeram on 27 Jan 2025
Ive tried reinstalling java, matlab, giving full hard drive access, all of the solutions I found online however none have seemed to work. I am likely missing something pretty simple so please let me know. heres the crash log: ------------------------------------------------
MATLAB Log File
------------------------------------------------
--------------------------------------------------------------------------------
Segmentation violation detected at 2023-09-18 10:33:08 -0700
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : false
Graphics Driver : Uninitialized hardware
Interpreter 0 : Executing request: 6A6D6964697370617463682E637070
Java Version : Java 1.8.0_381-b09 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : maca64
MATLAB Entitlement ID : 11612050
MATLAB Root : /Applications/MATLAB_R2023b.app
MATLAB Version : 23.2.0.2365128 (R2023b)
OpenGL : hardware
Operating System : Mac OS Version 13.5.2 (Build 22G91)
Process ID : 9218
Processor ID : ABI64 ARM ARM64E HG
Session Key : 54e2f859-2040-4db7-8671-745de7531f93
Window System : Quartz
Fault Count: 1
Abnormal termination:
Segmentation violation
Current Thread: 'Java: Image Fetcher 0' id 0x17269b000
Register State (from fault):
X0 = 00000007a90b0a68 X1 = 00000007a90bee42
X2 = 000000000000000e X3 = 006f007200680054
X4 = 006c006200610077 X5 = 002e0065006c0062
X6 = 006100760061006a X7 = 00240065006c0062
X8 = 000000000000e3da X9 = ffffffffffff0000
X10 = 0074006e00690072 X11 = 007400530074006e
X12 = 000000016476cec8 X13 = 000000017269a230
X14 = 0000000000000070 X15 = 0000000000000024
X16 = 000000019237cd04 X17 = 00000007a90b0a84
X18 = 0000000000000000 X19 = 00000000000000b6
X20 = 000000017269a258 X21 = 000000015254e440
X22 = 0000000164789ca4 X23 = 0000000158834040
X24 = 000000017269a2c8 X25 = 000000017269ae30
X26 = 0000000171920f78 X27 = 0000000000000000
X28 = 0000000171198800
FP = 000000017269a080 LR = 000000015892c064
SP = 000000017269a080 PC = 00000001588672e4
CPSR = 80001000
Stack Trace (from fault):
[ 0] 0x00000001044e0d90 /Applications/MATLAB_R2023b.app/bin/maca64/libmwfl.dylib+00019856 _ZN10foundation4core4diag15stacktrace_base7captureERKNS1_14thread_contextEm+00000064
[ 1] 0x00000001044e3c58 /Applications/MATLAB_R2023b.app/bin/maca64/libmwfl.dylib+00031832 _ZN10foundation4core4test17terminate_handledERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE+00002144
[ 2] 0x00000001044e3118 /Applications/MATLAB_R2023b.app/bin/maca64/libmwfl.dylib+00028952 _ZN10foundation4core4diag13terminate_logEPKcPK17__darwin_ucontext+00000140
[ 3] 0x000000010a9913b0 /Applications/MATLAB_R2023b.app/bin/maca64/libmwmcr.dylib+00529328 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00011892
[ 4] 0x000000010a98f250 /Applications/MATLAB_R2023b.app/bin/maca64/libmwmcr.dylib+00520784 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00003348
[ 5] 0x000000010a98ccf0 /Applications/MATLAB_R2023b.app/bin/maca64/libmwmcr.dylib+00511216 mnFatalSignalHandler+00000140
[ 6] 0x00000001923aaa24 /usr/lib/system/libsystem_platform.dylib+00014884 _sigtramp+00000056
[ 7] 0x000000015892c064 <unknown-module>+00000000
[ 8] 0x000000015892c064 <unknown-module>+00000000
[ 9] 0x000000015882a280 <unknown-module>+00000000
[ 10] 0x0000000158829ad8 <unknown-module>+00000000
[ 11] 0x000000015882a398 <unknown-module>+00000000
[ 12] 0x000000015882a398 <unknown-module>+00000000
[ 13] 0x000000015882a398 <unknown-module>+00000000
[ 14] 0x000000015882a398 <unknown-module>+00000000
[ 15] 0x000000015882a398 <unknown-module>+00000000
[ 16] 0x000000015882a398 <unknown-module>+00000000
[ 17] 0x000000015882a398 <unknown-module>+00000000
[ 18] 0x000000015882a398 <unknown-module>+00000000
[ 19] 0x000000015882a398 <unknown-module>+00000000
[ 20] 0x000000015882a398 <unknown-module>+00000000
[ 21] 0x000000015882a398 <unknown-module>+00000000
[ 22] 0x000000015882a398 <unknown-module>+00000000
[ 23] 0x000000015882a398 <unknown-module>+00000000
[ 24] 0x000000015882a398 <unknown-module>+00000000
[ 25] 0x0000000158822304 <unknown-module>+00000000
[ 26] 0x0000000152112dfc /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/server/libjvm.dylib+02665980 _ZN9JavaCalls11call_helperEP9JavaValueP12methodHandleP17JavaCallArgumentsP6Thread+00001892
[ 27] 0x0000000152111998 /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/server/libjvm.dylib+02660760 _ZN9JavaCalls12call_virtualEP9JavaValue11KlassHandleP6SymbolS4_P17JavaCallArgumentsP6Thread+00000388
[ 28] 0x0000000152111bec /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/server/libjvm.dylib+02661356 _ZN9JavaCalls12call_virtualEP9JavaValue6Handle11KlassHandleP6SymbolS5_P6Thread+00000096
[ 29] 0x0000000152193c84 /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/server/libjvm.dylib+03193988 _ZL12thread_entryP10JavaThreadP6Thread+00000120
[ 30] 0x00000001523a6798 /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/server/libjvm.dylib+05367704 _ZN10JavaThread17thread_main_innerEv+00000128
[ 31] 0x00000001523a6644 /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/server/libjvm.dylib+05367364 _ZN10JavaThread3runEv+00000440
[ 32] 0x00000001522dc100 /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/server/libjvm.dylib+04538624 _ZL10java_startP6Thread+00000280
[ 33] 0x000000019237bfa8 /usr/lib/system/libsystem_pthread.dylib+00028584 _pthread_start+00000148
[ 34] 0x0000000192376da0 /usr/lib/system/libsystem_pthread.dylib+00007584 thread_start+00000008

Answers (1)

Sreeram
Sreeram on 27 Jan 2025
Hi Ivar,
The crash log seems to be related to a known issue in MATLAB for macOS. The suggested workaround involves configuring MATLAB to use a MathWorks supported JRE. Specifically, Java 11 JRE included with Amazon Corretto 11 should be installed.
For detailed instructions, please refer to the following Bug Reports page:
I hope this helps!

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!