InternalError in GLDrawableHelper on OSX 10.8

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

InternalError in GLDrawableHelper on OSX 10.8

karelknoes
Using JOGL 2.0RC10, we experienced the Mac OSX - libjogl_desktop.jnilib error discussed in thread http://forum.jogamp.org/JOGL-on-Mac-OSX-libjogl-desktop-jnilib-error-td4025842.html.

Using autobuild jogl-b819-2012-09-29 with gluegen-b594-2012-09-29 (which include fixes for the above problem), the the Mac OSX - libjogl_desktop.jnilib error was solved.

Unfortunately, on one of our test Mac's (OS X 10.8.2, Oracle JVM 7u07, Safari 6.0.1, NVIDIA GeForce GT 330M 512MB) a new and seemingly related problem was introduced. Using GLCanvas, JOGL stops and the applet logs the below stack trace. Using GLJPanel instead of GLCanvas, the error doesn't occur.

Looking forward to your thoughts on this issue.

--------------------------

Exception in thread "Thread-14" java.lang.InternalError: Incomplete resize operation: expected 1x1, has: GLFBODrawableImpl[Initialized false, realized false, texUnit 0, samples 4,
        Factory   jogamp.opengl.macosx.cgl.awt.MacOSXAWTCGLDrawableFactory@7ce37f76,
        Handle    0x7fadcd589a10,
        Caps      GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 16/8/4, sample-ext default, dbl, mono  , hw, GLProfile[GL2/GL2.hw], offscr[fbo]],
        fboI back 0, front 0, num 0,
        FBO front read 0, null,
        FBO back  write 0, null,
        Surface   JAWT-Window[windowHandle 0x7fadcd588f20, surfaceHandle 0x7fadcd589a10, bounds [ 0 / 0  0 x -41 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], shallUseOffscreenLayer false, isOffscreenLayerSurface true, pos 0/0, size 0x-41, visible true, lockedExt false,
        config AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type .awt, connection Display 69678080, unitID 0, awtDevice sun.awt.CGraphicsDevice@3bc55c08, handle 0x0], idx 0],
        chosen    GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 16/8/4, sample-ext default, dbl, mono  , hw, GLProfile[GL2/GL2.hw], offscr[fbo]],
        requested GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 16/8/4, sample-ext default, dbl, mono  , hw, GLProfile[GL2/GL2.hw], on-scr[.]],
        CGLGraphicsConfig[dev=69678080,pixfmt=0],
        encapsulated MacOSXCGLGraphicsConfiguration[DefaultGraphicsScreen[MacOSXGraphicsDevice[type .macosx, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], idx 0],
        chosen    GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 16/8/4, sample-ext default, dbl, mono  , hw, GLProfile[GL2/GL2.hw], offscr[fbo]],
        requested GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 16/8/4, sample-ext default, dbl, mono  , hw, GLProfile[GL2/GL2.hw], on-scr[.]]]],
        awtComponent AWT-GLCanvas[Realized false,
        jogamp.opengl.GLFBODrawableImpl,
        Factory   jogamp.opengl.macosx.cgl.awt.MacOSXAWTCGLDrawableFactory@7ce37f76,
        handle    0x7fadcd589a10,
        Drawable size 0x-41,
        AWT pos 0/0, size 0x-41,
        visible true,
        AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type .awt, connection Display 69678080, unitID 0, awtDevice sun.awt.CGraphicsDevice@3bc55c08, handle 0x0], idx 0],
        chosen    GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 16/8/4, sample-ext default, dbl, mono  , hw, GLProfile[GL2/GL2.hw], offscr[fbo]],
        requested GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 16/8/4, sample-ext default, dbl, mono  , hw, GLProfile[GL2/GL2.hw], on-scr[.]],
        CGLGraphicsConfig[dev=69678080,pixfmt=0],
        encapsulated MacOSXCGLGraphicsConfiguration[DefaultGraphicsScreen[MacOSXGraphicsDevice[type .macosx, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], idx 0],
        chosen    GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 16/8/4, sample-ext default, dbl, mono  , hw, GLProfile[GL2/GL2.hw], offscr[fbo]],
        requested GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 16/8/4, sample-ext default, dbl, mono  , hw, GLProfile[GL2/GL2.hw], on-scr[.]]]]],
        surfaceLock <1a1d2fe0, 72322884>[count 0, qsz 0, owner <NULL>]]]
        at jogamp.opengl.GLDrawableHelper.resizeOffscreenDrawable(GLDrawableHelper.java:270)
        at javax.media.opengl.awt.GLCanvas.reshape(GLCanvas.java:652)
        at java.awt.Component.setBounds(Component.java:2243)
        at java.awt.CardLayout.layoutContainer(CardLayout.java:384)
        at java.awt.Container.layout(Container.java:1503)
        at java.awt.Container.doLayout(Container.java:1492)
        at java.awt.Container.validateTree(Container.java:1688)
        at java.awt.Container.validateTree(Container.java:1697)
        at java.awt.Container.validateTree(Container.java:1697)
        at java.awt.Container.validateTree(Container.java:1697)
        at java.awt.Container.validate(Container.java:1623)
        at javax.swing.JLayeredPane.addImpl(JLayeredPane.java:231)
        at java.awt.Container.add(Container.java:966)
        at javax.swing.JRootPane.setContentPane(JRootPane.java:625)
        at javax.swing.JApplet.setContentPane(JApplet.java:427)
        .....

