Skip to content

Cannot read the context in platform Mac OS M1  #15

@tklee1975

Description

@tklee1975
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions