Login  Register

Re: Unable to create temp OpenGL context for device context

Posted by jouvieje on Nov 10, 2011; 5:40pm
URL: https://forum.jogamp.org/Unable-to-create-temp-OpenGL-context-for-device-context-tp3089571p3497431.html

I'm having similar exception that shows up while switching a GLCanvas to fullscreen  (GLCanvas moved to a new undecorated frame, then setFullScreenWindow on it). I'm using sun.java2d.noddraw=true too.

Nothing crash and after the switch the rendering is fine. I'm wondering if the exception is normal behavior or may be something that should be fixed somewhere (and possibly from my code ?).
BTW I'm using JOGL b544 and the exception is below:

Exception in thread "RenderLoop-0" javax.media.opengl.GLException: javax.media.opengl.GLException: Unable to create temp OpenGL context for device context 0x51011f83
        at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:98)
        at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:197)
        at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:164)
        at javax.media.opengl.awt.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:797)
        at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:400)
        at jouvieje.scene.target.jogl2.GLCanvas_jogl2.onDisplay(GLCanvas_jogl2.java:63)
        at jouvieje.opengl.RenderLoop$Loop.run(RenderLoop.java:61)
Caused by: javax.media.opengl.GLException: Unable to create temp OpenGL context for device context 0x51011f83
        at jogamp.opengl.windows.wgl.WindowsWGLContext.createImpl(WindowsWGLContext.java:296)
        at jogamp.opengl.GLContextImpl.makeCurrentLocking(GLContextImpl.java:458)
        at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:392)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:370)
        at javax.media.opengl.awt.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:920)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$000(Unknown Source)
        at java.awt.EventQueue$1.run(Unknown Source)
        at java.awt.EventQueue$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
       
Jérôme