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

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 Kommentare

I am having the same issue. Did you get the problem resolved? How?
Thank you for sharing.
Same problem here on a Mac with an Intel chip. All text in the editor window randomly vanishes in R2022b and nothing works again until Matlab is restarted.
Some time after posting this question the problem stopped occurring for me but unfortunately I have no idea why it might have started or why it stopped. The only thing I can think of that changed with my setup in that time was installing a couple toolboxes (e.g. the symbolic math toolbox) which I didn't do with the intention of fixing this issue.
Sachleen Singh
Sachleen Singh am 23 Jan. 2023
Bearbeitet: Sachleen Singh am 23 Jan. 2023
Same problem with macbook air pro, matlab R2022 b. Installing symbolic math toolbox doesn't work for me.
I am experiencing the same issue, macbook pro (M1 pro), ventura 13.0.1, matlab R2022a
I also have this issue. I've tried all suggested possible solutions in this thread and nothing works :(
@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.
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.

Melden Sie sich an, um zu kommentieren.

Antworten (5)

Aldo Corbellini
Aldo Corbellini am 25 Mär. 2023

3 Stimmen

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 Kommentar

I had the same issue on 2024a maca64 and this opengl hardwarebasic works for me.

Melden Sie sich an, um zu kommentieren.

MARCO
MARCO am 26 Nov. 2022

1 Stimme

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 am 11 Jul. 2023

1 Stimme

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 am 3 Okt. 2022

0 Stimmen

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 am 1 Nov. 2022

0 Stimmen

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 Kommentare

Precisely the same problem here: Intel i7 Macbook Pro, Ventura 13.0.1, R2022b Update 1. Unfortunately, this suggested solution did not work on my system.
Unfortunately all three folders are checked for me, and I'm still experiencing the issue.
Same here!

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Graphics Performance finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2022b

Gefragt:

Jon
am 29 Sep. 2022

Kommentiert:

am 15 Aug. 2024

Community Treasure Hunt

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

Start Hunting!

Translated by