Scripts become blank and unviewable on R2022a/b (M1 mac)

75 views (last 30 days)
I'm regularly experiencing an issue where several minutes after opening and using MATLAB, all tabs (for all other scripts/live scripts) asides from the one that I've been actively working on will become completely white and blank. Seemingly nothing will fix the issue except restarting MATLAB which is extremely annoying. The contents don't seem to be getting affected, it just becomes impossible to work on anything except a single script. Closing and reopening the tabs does nothing and newly created scripts are also unusable. I have seen other posts suggesting that this could be an issue with opengl hardware rendering, however on my computer opengl software rendering doesn't seem to be supported.
Computer specs:
  • MacOS Monterey 12.2.1
  • Macbook air M1 2020
  • Memory: 16 GB
MATLAB:
  • R2022b (same issue occurs on R2022a)
  • 64-bit maci64
Please let me know if any other information would be helpful. Thanks!
  8 Comments
Steven Lord
Steven Lord on 21 Feb 2023
@Timber In that case please contact Technical Support using the instructions @Santosh Fatale posted and work with the Support staff to determine the cause of this behavior.
Jenny Bosten
Jenny Bosten on 15 Aug 2024
I am experiencing the same issue across 3 different macs (intel, M1 and M2) for R2022, R2023 and R2024. Started occuring about 6 months ago, probably when I upgraded OS to Monterey/Sonoma.

Sign in to comment.

Answers (5)

Aldo Corbellini
Aldo Corbellini on 25 Mar 2023
I have a 13" Macbook M1 with 16 Gb and Ventura 13.2.1 and I have the same issues.
I noticed that when you close MATLAB after having these issues, you can see the following error for just a split second:
Warning: Graphics timeout occurred. To share details of this issue with MathWorks technical support, please include that this is an unresponsive graphics client with your service request.
So I thought that these issues could have been an opengl quirkiness.
After searching how to run the MATLAB GUI with a software version of opengl I learnt that, on MacOS, software opengl is not supported.
But then I found this command that enables a simpler version if opengl.
In the command windows type:
opengl hardwarebasic
Now when the scripts tabs become unresponsive you still got the same error but somehow MATLAB is able to recover in a couple of seconds and the scripts are displayed correctly.
Let me know if this option is able to fix your issues as well.
  1 Comment
Anirudh
Anirudh on 1 Jun 2024
I had the same issue on 2024a maca64 and this opengl hardwarebasic works for me.

Sign in to comment.


MARCO
MARCO on 26 Nov 2022
I had the same problem, and I spent weeks trying to figure out a solution.
Apparently, installing the MATLAB R2022b Native Apple Silicon Open Beta solved the issue (https://it.mathworks.com/support/apple-silicon-r2022b-beta.html).

Iain
Iain on 11 Jul 2023
I am having this issue too ... I'm using an M2 Pro Mac Mini 32GB Ram, running Ventura 13.4.1 and MATLAB 23a.
I have found a work around but its a bit of a stupid/non solution. Basically, if I open MATLAB in full screen mode, then close it ... next time it will re-open in its previous state (i.e. full screen mode). After that it works fine if I subsequently reduce the MATLAB window size.
Its like MATLAB is somehow mixing up the allocation of window size with screen size. So ... if you open it up as a window that is smaller than the full screen and then re-size the window, it starts to loose track of how much space it has available and leaves blank unfilled sections on the screen as you re-size the window. Whatever is happening, its certainly not refreshing the screen properly as the window changes.

Santosh Fatale
Santosh Fatale on 3 Oct 2022
Hi Jonathan,
I understand that you are facing an issue with MATLAB installation. To understand the issue better and assist you there is a need to investigate it further.
You can create a service request by following the MATLAB Support link below for the issue you are encountering and provide all the details related to the issue

Jonathan Lilly
Jonathan Lilly on 1 Nov 2022
I had this issue too on both an M1 mac and an Intel mac after upgrading both to Ventura.
It was solved by going to System Settings > Privacy and Security > Files and Folders > Matlab and giving permission for all three folders: Desktop, Downloads, and Documents.
  3 Comments
Chad Greene
Chad Greene on 14 Dec 2022
Unfortunately all three folders are checked for me, and I'm still experiencing the issue.

Sign in to comment.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!