-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JVM crash with "NSOpenGLContext setView: must be called from the main thread" #60
Comments
OK I'm able to reproduce it. This may relate to #51. Thanks for the report. |
Hi, I'm also seeing this same issue on macOS 14 (Sonoma) on an M1 MBA w/ Correto 17 on 0.1.9-SNAPSHOT. From what I gather, macOS 10.15 deprecated OpenGL and changed GL functions to require being called from the main thread. I'm not sure if there's a way to get a task runner for the It looks like LWJGL2 solved this by implementing its own Thanks for your time! |
Hi, I came across this library and also found out that the OpenGL part is not working on recent aarch64 macOS with the error provided in this issue. I decided to investigate it and found out that the actual problem is not the
As the error suggests, it should be called on AppKit's main thread. I used performSelectorOnMainThread as the easiest way to achieve this. As a result, it now works on Mac (I attached system details and some screenshots below). @SWinxy @httpdigest I opened a PR #75 with these changes and will be really happy if we could merge it and make a new release, as I want to use the library in an application which should work on macOS. Please ping me in case any changes are needed. Details: |
Merged and new version pushed! |
Hi folks,
I'm experiencing reproducible JVM crash when running AWTTest on Mac OS aarch64.
The JVM crash immediately with the message
I tried a variety of JDK (Azul 13, Temurin 11, Temurin 17, Correto 15) and it happens for all. No specific JVM parameters.
Config
Thanks in advance
The text was updated successfully, but these errors were encountered: