Matlab 2021a on Big Sur 11.3 Freeze
Show older comments
I am on M1, Big Sur 11.3 and 2021a. Using run from editor is really slow and often matlab freezes when I run the editor. In general, the editor is very very slow. I see the same thing on my intel mac too (2021a, Big Sur 11.2).
Any help regarding this would be greatly apreciated.
Thanks.
Accepted Answer
More Answers (3)
Shadaab Siddiqie
on 30 Apr 2021
From my understanding for you MATLAB is freezing on Big Sur 11.3. This might be due the simultaneous launching of MATLAB Editor at startup. These troubleshooting steps might help you to solve the issue.
1) Initiate MATLAB with -nodesktop flag
2) Run the commands:
>> s = settings;
>> s.matlab.editor.InitializeAtStartup.PersonalValue = 0;
3) Quit -nodesktop MATLAB and launch desktop MATLAB.
20 Comments
Siddhart Parida
on 30 Apr 2021
Giles
on 28 May 2021
Same problem with 2020b in Big Sur 11.3 (but weirdly a lot less in 11.2 before updating). MATLAB runs smoothly. But as soon as I execute code, it becomes nearly unresponsive. Lasts for about 10-20 seconds, then snaps back to normal until I run code again.
Adriaan Campo
on 7 Jun 2021
Same problem here. I have Matlab 2021a in Big Sur 11.4. Code runs very slow, both in the command window and in the editor. The steps suggested above did not improve the situation.
David Thinnes
on 8 Jun 2021
Same problem after updating to Big Sur 11.4. Code takes ages to run because the processes sandboxd and spindump occupie the whole CPU after each command (on the M1 chip in my case) Even when simply directing to another folder in the editor.
Edgar Abarca Morales
on 9 Jun 2021
I have exactly this same problem and still haven't found a solution. Matlab triggers sandboxd all the time and sometimes also spindump, making it lag and hang randomly.
Niklas Karlsson
on 10 Jun 2021
Edited: Niklas Karlsson
on 10 Jun 2021
I have the same issue. I first experienced the problem with R2019B + Big Sur 11.4. Matlab frooze for 3-4 minutes before it snapped back. I upgraded to R2021A (with Big Sur 11.4) earlier today. The problem still occurs every few minutes and matlab hangs for 1.5-2.5 minutes every times. It's practically impossible to make progress with my work. It seems to happen primarily when I do copy and paste in my m-file, but maybe that's just a coincidence since I spend most time in the editor. I have not seen it hang during the execution itself of an m-file.
Edgar Abarca Morales
on 10 Jun 2021
I fully agree with Niklas Karlsson here, it is just impossible to keep working like that. I contacted customer support and they recommended me to provide full disk access to Matlab and to disable any apps with accessibility privileges. It did not work, after all I still have the same issue, exactly as described by Niklas. As a workaround I force quit sandboxd when Matlab hangs, solving the problem until the issue reappears. It is safe to do so, and I have not experienced any complications, except that it is super annoying to force quit sandboxd every single time, again and again every 4 or 5 minutes. I hope Matlab will solve the problem soon because independently of my love for Matlab my patience with this is honestly growing thinner : (
Siddharth Parida
on 10 Jun 2021
2021 A is a it better.I did a clean install of my OS on the computer and matlab did not freeze anymore after that. But it is still very slow. Especially editor tabs
David Thinnes
on 11 Jun 2021
Did the same as Siddharth Parida. That works, no sandbox/spindump issues anymore. Still slow editor tabs though, let's hope for a patch with the next update release.
Mark Inall
on 30 Jun 2021
There seem to be at lot of different discussion threads out there about this - been using matlab for 26 years and never had this sort of issue. It is infuriating. Brand new macpro with big sur and MATLAB 2021a is basically unusable. Mathworks have to sort this - licence costs a lot of money, and at the moment matlab is slower than a 1980s casio calculator ...
Xiaoyi Hu
on 2 Jul 2021
2021a on Big Sur 11.4, very slow too.
Seems like it takes forever for matlab to do a search, like confirm if a function exists, find the help popup of a funtion. I disable the autohelp when hangover mouse to reduce such search as much as possible but still end up with very slow reaction overall. I guess it might be related to accessing rights. Anything I can do to solve the problem? Thank you!
Nicholas Roberts
on 2 Jul 2021
Same problem here. Not what I have come to expect from MathWorks products.
Matt Smear
on 4 Jul 2021
also same problem. even scrolling and typing in the editor window is sluggish
Simeon Prause
on 5 Jul 2021
I'm having the same issue with 2021a on BigSur 11.4. This makes working a real pain. :( Even simple programms take minutes to execute. Is a fix already in sight? Sandboxd is running everytime I start a programm at 100% making my fans go off. I'd like to avoid having to do a fresh install. Thank you!
Walter Roberson
on 5 Jul 2021
Experiment with launching matlab from Terminal not icon or dock
Simeon Prause
on 6 Jul 2021
Thanks, Walter! That did the trick for me! So far sandboxd hasn't shown itself. I started MATLAB via the shell. You can find the start program under Applications/MATLAB_R2021a/Contents/MacOS/MATLAB. Good luck!
Jason Davidson
on 9 Jul 2021
I had the exact same issue, not sure why, but this fixed it!
I'm expriencing teh same issues. I've been experienced the same issues with MATLAB_2021a, and now with MATLAB_2021b after updating. I have a brand new MacBook Pro M1 with 16GB.
This is issues is seriously debilitting. I can't get any work done.
Any news on a patch from Mathworks?
Daniel Lau
on 16 Aug 2021
Problem for me happens when I create figures in my script and then click on the close button after the script is done. This is really debilitating.
Kasper Kornak
on 7 Mar 2022
@Daniel Lau same here. even when i want to just take a screenshot of figure, matlab stops responding. outrageous
Hasan Beytur
on 19 Sep 2021
1 vote
I updated to Big Sur 11.6 and Matlab 2021a Update 5 is running more stable than before.
2 Comments
Sway
on 27 Sep 2021
I did the same and things seems to be okay.
Adam Snyder
on 28 Sep 2022
I've got Big Sur 11.6 and just updated to r2022b and MATLAB is still slow to the point of being useless
Tim Lueth
on 6 Dec 2022
Edited: Walter Roberson
on 7 Dec 2022
0 votes
Categories
Find more on Graphics Performance 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!