Reply | Threaded
Open this post in threaded view
|

Re: InternalError in GLDrawableHelper on OSX 10.8

Sven Gothel
Administrator
On 10/03/2012 04:23 PM, karelknoes [via jogamp] wrote:
> Using JOGL 2.0RC10, we experienced the Mac OSX - libjogl_desktop.jnilib error
> discussed in thread
> http://forum.jogamp.org/JOGL-on-Mac-OSX-libjogl-desktop-jnilib-error-td4025842.html.
>
>
> Using autobuild jogl-b819-2012-09-29 with gluegen-b594-2012-09-29 (which
> include fixes for the above problem), the the Mac OSX - libjogl_desktop.jnilib
> error was solved.

Great.

>
> Unfortunately, on one of our test Mac's (OS X 10.8.2, Oracle JVM 7u07, Safari
> 6.0.1, NVIDIA GeForce GT 330M 512MB) a new and seemingly related problem was
> introduced. Using GLCanvas, JOGL stops and the applet logs the below stack
> trace. Using GLJPanel instead of GLCanvas, the error doesn't occur.

Nope, it's not related.

My problem is currently not having a OSX 10.8.2 machine .. well

>
> Looking forward to your thoughts on this issue.

The canvas size is 'funny', 0 x -41.
Does this happen ASAP after 'setVisible(true)' ?

I will fix the query of a valid size, which currently is:
   width x height > 0
ofc, we haven't expected such odd numbers.

Fixed:
  <http://jogamp.org/git/?p=jogl.git;a=commit;h=a3cb6bb14f410f67fccf5ccd4cd7ecc66f448389>
  <https://jogamp.org/bugzilla/show_bug.cgi?id=572>

~Sven

