MatlabR2021a & R2021b does not work with macOS Big Sur
1 次查看(过去 30 天)
显示 更早的评论
Reisender
2021-5-11
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?![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/616045/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/616045/image.png)
20 个评论
Walter Roberson
2021-5-12
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
2021-5-12
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
2021-5-14
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
2021-5-14
编辑:Reisender
2021-5-14
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
2021-5-14
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
2021-6-22
编辑:Joao Nizer
2021-6-22
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
2021-6-28
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
2021-7-27
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
2021-8-23
Just found that this issue is not fixed in Update 5 either - still got high sandboxd after 10-20mins of running Matlab
Benedict Vergara
2021-10-7
@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
2021-10-8
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
2021-10-8
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
2021-10-9
This issue is STILL happening on Matlab 2021b. This is insane. Do we just always start Matlab from the terminal now?
Matt Smear
2021-10-17
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
回答(2 个)
Prakhar Rai
2021-6-23
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 个评论
Simon Fisher
2021-6-27
Yeah this is not a M1-specific issue. I have the same problem using an Intel processor too.
Yongxin Liu
2021-7-8
My solution is launch the Activity Monitor and kill the sandboxd process and then everything workw like a charm
1 个评论
Simon Fisher
2021-7-27
That's not a good solution and they come back even within a session I've found
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!发生错误
由于页面发生更改,无法完成操作。请重新加载页面以查看其更新后的状态。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- 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)
亚太
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)