NullException in GL.createCapabilities().

Started by Wolftein1, September 12, 2015, 22:21:24

Previous topic - Next topic

Wolftein1

After calling GL.createCapabilities() i get NullException on any LWJGL 3.0.0b version.

Exception in thread "main" java.lang.NullPointerException
   at org.lwjgl.system.Checks.checkPointer(Checks.java:80)
   at org.lwjgl.opengl.GL.createCapabilities(GL.java:278)
   at org.lwjgl.opengl.GL.createCapabilities(GL.java:230)
   at me.siegenthaler.hydra.media.DesktopWindow.pfCreate(DesktopWindow.java:179)
   at me.siegenthaler.hydra.media.DesktopWindow.<init>(DesktopWindow.java:127)
   at Main.main(Main.java:11)

at org.lwjgl.opengl.GL.createCapabilities(GL.java:278):  -> APIVersion GL_VERSIONS = APIUtil.apiParseVersion(MemoryUtil.memDecodeUTF8(Checks.checkPointer(JNI.callIP(GetString, 7938))));

Using LWJGL 3.0.0a will print: Exception in thread "main" java.lang.IllegalStateException: Invalid X server connection specified.

UPDATE: Removing libgl1-mesa-dev from my system will actually fix it.