> Exception in thread "Thread-14" java.lang.InternalError: Incomplete resize operation: expected 1x1, has: GLFBODrawableImpl[Initialized false, realized false, texUnit 0, samples 4,
>         Factory   jogamp.opengl.macosx.cgl.awt.MacOSXAWTCGLDrawableFactory@7ce37f76,
>         Handle    0x7fadcd589a10,
>         Caps      GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 16/8/4, sample-ext default, dbl, mono  , hw, GLProfile[GL2/GL2.hw], offscr[fbo]],
>         fboI back 0, front 0, num 0,
>         FBO front read 0, null,
>         FBO back  write 0, null,
>         Surface   JAWT-Window[windowHandle 0x7fadcd588f20, surfaceHandle 0x7fadcd589a10, bounds [ 0 / 0  0 x -41 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], shallUseOffscreenLayer false, isOffscreenLayerSurface true, pos 0/0, size 0x-41, visible true, lockedExt false,
>         config AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type .awt, connection Display 69678080, unitID 0, awtDevice sun.awt.CGraphicsDevice@3bc55c08, handle 0x0], idx 0],
>         chosen    GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 16/8/4, sample-ext default, dbl, mono  , hw, GLProfile[GL2/GL2.hw], offscr[fbo]],
>         requested GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 16/8/4, sample-ext default, dbl, mono  , hw, GLProfile[GL2/GL2.hw], on-scr[.]],
>         CGLGraphicsConfig[dev=69678080,pixfmt=0],
>         encapsulated MacOSXCGLGraphicsConfiguration[DefaultGraphicsScreen[MacOSXGraphicsDevice[type .macosx, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], idx 0],
>         chosen    GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 16/8/4, sample-ext default, dbl, mono  , hw, GLProfile[GL2/GL2.hw], offscr[fbo]],
>         requested GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 16/8/4, sample-ext default, dbl, mono  , hw, GLProfile[GL2/GL2.hw], on-scr[.]]]],
>         awtComponent AWT-GLCanvas[Realized false,
>         jogamp.opengl.GLFBODrawableImpl,
>         Factory   jogamp.opengl.macosx.cgl.awt.MacOSXAWTCGLDrawableFactory@7ce37f76,
>         handle    0x7fadcd589a10,
>         Drawable size 0x-41,
>         AWT pos 0/0, size 0x-41,
>         visible true,
>         AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type .awt, connection Display 69678080, unitID 0, awtDevice sun.awt.CGraphicsDevice@3bc55c08, handle 0x0], idx 0],
>         chosen    GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 16/8/4, sample-ext default, dbl, mono  , hw, GLProfile[GL2/GL2.hw], offscr[fbo]],
>         requested GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 16/8/4, sample-ext default, dbl, mono  , hw, GLProfile[GL2/GL2.hw], on-scr[.]],
>         CGLGraphicsConfig[dev=69678080,pixfmt=0],
>         encapsulated MacOSXCGLGraphicsConfiguration[DefaultGraphicsScreen[MacOSXGraphicsDevice[type .macosx, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], idx 0],
>         chosen    GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 16/8/4, sample-ext default, dbl, mono  , hw, GLProfile[GL2/GL2.hw], offscr[fbo]],
>         requested GLCaps[rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 16/8/4, sample-ext default, dbl, mono  , hw, GLProfile[GL2/GL2.hw], on-scr[.]]]]],
>         surfaceLock <1a1d2fe0, 72322884>[count 0, qsz 0, owner <NULL>]]]
>         at jogamp.opengl.GLDrawableHelper.resizeOffscreenDrawable(GLDrawableHelper.java:270)
>         at javax.media.opengl.awt.GLCanvas.reshape(GLCanvas.java:652)
>         at java.awt.Component.setBounds(Component.java:2243)
>         at java.awt.CardLayout.layoutContainer(CardLayout.java:384)



signature.asc (907 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: InternalError in GLDrawableHelper on OSX 10.8

karelknoes
Much thanks for the fast fix! I'll test it as soon as the newest autobuild contains this fix.

> The canvas size is 'funny', 0 x -41.
> Does this happen ASAP after 'setVisible(true)' ?

The exception is thrown when the contentPane is set. The GLCanvas resize is taken care of by the swing layout manager, which seems to favor some odd sizes during its initialization. We call setVisible shortly after the contentPane is set.
Reply | Threaded
Open this post in threaded view
|

Re: InternalError in GLDrawableHelper on OSX 10.8

karelknoes
Running smoothly again. Fixed confirmed.