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

54 views (last 30 days)
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!

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.
  1 Comment
Bruno Luong
Bruno Luong on 15 Apr 2022
Revisit my complain 18 months ago, I run the same program on R2022a and Windows11, same computer, the big memory leak of opengl hardware seems to be gone.

Sign in to comment.

Categories

Find more on Graphics Performance 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!