Why will MATLAB not start up properly on my MacOS?

607 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2011 年 12 月 6 日
コメント済み: James Griffin 2022 年 11 月 8 日
Why will MATLAB not start up properly on my Mac?

採用された回答

MathWorks Support Team
MathWorks Support Team 2021 年 7 月 13 日
編集済み: MathWorks Support Team 2021 年 3 月 31 日
If MATLAB is not launching properly, and you are not receiving any License Manager Errors, then you may perform the following solutions:
  • Check System Requirements
  • Disable Security Software
  • Regenerate Preferences
  • Start MATLAB from the Installation Folder
  • Provide MATLAB with Full Disk Access
  • Start MATLAB in Debug Mode

Check System Requirements

Ensure that your MacOS meets the system requirements for the release of MATLAB you are attempting to launch. If you have recently updated to a new version of macOS, you may need to update to a newer version of MATLAB.

Disable Security Software

The security software on the machine may be interfering with MATLAB.  To troubleshoot, try disabling any security software or reboot in safe boot. 

Regenerate Preferences

One of the most common reasons for MATLAB to fail to launch is due to corrupted preferences. To regenerate your preferences, remove or rename your preferences directory then relaunch MATLAB:
  1. Open the Finder, the blue face on the dock
  2. In Finder, click on the “Go” menu and select “Go to Folder”
  3. Go to this folder: ~/Library/Application Support/MathWorks/MATLAB
    1. For R2016a and earlier: ~/.matlab
  4. Locate the folder that corresponds to your MATLAB version and delete/rename it. For example, rename “R2021a” to “R2021a_old”.
Note: Do not delete any folders that contain the word licenses in the folder name, e.g. R2021a_licenses. These folders contain important license information.
Once the folder has been renamed, try restarting MATLAB to regenerate the preferences.

Start MATLAB from the Installation Folder

The shortcut generated during the installation of MATLAB may be corrupted or broken. To troubleshoot if this is the cause of MATLAB's failure to launch, start MATLAB from the installation folder:
  1. Open the Finder, the blue face on the dock
  2. In Finder, click on the “Go” menu and select “Go to Folder”
  3. Go to this folder: /Applications/MATLAB_R20XXx.app/bin/
  4. Double click matlab
Note: The R20XXx must be edited to correspond to your install release of MATLAB, e.g. R2021a.
If MATLAB launches, you may create a new alias from the matlab executable in the /bin.

Provide MATLAB with Full Disk Access

If MATLAB does not have the required access permissions it may not start, such as access to the Documents folder. To ensure that MATLAB has the appropriate access permissions, please provide MATLAB with Full Disk Access:
  1. Open Security & Privacy from the System Preferences menu
  2. Select the Privacy tab
  3. Select Full Disk Access on the right
  4. Click the '+' symbol
  5. Click Applications
  6. Select MATLAB

Start MATLAB in Debug Mode

To start MATLAB in debug mode, launch MATLAB without the desktop environment. To do so, open a Terminal window (/Applications/Utilities/Terminal.app) and run the following command:
$MATLAB/bin/matlab -nodesktop
Where $MATLAB is the path to your MATLAB directory. For example, if you are using MATLAB R2021a and have installed MATLAB in the default directory, the command will be:
/Applications/MATLAB_R2021a.app/bin/matlab -nodesktop
If MATLAB starts, it will start in the Terminal window itself. The title of the Terminal window will change to say “MATLAB_maci64 -nodesktop.”
From the Terminal window, run the command “desktop” to attempt to start the MATLAB desktop environment. This will produce an error message which may help you to identify the problem. If you would like assistance in interpreting the error, please contact Installation and Licensing Support.
  7 件のコメント
James Griffin
James Griffin 2022 年 11 月 8 日
In my case, I could use the last technique, starting in -nodesktop and then issuing the desktop command, which produced the following response:
2022-11-08 10:56:34.736 MATLAB_maci64[67047:8397146] CoreText note: Client requested name ".SFNS-Regular", it will get TimesNewRomanPSMT rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
multiple times. And the desktop appeared. This is obviously not a good solution. Can MathWorks provide a more permanent solution?

サインインしてコメントする。

その他の回答 (5 件)

Dwobble
Dwobble 2020 年 3 月 24 日
Possible workaround for running dual monitors:
I've been running MATLAB R2019b on macOS Catalina and am currently using a larger secondary monitor in addition to my native mac screen. I originally set the external monitor to be my primary display, but was unable to load MATLAB beyond the splash screen. By setting the built-in display as the primary display, I was able to successfully load MATLAB beyond the splash screen.
System Preferences > Displays > Arrangement > Drag menu bar to built-in display
Note: While the menu bar on mac appears by default on all connected displays, placement of the menu bar on a display within the system preferences determines which screen is the primary.
  4 件のコメント
bellaTheSiamese
bellaTheSiamese 2022 年 8 月 28 日
Thank you for saving my sanity! After few hours of troubleshooting, finally, I was able to start the program.

サインインしてコメントする。


smsinks
smsinks 2020 年 3 月 28 日
In my case initiating MATLAB Desktop from the Terminal works fine. However, double clicking the MATLAB_2020a icon in the Applications folder (or anywhere else) does not start MATLAB. In the second case Matlab crushes during launch without throwing any error message.
Any suggestions that would fix this?
  4 件のコメント
Elodie LEVY
Elodie LEVY 2021 年 3 月 1 日
That's woked for me too!
Thanks so much Christian

サインインしてコメントする。


Frankie Kan
Frankie Kan 2018 年 6 月 19 日
編集済み: Frankie Kan 2018 年 6 月 19 日
use command line to start matlab without JVM, this solved my problem.
cd /Applications/MATLAB_R2018a.app/bin
./matlab -nojvm

Yi Chen
Yi Chen 2019 年 12 月 10 日
This works for me. Thanks
Debugging Mode
Try running MATLAB without the desktop environment. Open a Terminal window (/Applications/Utilities/Terminal.app) and run the following command:
$MATLAB/bin/matlab -nodesktop
Where $MATLAB is the path to your MATLAB directory. For example, if you are using MATLAB R2016b and have installed MATLAB in the default directory, the command will be:
/Applications/MATLAB_R2016b.app/bin/matlab -nodesktop
If MATLAB starts, it will start in the Terminal window itself. The title of the Terminal window will change to say “MATLAB_maci64 -nodesktop.” From the Terminal window, run the command “desktop” to attempt to start the MATLAB desktop environment. This will produce an error message which may help you to identify the problem. If you would like assistance in interpreting the error, please contact MathWorks support.

Srinivas Gorur Shandilya
Srinivas Gorur Shandilya 2021 年 1 月 24 日
I had this problem too, when using my laptop in headless mode with an external display. The bug can be reproduced by starting MATLAB with the built-in display closed. To get around it, open the built-in display, start MATLAB, and then close it again
I would guess that MATLAB thinks (wrongly) that the built-in display is avaialble, tries to open a window there, fails, and panics.
  1 件のコメント
Lukas Danninger
Lukas Danninger 2022 年 8 月 22 日
Thank you! that did the trick for me as well.

サインインしてコメントする。

カテゴリ

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!

Translated by