Login  Register

Re: Applet Problem On MacOS With JOGL 2.0 RC4

Posted by Sven Gothel on Dec 08, 2011; 5:31pm
URL: https://forum.jogamp.org/Applet-Problem-On-MacOS-With-JOGL-2-0-RC4-tp3570786p3570860.html

On Thursday, December 08, 2011 05:55:13 PM gabnicu [via jogamp] wrote:
>
> We were NOT able to run any applet with v. 2.0 RC4 - using MacOS 10.6.8, JRE
> 1.6.0.29, Eclipse

I have not tested Applets w/ Eclipse yet.

Can you try to validate the Applets:

- http://jogamp.org/deployment/jogamp-current/jogl-test-applets.html
  - Works for me on 10.7 (fine) and 10.6.8 (some freezing happens at startup time)

- http://jogamp.org/deployment/jogamp-current/jogl-demos/applet-gears.html
  - I have attached the exception, similar to yours.

Looks like OS X's CA_Layer ain't complete for AWT/GLCanvas.
I have to admit, I only have tested NEWT Applets (1st URL) so far.

Don't worry, I will fix this.

~Sven

> We tested Gears, and got the following:
>

<snip/>

> Exception in thread "Timer-0" javax.media.opengl.GLException:
> javax.media.opengl.GLException: drawable has invalid handle:
> MacOSXOnscreenCGLDrawable[Realized true,
> Factory  
> jogamp.opengl.macosx.cgl.awt.MacOSXAWTCGLDrawableFactory@5bd6fbb3,
> handle    0x0,
> Window    JAWT-Window[windowHandle 0x10017b070, surfaceHandle 0x0, bounds [
> 0 / 0  200 x 200 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], pos 0/0, size
> 200x200, visible true, lockedExt false,
> config AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type
> AWT, connection \Display0, unitID 0, awtDevice CGraphicsDevice[screen=0],
> handle 0x0], idx 0],
> chosen    GLCaps[offscr, rgba 0x8/8/8/0, opaque, accum-rgba 0/0/0/0,
> dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL2/GL2], pixmap],
> 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[GL2/GL2]],
> apple.awt.CGraphicsConfig@6b754699[dev=CGraphicsDevice[screen=0],pixfmt=0],
> encapsulated
> MacOSXCGLGraphicsConfiguration[DefaultGraphicsScreen[MacOSXGraphicsDevice[type
> MacOSX, connection decon, unitID 0, handle 0x0], idx 0],
> chosen    GLCaps[offscr, rgba 0x8/8/8/0, opaque, accum-rgba 0/0/0/0,
> dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL2/GL2], pixmap],
> 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[GL2/GL2]]]],
> awtComponent AWT-GLCanvas[Realized true,
> jogamp.opengl.macosx.cgl.MacOSXOnscreenCGLDrawable,
> Realized true,
> Factory  
> jogamp.opengl.macosx.cgl.awt.MacOSXAWTCGLDrawableFactory@5bd6fbb3,
> handle    0x0,
> Drawable size 200x200,
> AWT pos 0/0, size 200x200,
> visible true,
> AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type AWT,
> connection \Display0, unitID 0, awtDevice CGraphicsDevice[screen=0], handle
> 0x0], idx 0],
> chosen    GLCaps[offscr, rgba 0x8/8/8/0, opaque, accum-rgba 0/0/0/0,
> dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL2/GL2], pixmap],
> 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[GL2/GL2]],
> apple.awt.CGraphicsConfig@6b754699[dev=CGraphicsDevice[screen=0],pixfmt=0],
> encapsulated
> MacOSXCGLGraphicsConfiguration[DefaultGraphicsScreen[MacOSXGraphicsDevice[type
> MacOSX, connection decon, unitID 0, handle 0x0], idx 0],
> chosen    GLCaps[offscr, rgba 0x8/8/8/0, opaque, accum-rgba 0/0/0/0,
> dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL2/GL2], pixmap],
> 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[GL2/GL2]]]]]]]
> 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 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(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
> Caused by: javax.media.opengl.GLException: drawable has invalid handle:
> MacOSXOnscreenCGLDrawable[Realized true,
> Factory  
> jogamp.opengl.macosx.cgl.awt.MacOSXAWTCGLDrawableFactory@5bd6fbb3,
> handle    0x0,
> Window    JAWT-Window[windowHandle 0x10017b070, surfaceHandle 0x0, bounds [
> 0 / 0  200 x 200 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], pos 0/0, size
> 200x200, visible true, lockedExt false,
> config AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type
> AWT, connection \Display0, unitID 0, awtDevice CGraphicsDevice[screen=0],
> handle 0x0], idx 0],
> chosen    GLCaps[offscr, rgba 0x8/8/8/0, opaque, accum-rgba 0/0/0/0,
> dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL2/GL2], pixmap],
> 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[GL2/GL2]],
> apple.awt.CGraphicsConfig@6b754699[dev=CGraphicsDevice[screen=0],pixfmt=0],
> encapsulated
> MacOSXCGLGraphicsConfiguration[DefaultGraphicsScreen[MacOSXGraphicsDevice[type
> MacOSX, connection decon, unitID 0, handle 0x0], idx 0],
> chosen    GLCaps[offscr, rgba 0x8/8/8/0, opaque, accum-rgba 0/0/0/0,
> dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL2/GL2], pixmap],
> 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[GL2/GL2]]]],
> awtComponent AWT-GLCanvas[Realized true,
> jogamp.opengl.macosx.cgl.MacOSXOnscreenCGLDrawable,
> Realized true,
> Factory  
> jogamp.opengl.macosx.cgl.awt.MacOSXAWTCGLDrawableFactory@5bd6fbb3,
> handle    0x0,
> Drawable size 200x200,
> AWT pos 0/0, size 200x200,
> visible true,
<snip/>

applet-osx-awt_glcanvas.txt (98K) Download Attachment