Login  Register

Error Making Context Current JOGL 2.0 rc9

Posted by lukej on Jul 12, 2012; 5:41pm
URL: https://forum.jogamp.org/Error-Making-Context-Current-JOGL-2-0-rc9-tp4025517.html

I've got a JOGL 2.0 application and I'm getting a very repeatable "Error making context current: 0x0x20000" error.  It only happens when the OpenGL window is created on my second monitor (which ever one is not my main monitor in windows) - oddly enough.  I've tried making each monitor main, and it happens when I "setLocation" of the JFrame to the OTHER monitor.

Any thoughts on what might be causing this?  I've seen a lot of posts like this that are older, but the answer is always: "the bug was fixed, use the latest version."  I am using the latest RC.

EDIT - By the way this is on a box with an ATI Radeon HD 5700 Series graphics card.  I cannot seem to reproduce this issue on any machine with an NVidia graphics card.

Here is what I get on my console:

Exception in thread "Timer-0" java.lang.RuntimeException: javax.media.opengl.GLException: Error making context current: 0x0x20000, werr: 0, WindowsOnscreenWGLContext [OpenGL 4.2, options 0x103, 4.2 (Compatibility profile, arb, ES2 compatible, hardware) - 4.2.11631 Compatibility Profile Context, handle 0x20000, jogamp.opengl.gl4.GL4bcImpl@7d91275b,
        Drawable: WindowsOnscreenWGLDrawable[Realized true,
        Factory   jogamp.opengl.windows.wgl.WindowsWGLDrawableFactory@44af07c4,
        handle    0xffffffffb2011a77,
        Window    JAWT-Window[windowHandle 0x220c74, surfaceHandle 0xffffffffb2011a77, bounds [ 0 / 0  784 x 762 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], shallUseOffscreenLayer false, isOffscreenLayerSurface false, pos 0/0, size 784x762, visible true, lockedExt false,
        config AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type AWT, connection \Display0, unitID 0, awtDevice D3DGraphicsDevice[screen=0], handle 0x0], idx 0],
        chosen    GLCaps[wgl vid 0x2 arb: on-scr, rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/8/0, dbl, mono  , hw, GLProfile[GL4bc/GL4bc.hw]],
        requested GLCaps[on-scr, rgba 0x8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL4bc/GL4bc.hw]],
        sun.awt.Win32GraphicsConfig@71a550f9[dev=D3DGraphicsDevice[screen=0],pixfmt=2],
        encapsulated WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[WindowsGraphicsDevice[type Windows, connection decon, unitID 0, handle 0x0], idx 0], pfdID 2, ARB-Choosen true,
        requested GLCaps[on-scr, rgba 0x8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL4bc/GL4bc.hw]],
        chosen    GLCaps[wgl vid 0x2 arb: on-scr, rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/8/0, dbl, mono  , hw, GLProfile[GL4bc/GL4bc.hw]]]],
        awtComponent AWT-GLCanvas[Realized true,
        jogamp.opengl.windows.wgl.WindowsOnscreenWGLDrawable,
        Factory   jogamp.opengl.windows.wgl.WindowsWGLDrawableFactory@44af07c4,
        handle    0xffffffffb2011a77,
        Drawable size 784x762,
        AWT pos 0/0, size 784x762,
        visible true,
        AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type AWT, connection \Display0, unitID 0, awtDevice D3DGraphicsDevice[screen=0], handle 0x0], idx 0],
        chosen    GLCaps[wgl vid 0x2 arb: on-scr, rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/8/0, dbl, mono  , hw, GLProfile[GL4bc/GL4bc.hw]],
        requested GLCaps[on-scr, rgba 0x8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL4bc/GL4bc.hw]],
        sun.awt.Win32GraphicsConfig@71a550f9[dev=D3DGraphicsDevice[screen=0],pixfmt=2],
        encapsulated WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[WindowsGraphicsDevice[type Windows, connection decon, unitID 0, handle 0x0], idx 0], pfdID 2, ARB-Choosen true,
        requested GLCaps[on-scr, rgba 0x8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL4bc/GL4bc.hw]],
        chosen    GLCaps[wgl vid 0x2 arb: on-scr, rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/8/0, dbl, mono  , hw, GLProfile[GL4bc/GL4bc.hw]]]]],
        surfaceLock <3f26f816, 17698cbe>[count 1, qsz 0, owner <AWT-EventQueue-0>]]], lock <129719f4, 7e28ebb4>[count 1, qsz 0, owner <AWT-EventQueue-0>]]
        at jogamp.common.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
        at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:103)
        at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:206)
        at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)
        at javax.media.opengl.Threading.invoke(Threading.java:191)
        at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:404)
        at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:74)
        at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:142)
        at com.jogamp.opengl.util.FPSAnimator$1.run(FPSAnimator.java:128)
        at java.util.TimerThread.mainLoop(Unknown Source)
        at java.util.TimerThread.run(Unknown Source)