Skip to main content

javax.media.opengl.GLException: No OpenGL context current on this thread

5 replies [Last post]
hhuang
Offline
Joined: 2009-11-17

Somebody get to help me, the exception is as below:

Exception in thread "MTGame Renderer" javax.media.opengl.GLException: No OpenGL context current on this thread
at javax.media.opengl.glu.GLU.getCurrentGL(GLU.java:234)
at com.jme.renderer.jogl.JOGLCamera.doFrustumChange(JOGLCamera.java:193)
at com.jme.renderer.jogl.JOGLCamera.apply(JOGLCamera.java:158)
at com.jme.renderer.jogl.JOGLRenderer.setCamera(JOGLRenderer.java:247)
at org.jdesktop.mtgame.OnscreenRenderBuffer.makeCurrent(OnscreenRenderBuffer.java:185)
at org.jdesktop.mtgame.Renderer.run(Renderer.java:858)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
shawnkendall
Offline
Joined: 2003-06-10

Also I should mention (as you can see) this Exception comes from how MTGame sets up and uses jME, it's been tricky.

hhuang
Offline
Joined: 2009-11-17

thx for your answer, and btw, this error also happend when I run an applet in windows sometimes

souliloquy
Offline
Joined: 2008-04-19

when running locally calling mtgame.shutdown() should prevent this issue... when running in an applet - there is an issue. we are trying to figure out a solution for that too!

hhuang
Offline
Joined: 2009-11-17

another question, is there an applet version of wonderland being developed officially ?

shawnkendall
Offline
Joined: 2003-06-10

We are getting this exact same exception and are trying to find a fix right now as well.

This happened for us when we run an applet, on Mac OS ONLY, and then running again in the same browser session. You have to completely close the browser to get it start up again.

It seems like the first run is keeping it's OpenGL context around and not cleaning up properly. We have tried many run options as well as shutdown changes with no success so far.

I also posted this issue to the JOGL forums over at Javagaming.org and jME forums, just FYI.

Message was edited by: shawnkendall