Skip to content
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

Cannot read the context in platform Mac OS M1 #15

Open
tklee1975 opened this issue Apr 27, 2024 · 0 comments
Open

Cannot read the context in platform Mac OS M1 #15

tklee1975 opened this issue Apr 27, 2024 · 0 comments

Comments

@tklee1975
Copy link

platformCanvas: org.lwjgl.opengl.swt.PlatformMacOSXGLCanvas@6bf256fa
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "org.eclipse.swt.internal.cocoa.NSGraphicsContext.saveGraphicsState()" because "context" is null
	at org.eclipse.swt.widgets.Widget.drawRect(Widget.java:764)
	at org.eclipse.swt.widgets.Canvas.drawRect(Canvas.java:170)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:6237)
	at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)

Encounter this NullPointerException for the setup
Environment: Macbook OS 14.2.1 (Sonoma) Apple M2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant