MatlabR2021a & R2021b does not work with macOS Big Sur
Afficher commentaires plus anciens
I am trying to use MatlabR2021a on a macOS Big Sur machine. However, each time I try to run script or want to plot something, the process "sandboxd" starts to use up all my CPU such that Matlab either hangs or works only very delayed. What could be a possible cause for that?

20 commentaires
Walter Roberson
le 12 Mai 2021
The following probably is not the cause of your difficulty... but it just might be, or might be suggestive. https://discussions.apple.com/thread/5003332
Edgar Abarca Morales
le 12 Mai 2021
I have exactly this same problem, "sandboxd" randomly interferes with Matlab running on Big Sur! Matlab then hangs or lags, making it imposssible to work.
Walter Roberson
le 13 Mai 2021
Unfortunately sandboxd is imposed by Apple in Big Sur :(
Edgar Abarca Morales
le 14 Mai 2021
Thank you for your answer Walter R. I ended up opening a customer support ticket but I have not yet received an answer. Just in case, do you know if it is safe to quit "sandboxd" in Big Sur from the activity monitor. It is a root process... Many thanks.
Walter Roberson
le 14 Mai 2021
I think you are misinterpreting.
Suppose you are doing a chemistry experiment that could potentially go wrong and produce noxious gasses. Maybe the problem only happens if something accidentally knocks over two different containers at the same time -- something that might be unlikely, but could happen, such as if a cat jumped up knocking one over and a person knocked the other over trying to catch the cat.
Now, do perform the experiment out wherever feels good at the time, and if something happens to go wrong, you rush in emergency containment equipment around it? Or do you take the time to perform the experiment inside a fume hood so that if something goes wrong the containment is already right there already?
The way that you interpreted what was written is as-if sandboxd is brought in to contain a compromised app after the compromise is detected. But that is not the case: instead, sandboxd is a way of running apps so that they are already inside the programming fumehood, protections already in place in case something happens to go wrong.
Reisender
le 22 Mai 2021
Joao Nizer
le 22 Juin 2021
Modifié(e) : Joao Nizer
le 22 Juin 2021
Same thing happening to me! :|
Sometimes it even gives me an error message that forces me to kill the process. I've sent the report to Mathworks, but they replied saying that they could not identify the problem: Help troubleshooting recent MATLAB crash: 04938298 ref:_00Di0Ha1u._5003q1PuOu8:ref
Simon Fisher
le 27 Juin 2021
Any resolution on this Mathworks? The 2021a Update 3 doesn't fix this.
Walter Roberson
le 28 Juin 2021
There is a bug report that says that some Big Sur problems can be worked around by starting MATLAB from terminal instead of dock or icon
Matthew Slayton
le 27 Juil 2021
Launching MATLAB from terminal seems to do the trick! Here's the Help Center link to do that: https://www.mathworks.com/help/matlab/ref/matlabmacos.html
Simon Fisher
le 27 Juil 2021
This is not fixed with the latest Update 4 either
Simon Fisher
le 23 Août 2021
Just found that this issue is not fixed in Update 5 either - still got high sandboxd after 10-20mins of running Matlab
Benedict Vergara
le 7 Oct 2021
@Matthew Slayton was correct. Follow these steps:
- Open terminal and 'cd' into the "bin" subfolder of the MATLAB save location. (example: 'cd /Applications/MATLAB_2021b.app/bin')
- type 'open matlab'
Reisender
le 7 Oct 2021
Walter Roberson
le 8 Oct 2021
As outsiders... do we know that it as Mathworks bug and not a MacOS Big Sur bug?
(Though I wonder if it is related to https://bugzilla.mozilla.org/show_bug.cgi?id=1520764 in which having Sandbox Logging turned on can result in high CPU time.)
Reisender
le 8 Oct 2021
Simon Fisher
le 9 Oct 2021
This issue is STILL happening on Matlab 2021b. This is insane. Do we just always start Matlab from the terminal now?
Matt Smear
le 17 Oct 2021
Having the same problem in 2021b, actually worse than 2021a. Often hangs for a minute before beginning to execute a script. The force quit 'sandboxd' was an effective workaround in 2021a, not in b. Running from the terminal doesn't help either. HELP
Réponses (2)
Prakhar Rai
le 23 Juin 2021
0 votes
Please go into application Info and make MATLAB_2021 run using Rosetta(selecting tick box for Rosetta),so it runs like intel based chips as MATLAB is only developed for Intel chips.
6 commentaires
Joao Nizer
le 23 Juin 2021
I am not running it in an M1 chip. Mine is still an Intel i5 processor.
Simon Fisher
le 27 Juin 2021
Yeah this is not a M1-specific issue. I have the same problem using an Intel processor too.
Reisender
le 24 Sep 2021
Joel
le 29 Oct 2021
Same problems here, also with R2021b
Simon Fisher
le 11 Nov 2021
Any updates on fixes for these issues from Staff ?
Mats
le 12 Déc 2021
This issue does also affect macs with Intel processors in Big Sur.
Yongxin Liu
le 8 Juil 2021
0 votes
My solution is launch the Activity Monitor and kill the sandboxd process and then everything workw like a charm
1 commentaire
Simon Fisher
le 27 Juil 2021
That's not a good solution and they come back even within a session I've found
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!