Login  Register

Issue with Java 3D under OpenJDK 7 / Mac OS X

Posted by Manu on Jun 20, 2012; 4:31pm
URL: https://forum.jogamp.org/Issue-with-Java-3D-under-OpenJDK-7-Mac-OS-X-tp4025259.html

Hi,

I'm the developer of Sweet Home 3D, an open source Swing / Java3D interior design application, and I'm very happy to see the revival of Java 3D on top of the latest version of JOGL, before all because without it, we were close to a sad end to run Java 3D with the upcoming OpenJDK under Mac OS X.

As the bottom part of the following image shows, my first tests with the latest build were successful with Java 6 under Mac OS X.

Sweet Home 3D under Java 6 / Mac OS X

Miserably, when I switch to OpenJDK 7, the program can't run and I get the following error in the console:

javax.media.opengl.GLException: drawable has invalid handle: MacOSXOnscreenCGLDrawable[Realized true,
        Factory   jogamp.opengl.macosx.cgl.awt.MacOSXAWTCGLDrawableFactory@6eebe07e,
        handle    0x0,
        Window    JAWT-Window[windowHandle 0x7ff63d7b7f60, surfaceHandle 0x0, bounds [ 0 / 0  765 x 526 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], shallUseOffscreenLayer false, isOffscreenLayerSurface true, pos 0/0, size 765x526, visible true, lockedExt false,
        config AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type AWT, connection Display 69678464, unitID 0, awtDevice sun.awt.CGraphicsDevice@ef28a30, handle 0x0], idx 0],
        chosen    GLCaps[offscr, rgba 0x5/5/5/1, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL2/GL2.hw], pixmap],
        requested GLCaps[on-scr, rgba 0x5/5/5/1, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL2/GL2.hw]],
        CGLGraphicsConfig[dev=69678464,pixfmt=0],
        encapsulated MacOSXCGLGraphicsConfiguration[DefaultGraphicsScreen[MacOSXGraphicsDevice[type MacOSX, connection decon, unitID 0, handle 0x0], idx 0],
        chosen    GLCaps[offscr, rgba 0x5/5/5/1, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL2/GL2.hw], pixmap],
        requested GLCaps[on-scr, rgba 0x5/5/5/1, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL2/GL2.hw]]]],
        awtComponent com.eteks.sweethome3d.j3d.Component3DManager$1[canvas2,0,0,765x526],
        surfaceLock <708a932f, 19c52c62>[count 1, qsz 0, owner <J3D-Renderer-1>]]]
        at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:422)
        at javax.media.j3d.JoglPipeline.createNewContext(JoglPipeline.java:6238)
        at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:4815)
        at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:2439)
        at javax.media.j3d.Renderer.doWork(Renderer.java:907)
        at javax.media.j3d.J3dThread.run(J3dThread.java:275)
Error in Java 3D : 3 Renderer: Error creating Canvas3D graphics context


Before going further, I prefer to ask for your opinion. Maybe it's a simple adjustment required on my side.
Thanks for your help
Emmanuel Puybaret