【工具使用系列】关于MATLAB for mac 运行时崩溃故障的解决方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/MosesAaron/article/details/88917614

MATLAB for mac 使用过程中的常见问题

  • 问题1. MATLAB for mac 使用过程中突然崩溃!
    “MATLAB”意外退出
    “MATLAB”意外退出
    MATLAB崩溃文件matlab_crash_dump.2246-1细节如下:
MATLAB 崩溃文件: /Users/am/matlab_crash_dump.2246-1:


--------------------------------------------------------------------------------
           std::terminate() detected at 六  3 30 19:18:29 2019 +0800
--------------------------------------------------------------------------------

Configuration:
  Crash Decoding           : Disabled - No sandbox or build area path
  Crash Mode               : continue (default)
  Default Encoding         : GB2312
  Deployed                 : false
  Graphics Driver          : Unknown hardware 
  Java Version             : Java 1.8.0_152-b16 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
  MATLAB Architecture      : maci64
  MATLAB Entitlement ID    : 6257193
  MATLAB Root              : /Applications/MATLAB_R2018b.app
  MATLAB Version           : 9.5.0.944444 (R2018b)
  OpenGL                   : hardware
  Operating System         : Mac OS ���� 10.14.4锛����� 18E226锛�
  Process ID               : 2246
  Processor ID             : x86 Family 6 Model 78 Stepping 3, GenuineIntel
  Session Key              : fa443700-ea00-4690-81f2-7a721ea68de6
  Window System            : Quartz

Fault Count: 1


Abnormal termination

Register State (captured):
  RAX = 000000010e2a549f  RBX = 000070000fc829e0
  RCX = 000000010e2fa380  RDX = 000000010e304108
  RSP = 000070000fc826b0  RBP = 000070000fc829c0
  RSI = 000070000fc82a20  RDI = 000000010e304c88

   R8 = 000000010e2ab77c   R9 = 00007fffe583e3fb
  R10 = 0000000000000001  R11 = 000000010e304108
  R12 = 0000000000000000  R13 = 0000000000000000
  R14 = 0000000000000000  R15 = 000070000fc82ec0

  RIP = 000000010cd24839  RFL = 000000010ce3bb24

   CS = 000070000fc82820   FS = 000070000fc82800   GS = 000000010e2abf87

Stack Trace (captured):
[  0] 0x000000010cd1dd84                           bin/maci64/libmwfl.dylib+00007556 _ZN10foundation4core4diag15stacktrace_base7captureEm+00000020
[  1] 0x000000010cd23588                           bin/maci64/libmwfl.dylib+00030088 _ZN10foundation4core4test17terminate_handledEv+00006392
[  2] 0x000000010cd219f5                           bin/maci64/libmwfl.dylib+00023029 _ZN10foundation4core4diag13terminate_logEPKcPK17__darwin_ucontext+00000149
[  3] 0x000000011196f67b                          bin/maci64/libmwmcr.dylib+00632443 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00012635
[  4] 0x000000011196d207                          bin/maci64/libmwmcr.dylib+00623111 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00003303
[  5] 0x0000000111972200                          bin/maci64/libmwmcr.dylib+00643584 _Z19mnPrintErrorMessageRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+00023776
[  6] 0x000000011196c3df                          bin/maci64/libmwmcr.dylib+00619487 _Z22mnInstallCrashHandlersv+00000495
[  7] 0x00007fff78d9819e                           /usr/lib/libc++abi.dylib+00061854 _ZSt11__terminatePFvvE+00000008
[  8] 0x00007fff78d97f86                           /usr/lib/libc++abi.dylib+00061318 __cxa_get_exception_ptr+00000000
[  9] 0x00007fff78d8af99                           /usr/lib/libc++abi.dylib+00008089 __cxa_get_globals+00000000
[ 10] 0x00007fff7a500b51                           /usr/lib/libobjc.A.dylib+00084817 objc_exception_throw+00000362
[ 11] 0x00007fff4f970b2b /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation+00985899 +[NSException raise:format:]+00000201
[ 12] 0x00007fff51af932b /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation+00021291 -[NSPlaceholderString initWithFormat:locale:arguments:]+00000115
[ 13] 0x00007fff51af9288 /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation+00021128 +[NSString stringWithFormat:]+00000169
[ 14] 0x000000011b948ffe bin/maci64/matlab_startup_plugins/lmgrimpl/libmwlmgrimpl.dylib+01863678 wuusgJAD+00000558
[ 15] 0x000000011b944729 bin/maci64/matlab_startup_plugins/lmgrimpl/libmwlmgrimpl.dylib+01845033 bKQIstXI+00000009
[ 16] 0x000000011ba1776a bin/maci64/matlab_startup_plugins/lmgrimpl/libmwlmgrimpl.dylib+02709354 PfahsAce+00000570
[ 17] 0x000000011b948050 bin/maci64/matlab_startup_plugins/lmgrimpl/libmwlmgrimpl.dylib+01859664 kjvRvBnv+00000704
[ 18] 0x000000011b947ead bin/maci64/matlab_startup_plugins/lmgrimpl/libmwlmgrimpl.dylib+01859245 kjvRvBnv+00000285
[ 19] 0x000000011b9482b2 bin/maci64/matlab_startup_plugins/lmgrimpl/libmwlmgrimpl.dylib+01860274 jpORHPny+00000130
[ 20] 0x00007fff7bf1c2eb            /usr/lib/system/libsystem_pthread.dylib+00013035 _pthread_body+00000126
[ 21] 0x00007fff7bf1f249            /usr/lib/system/libsystem_pthread.dylib+00025161 _pthread_start+00000066
[ 22] 0x00007fff7bf1b40d            /usr/lib/system/libsystem_pthread.dylib+00009229 thread_start+00000013

解决方案solution:无
权宜之计workaround
打开终端,输入并运行带参数的MATLAB脚本,用来打开MATLAB。matlab 脚本位于 MATLAB 应用程序包 /Applications/matlabroot/MATLAB_release.app/bin 中。

/Applications/matlabroot/MATLAB_release.app/bin/matlab -nosplash
# 其中 matlabroot 是安装 MATLAB 的文件夹的名称,release 是 MATLAB 的版本号。
# 如果不修改安装地址以及版本为2018b的情况,带参数的启动命令
/Applications/MATLAB_R2018b.app/bin/matlab -nosplash

参考链接

https://ww2.mathworks.cn/help/matlab/matlab_env/startup-options.html
https://www.mathworks.com/matlabcentral/answers/405626-matlab-2018a-macos-10-13-5-crash-on-application-start

猜你喜欢

转载自blog.csdn.net/MosesAaron/article/details/88917614