You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
MatlabR2021a & R2021b does not work with macOS Big Sur
1 view (last 30 days)
Show older comments
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 Comments
Walter Roberson
on 12 May 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
on 12 May 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.
Edgar Abarca Morales
on 14 May 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.
Reisender
on 14 May 2021
Edited: Reisender
on 14 May 2021
I think that "sandboxd" runs when an application does not run properly (see here). It says there that "it is designed to contain damage to the system and the user’s data if an app becomes compromised". I think that it is therefore not possible to terminate this process.
I also opened a support ticket as appearently nobody knows about that problem here besides you and me.
Walter Roberson
on 14 May 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.
Joao Nizer
on 22 Jun 2021
Edited: Joao Nizer
on 22 Jun 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
Walter Roberson
on 28 Jun 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
on 27 Jul 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
on 23 Aug 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
on 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'
Walter Roberson
on 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
on 8 Oct 2021
Thanks for the input @Walter Roberson. That could be a possibility. When reporting that bug, I was not told as to where it possibly comes from. I, and I think many others, have gotten used to start Matlab from the terminal.
What annoys me is that this still occurs in an entirely new release of Matlab. Matlab is not a free and open source product developed by people in their free time. There is a lot of money in the game, and seeing this answer below from a Staff member is kind of sad. You helped me and many others way more in that case.
Simon Fisher
on 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
on 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
Answers (2)
Prakhar Rai
on 23 Jun 2021
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 Comments
Simon Fisher
on 27 Jun 2021
Yeah this is not a M1-specific issue. I have the same problem using an Intel processor too.
Yongxin Liu
on 8 Jul 2021
My solution is launch the Activity Monitor and kill the sandboxd process and then everything workw like a charm
1 Comment
Simon Fisher
on 27 Jul 2021
That's not a good solution and they come back even within a session I've found
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)