Matlab R2021b freezing during simple commands on Monterey 12.2

8 次查看(过去 30 天)
I have recently begun experiencing random freezes when executing simple commands, such as calling an integer variable. This happens after using Matlab normally for 5-15 min. When the operation stalls I attempt to exit with control-C, and get a message like
"Operation terminated by user during mtree (line 132)
In matlab.unittest.internal.ui.toolstrip.getFileInfoForToolstrip (line 29)
parseTree = mtree(file,'-file');"
but although the computer fan speed slows, Matlab remains busy even after many minutes, and is not responsive. The only solution so far has been to force-quit. The size of the workspace is rather small (<50 MB), so I don't believe that's the issue. I also have been following the recommendation to start Matlab using an alias created from Terminal, rather than directly from the Applications folder. Any ideas as to what's going on?
  1 个评论
Tim Lueth
Tim Lueth 2022-3-25
I am still using OSX10.15 and OSX10.16 together with R2021b, but even there there is a freeze from time to time due to the OSX processes "Spindump" or "Sandbox", which seem to occupy 98% of the core used by Matlab.
If you terminate these processes manually, Matlab immediately accelerates back to normal behavior.
I have written a Matlab function that detects the appearance of these processes and deletes the processes "Spindump" or "Sandbox" by Matlab itself. The matlab console always (!) freezes when I execute more complex calls of the function "system" from Matlab with accesses to multiple directories of folders using OSX10.15 and OSX10.16 together with R2021b.

请先登录,再进行评论。

回答(1 个)

Tim Lueth
Tim Lueth 2022-12-6
https://de.mathworks.com/matlabcentral/answers/863575-matlab-and-sandbox-process-peak-cpu-usage-in-macos-big-sur#answer_1121102

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by