Login  Register

Re: InternalError in GLDrawableHelper on OSX 10.8

Posted by Sven Gothel on Oct 05, 2012; 4:38am
URL: https://forum.jogamp.org/InternalError-in-GLDrawableHelper-on-OSX-10-8-tp4026337p4026395.html

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