MATLAB Answers

Is anyone else having problems with MatLab 2020b freezing when saving/viewing figures? If so do you know any solutions?

41 views (last 30 days)
Robert Shah
Robert Shah on 20 Oct 2020
Edited: Bruno Luong on 20 Oct 2020
Often I find matlab freezing when I try do things to a figure I've plotted, etc zooming in and out, and closing or saving the figure. If I restart matlab the problem goes away for a short time but after a few hours it comes back.
Looking in the task manager there does seem to be a large build up in the amount of memory it is using, currently at it's at 3GB but the data in my workspace is only 50MB so this seems excessively large.
I only started using 2020b ~2 weeks ago and I've never had this problem when using 2017a.
If anyone has suggestions please let me know!

  0 Comments

Sign in to comment.

Answers (1)

Bruno Luong
Bruno Luong on 20 Oct 2020
Edited: Bruno Luong on 20 Oct 2020
I don't know if you have the same problem, in my case I found a large memory leak of TMW graphic system when using opengl hardware
My workaround: The problem goes away with
opengl software
however this affects the graphical render quality and speed of certain interrractivity (zoom, rotate, etc...).
I can switch between hardware and software in my app, by feels very uncomfortable with this issue.
Not sure about version, I only test my code from R2018b, and the issue occurs with this version up to R2020b.
But first check if you don't add unintentionally (redundant) graphic objects in your figure.

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!