Great, with that info I was able to repro your issue. I am not on latest Monterrey so I will try again with latest, and if I can repro again, we could perhaps then try and spot the issue. I get these errors in my console in 12.6.3:
**2023-05-29 11:25:36.613620-0700 OpenGLAppTutorial[26663:416562] fopen failed for data file: errno = 2 (No such file or directory)**
**2023-05-29 11:25:36.613739-0700 OpenGLAppTutorial[26663:416562] Errors found! Invalidating cache...**
**2023-05-29 11:25:36.674242-0700 OpenGLAppTutorial[26663:416562] fopen failed for data file: errno = 2 (No such file or directory)**
**2023-05-29 11:25:36.674305-0700 OpenGLAppTutorial[26663:416562] Errors found! Invalidating cache...**
**2023-05-29 11:25:46.541221-0700 OpenGLAppTutorial[26663:416561] Persistent UI failed to open file file:///Users/<username>/Library/Saved%20Application%20State/com.JUCE.OpenGLAppTutorial.savedState/window_7.data: No such file or directory (2)**
I also got this warning in Xcode:

This warning appears to be a non-issue according to: UI API called from background thread, however @reuk’s fix does not touch the part of the class where this warning is emitted:
Update: I’m whittling it down, the issue persists on latest Monterrey but I don’t have the issue on Catalina with JUCE 7.0.2 and 7.0.5. I’ll try once more with latest JUCE on Ventura.
@TPeters do you have a mac that cannot update beyond Monterrey like a mid-2015 MacBook Pro or similar?

