Azzera filtri
Azzera filtri

Why does MatlabR2023b frequently crashes when generating figures

68 visualizzazioni (ultimi 30 giorni)
-I am using latest matlab model with latest Macbook Air (software up-to-date)
-Codes can correctly generate figures (using plot function), but when I try to close the graph it stops responding
-Exact same codes have been succesfully generating graph last year with R2022a model, on an older mac
-Have tried deleting and re-downloading matlab and did not work.
-Have tried restarting (Matlab and Laptop), did not work
Would be very grateful for any advice on what to do.
(For specific academic reasons I cannot upload code here.)
  1 Commento
Devon
Devon il 10 Nov 2023
Couple of clarifying questions about the issue:
  1. Is there a crash report from MATLAB?
  2. Is it the exact same release of MATLAB?
  3. Do you have the RAM and system information for the machines? You might be hitting memory limitations based on the hardware
If you don't get an answer here and you have a valid MATLAB license, you can contact MATLAB support for someone to help troubleshot this issue https://www.mathworks.com/support/contact_us.html

Accedi per commentare.

Risposte (3)

Walter Roberson
Walter Roberson il 11 Nov 2023
-Codes can correctly generate figures (using plot function), but when I try to close the graph it stops responding
Don't close the graphs ;-)
Seriously, though: this is a known problem for MacOS Monteray and Sonoma on Apple Silicon, that if you use the window decorations to close a window that you run into problems. The work-around is to delete() the figure window. Or see the workaround at https://www.mathworks.com/matlabcentral/answers/1808195-matlab-r2022a-freezes-on-macos-monterey-12-5-1-when-closing-a-figure#answer_1324680

Steven Lord
Steven Lord il 10 Nov 2023
Searching the Bug Reports for release R2023b for "crash" in the MATLAB product I find seven hits, but none of them seem like they're that close a match for the behavior you described unless you're using an unsupported JRE or a screen event occurs.
Since you say your software is up-to-date, are you using Sonoma? If so see if your crash log files look like the one in this Answers post.
If none of the descriptions in the Bug Reports of what causes the bug to manifest match your configuration or workflow, and you're not using Sonoma, please contact Technical Support directly using this link and send them the crash log files.

Image Analyst
Image Analyst il 10 Nov 2023
Modificato: Image Analyst il 10 Nov 2023
  1. Does it actually crash MATLAB itself and you get an operating system error something like "MATLAB has encountered a fatal error and must close" and then either right then, or the next time you start MATLAB, it asks you to submit a crash log?
  2. OR, does MATLAB keep running but your program crashed (threw an error)?
  3. OR, does it just appear to hang and nothing changes on the screen anymore? If it's hung in your program, then it could be you're in an infinite loop, or you're doing something really time consuming, or else you're asking it to plot millions of things and it's taking so long to render them all.
How long does it take to run on the other computer where it works?
  1 Commento
Shuqi
Shuqi il 10 Nov 2023
Hi, thank you for your answer—-nothing appears on screen that says error, but matlab stops responding (the figure itself is fine and I can add titles etc, but if I close it it stops responding and I cannot force-quit the programme or close the tab or do anything except to force-quit matlab). When I run the same codes on other laptop it is instantaneous and responds well. The codes are very simple and so is the figure. But new matlab on new laptop stops responding after I generate any figure and try to close them.

Accedi per commentare.

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Tag

Prodotti


Release

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by