System command hangs on Mac OS Sequoia 15.0.1

13 次查看(过去 30 天)
Overview of Problem
Running system command leads to Matlab hanging. Ctrl+c does not have an effect. To regain functionality, I need to open the Activity Monitor and kill the Matlab process which is pinned to 100% CPU usage. This doesn't kill the GUI, but instead kills w/e background call to the shell that Matlab spawned. After killing the process, Matlab returns -1. This occurs regardless of what I give the system command, e.g. system('') or system('echo "blah"').
What I've Tried
I believe this issue started recently on upgrade to Sequoia. I've given Matlab full file permission in the Privacy section of System Settings, but that didn't help. I've tried this in both 2024a and 2024b. This issue exists in both the windowed version of matlab (standard gui) and in the terminal when I use the -nodisplay option. I've tried uninstalling and doing just a base install, no toolboxes but the issue persists.
When writing this post, I wanted to post my matlab version information coming from ver. That also stalled out, same behavior described above. After closing the process in Acitivty Monitor, I receive the expected output pasted below. I suspect ver is doing a system call in the background which is why it has the same issue.
My Thoughts
I suspect this is an issue with the new release of Mac OS Sequoia 15. Maybe something to do with permissions or security. The fact that the CPU for the spawned process is at 100% suggests to me that it is a infinite loop or a deadlocked process. Is this a bug or is there an issue with my own setup? If other's with similar setup can replicate, I will submit a bug report.
System Information
Matlab Release: Problem exists on both 2024a and 2024b.
OS: Mac OS Sequoia 15.0.1, Apple Silicon
Output of ver command:
MATLAB Version: 24.2.0.2740171 (R2024b) Update 1
Operating System: Darwin 24.0.0 Darwin Kernel Version 24.0.0: Tue Sep 24 23:37:25 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T6030 arm64
Java Version: Java 17.0.13+11-LTS with Amazon.com Inc. OpenJDK 64-Bit Server VM mixed mode, emulated-client, sharing
  3 个评论
Saurabh
Saurabh 2024-10-30
I reviewed the system requirements page for MATLAB for the specified releases and discovered that Mac OS Sequoia 15 is not supported in R2024a.
The same information can be found here:
I recommend verifying whether your system meets the MATLAB R2024b system requirements for Mac. You can do so by visiting the link provided below:
Let me know if the issue continues to persist.
Ali Haider
Ali Haider 2024-10-30
Thanks for your responses.
R2024a not being supported with Sequoia 15 is suprising, had not realized that. I have a MacBook pro M3 so my system meets the Matlab R2024b system requirements. I've been able to replicate the issue with both versions on my computer. The issue still persists, even though I've restarted.
I'm trying to rack my brain for any system configuration or other programs I may have installed that are interfering with Matlab, but I am drawing a blank.
I've uninstalled R2024a and will focus my troubleshooting on R2024b.

请先登录,再进行评论。

采纳的回答

Ali Haider
Ali Haider 2024-10-30
移动:Walter Roberson 2024-10-30
@Walter Roberson's answer gave me a hint. I think this was an issue with the Matlab interaction with my java runtime.
With the apple silicon versions, Matlab requires a separate Java runtime. Based on Versions of OpenJDK Compatible with MATLAB by Release I had installed Corretto 17. I decided to try out uninstall it and install Corretto 11 to see if it would make a difference. Now both system and ver command work as expected!
It must be that the system and ver under the hood have a call to the java runtime, and there is a bug when using Corretto 17 on Sequoia 15, since this was working before I upgraded my laptop's OS.

更多回答(0 个)

类别

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

标签

产品


版本

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by