https://forum.jogamp.org/Applet-Problem-On-MacOS-With-JOGL-2-0-RC4-tp3570786p3570860.html
> We were NOT able to run any applet with v. 2.0 RC4 - using MacOS 10.6.8, JRE
I have not tested Applets w/ Eclipse yet.
- Works for me on 10.7 (fine) and 10.6.8 (some freezing happens at startup time)
- 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.
> 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,