Posted by
runiter on
Jan 31, 2013; 8:43pm
URL: https://forum.jogamp.org/DefaultGraphicsConfiguration-cast-exception-tp4028060p4028090.html
Yes, I can reproduce it with JoglAwtExample.
Mac OS X version is 10.6.8
Here is the exception of that JoglAwtExample generates:
java.lang.NullPointerException
at jogamp.opengl.gl4.GL4bcImpl.glFlush(GL4bcImpl.java:5334)
at jogamp.opengl.macosx.cgl.MacOSXCGLContext$NSOpenGLImpl.release(MacOSXCGLContext.java:776)
at jogamp.opengl.macosx.cgl.MacOSXCGLContext.destroyContextARBImpl(MacOSXCGLContext.java:260)
at jogamp.opengl.GLContextImpl.createContextARBVersions(GLContextImpl.java:974)
at jogamp.opengl.GLContextImpl.createContextARBMapVersionsAvailable(GLContextImpl.java:911)
at jogamp.opengl.GLContextImpl.mapGLVersions(GLContextImpl.java:858)
at jogamp.opengl.GLContextImpl.createContextARB(GLContextImpl.java:761)
at jogamp.opengl.macosx.cgl.MacOSXCGLContext.createImpl(MacOSXCGLContext.java:299)
at jogamp.opengl.macosx.cgl.MacOSXOnscreenCGLContext.createImpl(MacOSXOnscreenCGLContext.java:80)
at jogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:592)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:509)
at jogamp.opengl.macosx.cgl.MacOSXCGLDrawableFactory.getOrCreateOSXSharedResource(MacOSXCGLDrawableFactory.java:241)
at jogamp.opengl.macosx.cgl.MacOSXCGLDrawableFactory.createSharedResource(MacOSXCGLDrawableFactory.java:289)
at javax.media.opengl.GLProfile.initProfilesForDeviceCritical(GLProfile.java:1560)
at javax.media.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1521)
at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1490)
at javax.media.opengl.GLProfile.access$100(GLProfile.java:76)
at javax.media.opengl.GLProfile$1.run(GLProfile.java:157)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:123)
at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:1857)
at javax.media.opengl.GLProfile.get(GLProfile.java:801)
at javax.media.opengl.GLProfile.get(GLProfile.java:830)
at javax.media.opengl.GLProfile.getMaxFixedFunc(GLProfile.java:636)
at com.ardor3d.framework.jogl.CapsUtil.getCapsForSettings(CapsUtil.java:34)
at com.ardor3d.framework.jogl.JoglAwtCanvas.<init>(JoglAwtCanvas.java:42)
at com.ardor3d.example.canvas.JoglAwtExample.addCanvas(JoglAwtExample.java:153)
at com.ardor3d.example.canvas.JoglAwtExample.main(JoglAwtExample.java:105)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1919)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1852)
at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1614)
at com.sun.javaws.Launcher.run(Launcher.java:139)
at java.lang.Thread.run(Thread.java:680)
Edit: full log is attached.
log.rtf