Posted by
Manu on
Oct 03, 2012; 2:24pm
URL: https://forum.jogamp.org/Issue-with-Java-3D-under-OpenJDK-7-Mac-OS-X-tp4025259p4026338.html
Hi,
I just tested Sweet Home 3D under Java 6 then Java 7 with Java3D-1.6.0-pre3 and JOGL 2.0 rc10 for Mac OS X.
It still worked well with Java 6 but failed with Java 7 with the same error as the one I reported in June, i.e.
3D [dev] 1.6.0-pre3-daily-experimental daily
2012-10-03 16:09:51.204 java[9161:ad03] invalid drawable
2012-10-03 16:09:51.471 java[9161:ad03] invalid drawable
2012-10-03 16:09:51.609 java[9161:ad03] invalid drawable
Oct 3 16:09:57 .......... java[9161] <Error>: CGContextGetCTM: invalid context 0x0
Oct 3 16:09:57 .......... java[9161] <Error>: CGContextSetBaseCTM: invalid context 0x0
Oct 3 16:09:57 .......... java[9161] <Error>: CGContextGetCTM: invalid context 0x0
Oct 3 16:09:57 .......... java[9161] <Error>: CGContextSetBaseCTM: invalid context 0x0
javax.media.opengl.GLException: drawable has invalid handle: MacOSXOnscreenCGLDrawable[Realized true,
Factory jogamp.opengl.macosx.cgl.awt.MacOSXAWTCGLDrawableFactory@6b0c47e5,
handle 0x0,
Window JAWT-Window[windowHandle 0x7fefc8b7cd90, 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@778e7e6a, 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 <280f7e08, 111b53c4>[count 1, qsz 0, owner <J3D-Renderer-1>]]]
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:447)
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)
Error in Java 3D : 3 Renderer: Error creating Canvas3D graphics contextOct 3 16:10:02 .......... java[9161] <Error>: CGContextGetCTM: invalid context 0x0
Oct 3 16:10:02 .......... java[9161] <Error>: CGContextSetBaseCTM: invalid context 0x0
Did any body among you actually see Java 3D work under Java 7 / Mac OS X?
What can I do to help you fix this issue?
By the way, antialisaing still doesn't work under Mac OS X, as it didn't with Java 3D 1.5.2 already, as you can see in the screen capture I posted at the beginning of this thread.
Calling setSceneAntialiasing(GraphicsConfigTemplate3D.PREFERRED) or setSceneAntialiasing(GraphicsConfigTemplate3D.REQUIRED) on the GraphicsConfigTemplate3D instance used to generate a GraphicsConfiguration has no effect.
Could you check if there's an easy fix for that?
Emmanuel Puybaret