MATLAB: Does MATLAB crash at startup on macOS 10.12 Sierra or later

MATLAB

I installed MATLAB on my computer running macOS. When I try to run the application, it immediately crashes at startup with the following stack trace:
 
Stack Trace (from fault):
[ 0] 0x000000010d27d124 bin/maci64/libmwfl.dylib+00049444 _ZN10foundation4core4diag15stacktrace_base7captureERKNS1_14thread_contextEm+00000052
[ 1] 0x000000010d2819aa bin/maci64/libmwfl.dylib+00068010 _ZN10foundation4core4test17terminate_handledEv+00003626
[ 2] 0x000000010d280919 bin/maci64/libmwfl.dylib+00063769 ZN10foundation4core4diag13terminate_logEPKcPK17_darwin_ucontext+00000185
[ 3] 0x000000010fa228f2 bin/maci64/libmwmcr.dylib+00420082 Z19mnPrintErrorMessageRKNSt3_112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00009890
[ 4] 0x000000010fa206b2 bin/maci64/libmwmcr.dylib+00411314 Z19mnPrintErrorMessageRKNSt3_112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00001122
[ 5] 0x000000010fa1ec54 bin/maci64/libmwmcr.dylib+00404564 mnFatalSignalHandler+00000148
[ 6] 0x00007fffbfdafb3a /usr/lib/system/libsystem_platform.dylib+00011066 _sigtramp+00000026
[ 7] 0x0000000000000000 <unknown-module>+00000000
[ 8] 0x000000010f9f0283 bin/maci64/libmwmcr.dylib+00213635 _Z15mcr_initialize0P11MfileReaderPKDsPS2_RKN5boost10shared_ptrIN10foundation7msg_svc8eventmgr8EventMgrEEEN6mlutil10contextmgr5MvmIDE+00000611
[ 9] 0x000000010f9df235 bin/maci64/libmwmcr.dylib+00143925 _ZN3mcr7runtime26InterpreterThreadSingleton4Impl3runERKN5boost10shared_ptrIS2_EEPNS2_12init_contextE+00000149
[ 10] 0x000000010f9c2b62 bin/maci64/libmwmcr.dylib+00027490 _Z26run_init_and_handle_eventsPv+00000050
[ 11] 0x00007fffbfdb993b /usr/lib/system/libsystem_pthread.dylib+00014651 _pthread_body+00000180
[ 12] 0x00007fffbfdb9887 /usr/lib/system/libsystem_pthread.dylib+00014471 _pthread_body+00000000
[ 13] 0x00007fffbfdb908d /usr/lib/system/libsystem_pthread.dylib+00012429 thread_start+00000013
This crash always happens, regardless of MATLAB startup options, but does not happen for other MATLAB installations I have. Why does MATLAB crash at startup on macOS 10.12 Sierra or later?

Best Answer

This crash can be traced to the following file being missing or corrupted:
 
/Applications/MATLAB_R2017b.app/settings/src/settingscore/settings.xsd
To correct this issue, reinstall MATLAB on your machine. You will also want to remove or rename the /Users/$USER/Downloads/MathWorks folder on your machine to ensure that complete installation files are downloaded, and to rule out any potential problems caused by corrupted installation files.