Clear Filters
Clear Filters

MATLAB freeze after closing figures

44 views (last 30 days)
RODOLFO
RODOLFO on 16 Mar 2024
Commented: Peter Drummond on 3 Apr 2024 at 3:41
"Matlab works fine until I individually close the figures, then it tends to freeze. I've tried restarting the computer and uninstalling the application, but the result remains the same. I have a MacBook Pro with M1 Sonoma version 14.4.""I tried to solve it with some methods you offer, but I keep having the issue. Thank you."
  1 Comment
Peter Drummond
Peter Drummond on 3 Apr 2024 at 3:41
Did you follow the instructions to install Java externally from Amazon with Mac Silicon? This problem may be related to the Java version that Mathworks provides. It has caused many problems in the past. Perhaps they can't provide the correct Java due to licensing issues. It seems kind of weird that Matlab no longer works correctly out of the box. Mathworks doesn't seem to be trying.

Sign in to comment.

Answers (2)

Walter Roberson
Walter Roberson on 16 Mar 2024
  1 Comment
RODOLFO
RODOLFO on 17 Mar 2024
Hi, I'm trying to solve it even using the provided code string, but I'm not getting any result, in fact, it gets worse. I created the startup.m files, and now MATLAB opens but remains in an infinite loading state

Sign in to comment.


Achilles Wong
Achilles Wong on 17 Mar 2024
This problem is most likely caused by the macOS 14.4 update. MATLAB was working fine on my arm Mac until random crashes occurred after the recent update to 14.4.
Simply put, the 14.4 update changes the behaviour of the kernel in handling just-in-time compilation and execution cycles without any prior explanation and preparation. This causes the Java process to terminate unexpectedly and affects all Java versions from Java 8 to the early access builds of JDK 22.
Applications that require JAVA runtime such as MATLAB and JetBrains products have encountered problems.
  3 Comments
Achilles Wong
Achilles Wong on 17 Mar 2024
This problem comes from java and/or macOS, and there is currently no workaround, as written in the article:
"There is no workaround available, and since there is no easy way to revert a macOS update, affected users might be unable to return to a stable configuration unless they have a complete backup of their systems prior to the OS update."
Apple Silicon MATLAB relies on Amazon Corretto 8, which means that even if the upstream JAVA has released a new version, it will take a long time for Amazon Corretto 8 to be updated, not to mention that JAVA currently has not provided a timetable.
The quickest solution may be to wait for Apple to provide an update (they may or may not make an exception for JAVA, which could be soon, maybe in a few days or weeks or even longer?)
RODOLFO
RODOLFO on 20 Mar 2024
We hope for an update as soon as possible!!

Sign in to comment.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!