Matlab 2023b crash when I close a plot

On macbook pro M1 whit the new MacOS Sonoma, Matlab 2023b crashes (or rather hangs/becomes unresponsive) everytime I close a figure manually, i.e. click the red cross on the figure window. Close all works fine though.

5 commentaires

Marco
Marco le 25 Nov 2023
I tried uninstalling it and installing it again but it still gives me the same problem, only when I close the figures
Dyuman Joshi
Dyuman Joshi le 25 Nov 2023
There have been posts about problems with MATLAB R2023b in MacOS Sonoma. I suggest you go through the forum to find similar posts.
Also, contact TMW technical support to report this behaviour - Contact Support
Benjamin Simone
Benjamin Simone le 22 Jan 2024
Cumbersome, and MW should still fix this issue, but I can confirm that focussing on a new window before closing a plot does work. If you plot a bunch of figures after running a script, like me, you may have to do this multiple times to close plots manually. Thanks for reminding me that "close all" exists and works fine! lol. For the time being, I will edit my script to automatically save my figures and use "close all" to prevent any crashing.
Please fix this issue soon MW! Thank you
Zoe Hughes
Zoe Hughes le 8 Mar 2024
Same issue. Please fix.
the cyclist
the cyclist le 9 Mar 2024
Modifié(e) : the cyclist le 9 Mar 2024
This thread is the more complete discussion of this issue.
MacOS update 14.3.1 resolved this issue for many folks.

Connectez-vous pour commenter.

Réponses (3)

the cyclist
the cyclist le 25 Nov 2023
Modifié(e) : the cyclist le 25 Nov 2023

2 votes

Known issue (among some others with Sonoma). See this thread.
I have had success closing figures "manually" if I put the focus on a different window first, before closing.

2 commentaires

Ruben Almeida
Ruben Almeida le 22 Fév 2024
This is the only thing that works for me.
the cyclist
the cyclist le 22 Fév 2024
In the thread I mentioned, it has been noted that the most recent Sonoma update seems to have resolved this bug.

Connectez-vous pour commenter.

Thomas
Thomas le 14 Fév 2024

2 votes

I Tried using command+W and it seems to fix the problem
Binod
Binod le 18 Déc 2023
Modifié(e) : Walter Roberson le 18 Déc 2023
One silly technique that I applied on "MacOS_M1_13"_sonoma14.2
% Specify the folder to save all the figures in your desired format(s) and use later
saveFolder = '/Users/practice/mode folder/figures';
% Create the folder if it doesn't exist
if ~exist(saveFolder, 'dir')
mkdir(saveFolder);
end
% Save all open figures in the specified formats
figHandles = findobj('Type', 'figure');
for i = 1:numel(figHandles)
% Save as JPG
saveas(figHandles(i), fullfile(saveFolder, ['figure_', num2str(i), '.jpg']));
% Save as FIG
saveas(figHandles(i), fullfile(saveFolder, ['figure_', num2str(i), '.fig']));
% Save as PNG
saveas(figHandles(i), fullfile(saveFolder, ['figure_', num2str(i), '.png']));
end
close all %if you are able to generate figs. already

2 commentaires

Peter Drummond
Peter Drummond le 11 Fév 2024
Modifié(e) : Peter Drummond le 11 Fév 2024
This is surely just plain ridiculous. Mathworks has known of this problem for years. Actually, it is pretty serious, with all work arounds causing many additional problems. For example, you can't, in my experience use 'close all' in a program, which I do use, without triggering the spinning circle of death.
Apparently it is a Java problem, but Matlab requires an obsolete Java to run. They don't seem concerned that they market a very expensive professional program which repeatedly crashes. If it was a 737, perhaps they would fix it? Oh, I forgot, Boeing did the same exact thing!
Is this a US problem with executives? You know, it costs money to fix things, so lets not bother, it might impact my bonus?
Larry Godwin
Larry Godwin le 27 Fév 2024
Exactly my point

Connectez-vous pour commenter.

Catégories

Question posée :

le 25 Nov 2023

Commenté :

le 21 Mai 2024

Community Treasure Hunt

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

Start Hunting!

Translated by