MATLAB Answers

Matlab 2019b not working mac OS Catalina - Start desktop error

956 views (last 30 days)
Justine Guillochon
Justine Guillochon on 12 Oct 2019
Commented: mahmut yueksel on 31 May 2020 at 0:48
Hi everyone,
Has anyone managed to use 2019b version with the new Catalina OS Mac update ?
I get an error message "error starting desktop" pointing towards what seems to be a java issue.
Matlab was working perfectly before the update to Catalina.
Thank you very much.
Matlab error.png

  2 Comments

Andrew Purvis
Andrew Purvis on 17 Oct 2019
Same issue here. I was able to reinstall but it seems like a very broken version of matlab

Sign in to comment.

Answers (9)

Riccardo Moretti
Riccardo Moretti on 19 Dec 2019
I solved the issue!
I went in preferences -> security and privacy -> file and folder -> then I check all the three boxes under Matlab.
Now matlab fortunately works.
Schermata 2019-12-19 alle 22.05.57.png

  10 Comments

Show 7 older comments

Sign in to comment.


Alexander Hübscher
Alexander Hübscher on 30 Oct 2019
I did not get an Error but Matlab hung up every time while starting. I found a solution for me: If the "Magnet" app is running, close it.
It's the same issue every year. So please MATHWORKS finally fix this annoying bug! Magnet is an important productivity tool and it's working with all other apps except yours. macOS Catalina, MBP 2015.

  3 Comments

Simone Orcioni
Simone Orcioni on 16 Nov 2019
Also my MATLAB hangs for a while at startup, both 2018b and 2019a. Furthermore MATLAB-Help scrolling is slowed down. Very annoying.
Zongtai Li
Zongtai Li on 7 Dec 2019
Thank you so much!!!
I tried to reinstall my matlab for like 2 times and get nothing. You save me!!!
btw, you can simply let Magent ignore the matlab. It's not really necessary to close it.

Sign in to comment.



Enrico Onofri
Enrico Onofri on 18 Oct 2019
I get an error message starting R2019b on Catalina
Warning: Executing startup failed in matlabrc.
This indicates a potentially serious problem in your MATLAB setup, which should
be resolved as soon as possible. Error detected was:
MATLAB:mir_illegal_import_argument
Error: File: datenum.m Line: 74 Column: 8
The import statement 'import matlab.internal.datatypes.stringToLegacyText'
cannot be found or cannot be imported. Imported names must end with '.*' or be
fully qualified.
and Matlab crashes. No problem with R2019a. Can Mathworks find a fix to this?
If I start matlab on a shell with -nodisplay -nojvm it works! So it must be a problem in the desktop!
E. O.

  2 Comments

Andrew Lipich
Andrew Lipich on 27 Oct 2019
Having lots of trouble with 2019a and b on catelina won't open at all then goes into program not responding mode and never opens....
Enrico Onofri
Enrico Onofri on 28 Oct 2019
My impression is that matlab depends on too many environmental factors that it is difficult to reproduce this problem. At the moment I can run R2019b on an older macbook pro (2015) under macos15 but not on the newer (2017) also under Catalina. If there is a problem with the Java version I am inclined to give up R2019b since previous vrsions run without any problem. I would suggest Mathworks to advice on the right vrsion of Java or preferably to include it in the package, if possible.

Sign in to comment.


Tianji Shen
Tianji Shen on 6 Nov 2019
Maybe this is the issue of compatibility of MacOSX 10.15.1 and MATLAB 2019b.
It seems OK before I update to 10.15.1

  0 Comments

Sign in to comment.


Samatha Aleti
Samatha Aleti on 6 Nov 2019
Edited: Samatha Aleti on 6 Nov 2019
You can contact the MathWorks support team to help you solve this issue

Chi Wei
Chi Wei on 29 Nov 2019
On my 16 inch MacBook Pro, Matlab 2019b just cannot open.

  4 Comments

Show 1 older comment
Shuai Nie
Shuai Nie on 23 Mar 2020
Alexander Hübscher's answer solved my problem, please check whether "Magnet" or "Spectacle" app is running, if so, close it.

Sign in to comment.


Terrilayne Tomas Quinsaat
Terrilayne Tomas Quinsaat on 12 Dec 2019
turned off magnet and still have the same problem. xcode compiler is updated to the 11.3. uninstalled and installed both 2019a and 2019b and still no luck. WILL THERE BE A RESOLUTION SOON??Screen Shot 2019-12-11 at 11.59.39 PM.png

  0 Comments

Sign in to comment.


Samatha Aleti
Samatha Aleti on 16 Dec 2019
Hi,
One of the things you can do is try to go into safe boot. To enter safe boot, follow these steps:
  • Start or restart your Mac, then immediately press and hold the Shift key.
  • The Apple logo appears on your display. Release the Shift key when you see the login window.
  • If your startup disk is encrypted with FileVault, you might be asked to log in twice: once to unlock the startup disk, and again to log in to the Finder.
If the issue persists also try the following:
  • Open a Terminal window (/Applications/Utilities/Terminal.app) and run the following command: $MATLAB/bin/matlab -nodesktop
  • If MATLAB starts, run the command “desktop” in the MATLAB windows.
Hope this helps!

  5 Comments

Show 2 older comments
Eileen Dukes
Eileen Dukes on 9 Jan 2020
I was able to start Matlab from the command window (as you describe). On my first try, as soon as I typed "desktop" it opened the window but then hung (same behavior as before). Then, I successfully ran a function with the following error:
Warning: MATLAB Connector is not running.
> In message.subscribe
In connector.internal.webwindowmanager (line 6)
In connector.internal/webwindowmanager/instance (line 14)
In matlab.internal.webwindowmanager.get.windowList (line 123)
In matlab.internal/webwindowmanager/findAllWebwindows (line 91)
In matlab.ui.internal.dialog/DialogUtils/disableAllWindowsSafely (line 24)
In uigetputfile_helper (line 54)
In uigetfile (line 130)
In SixDOF_Main (line 28)
In run (line 91)
After the run completed, I typed desktop again and Matlab successfully opened.
However, my joy was short-lived. I closed the terminal window which terminated Matlab. I then tried opening Matlab again and it reverted to the previous behavior i.e. opened and then hung. Activity Monitor shows "Matlab not responding".
Alison Macdonald
Alison Macdonald on 10 Jan 2020
This seems to work for me, but it is a nuisance. As an aside, for me everything was working fine using R2018b on Catalina, but then I ran the suggested update and JAVA errors started.
Colin Raymond
Colin Raymond on 17 Jan 2020
With R2019a on Catalina I find that the same work-around procedure that Werner mentions is also necessary. Hopefully we will see a bug fix come out soon!

Sign in to comment.

Sign in to answer this question.