Fix to frequent "Application not responding" for MATLAB on the Mac
144 views (last 30 days)
Show older comments
I am frequently having the Mac version of MATLAB lock up in "Application not responding", leading to "Force quit" in the Finder or Terminal. I have found no specific way to reproducibly make this happen, but it tends to occur after a number of traditional (Java based) figures are opened and closed. The problem occurs in several hand-coded graphical interfaces (not GUIDE, pre-App Designer) that have worked for years, and it seems to be getting worse.
As far as I can tell, this is a Mac-specific problem. I thought it was confined to Silicon machines, but the same behavior occurs for Silicon machines running the Intel version of MATLAB as well as Intel machines. I see it a lot in releases 2023b and 2024a, even after updates, but one of my users reports problems as far back as 2021a. I know that I see more and more frequency Java errors in the command window in recent years, and these often preceed MATLAB freezing altogether. Just today, I've observed the problem when using Corretto 11 and 17 (only 2024a supports this), and I'm pretty sure it happens with Corretto 8.
A Javascript version (uifigure) of the same graphical interfaces presumably would not experience this problem, but it would take an enormous amount of work to transition these program over from legacy code. Despite what the Bug Fixes say in updates and new releases, the problem has not been fixed. Any ideas?
4 Comments
Voss
about 1 hour ago
@zixing wang: Maybe they're not ignoring it; maybe it's just a difficult problem to solve.
Voss
about 1 hour ago
@Daniel Dolan: Transitioning programmatic GUI code from figures to uifigures might be easier than you think (e.g., in my experience, uifigures appear to support uicontrols, in spite of what the uicontrol documentation claims).
Answers (1)
Animesh
on 3 May 2024
I have encountered a similar issue before. It seems to be related to the version of Java that comes with MATLAB, which has not been updated for some time.
A workaround that helped me was to update to the recommended version of Java.
You can refer to the following MathWorks article on how to configure your system to use Java:
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!