Posted by
Manu on
Nov 10, 2012; 5:25pm
URL: https://forum.jogamp.org/Issue-with-Java-3D-under-OpenJDK-7-Mac-OS-X-tp4025259p4026851.html
Since Harvey didn't post any Java 3D update since his message on Oct 04, 2012, I didn't expect it would work, but nevertheless, I tested JogAmp rc11 last week with this
Jar Executable file.
Under Java 1.7 and Mac OS X, I get a very similar error:
javax.media.opengl.GLException: BackingLayerHost w/ unknown handle (!FBO, !PBuffer): MacOSXOnscreenCGLDrawable[Realized true,
Factory jogamp.opengl.macosx.cgl.awt.MacOSXAWTCGLDrawableFactory@69c13fc4,
Handle 0x7fb00769aa10,
Surface JAWT-Window[windowHandle 0x7fb00769a280, surfaceHandle 0x7fb00769aa10, 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@69950b4, handle 0x0], idx 0],
chosen GLCaps[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], offscr[auto-cfg]],
requested GLCaps[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], on-scr[.]],
CGLGraphicsConfig[dev=69678464,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 0/0/0/0, dp/st/ms: 16/0/0, dbl, mono , hw, GLProfile[GL2/GL2.hw], on-scr[.]],
requested GLCaps[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], on-scr[.]]]],
awtComponent com.eteks.sweethome3d.j3d.Component3DManager$1[canvas2,0,0,765x526],
surfaceLock <558f6df5, 3b7c1bb5>[count 1, qsz 0, owner <J3D-Renderer-1>]]]
at jogamp.opengl.macosx.cgl.MacOSXCGLContext$NSOpenGLImpl.contextRealized(MacOSXCGLContext.java:647)
at jogamp.opengl.macosx.cgl.MacOSXCGLContext.contextRealized(MacOSXCGLContext.java:333)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:536)
at javax.media.j3d.JoglPipeline.createNewContext(JoglPipeline.java:6198)
at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:4773)
at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:2407)
at javax.media.j3d.Renderer.doWork(Renderer.java:893)
at javax.media.j3d.J3dThread.run(J3dThread.java:270)
J3dI18N: Error looking up: Renderer7
Error in Java 3D : 3 Renderer7Nov 10 18:13:16 eTeks-iMac.local java[16200] <Error>: CGContextGetCTM: invalid context 0x0
Nov 10 18:13:16 eTeks-iMac.local java[16200] <Error>: CGContextSetBaseCTM: invalid context 0x0
Under Windows, it's the same error as the one I reported on Oct 23, 2012. If the error comes from the driver, couldn't JOGL or Java 3D be updated to avoid the crash? Note that it works with Java 3D 1.5.2.
Emmanuel Puybaret