Posted by
ac on
Feb 19, 2013; 8:09pm
URL: https://forum.jogamp.org/profile-querying-crashes-on-OS-X-10-6-and-GMA-950-tp4028290.html
Hello, I have this following code that used to work on OS X 10.6.8 and GMA 950 hardware (specifically, a 2007 Mac mini) with earlier releases of jogl (it certainly works with RC11, and I think it used to work with some autobuilds after R11):
http://pastebin.com/pbUUahx8The code itself is just a simple NEWT-based rendering skeleton that uses NewtCanvasAWT for integration with AWT's frame. Anyways, the error I get when trying to run this project is the following:
java.lang.NullPointerException
at jogamp.opengl.gl4.GL4bcImpl.glFlush(GL4bcImpl.java:5334)
at jogamp.opengl.macosx.cgl.MacOSXCGLContext$NSOpenGLImpl.release(MacOSXCGLContext.java:795)
at jogamp.opengl.macosx.cgl.MacOSXCGLContext.destroyContextARBImpl(MacOSXCGLContext.java:260)
at jogamp.opengl.GLContextImpl.createContextARBVersions(GLContextImpl.java:979)
at jogamp.opengl.GLContextImpl.createContextARBMapVersionsAvailable(GLContextImpl.java:916)
at jogamp.opengl.GLContextImpl.mapGLVersions(GLContextImpl.java:863)
at jogamp.opengl.GLContextImpl.createContextARB(GLContextImpl.java:766)
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:597)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:514)
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:768)
at javax.media.opengl.GLProfile.getDefault(GLProfile.java:555)
at javax.media.opengl.GLProfile.getDefault(GLProfile.java:566)
at p5.newt_eventtest.EventTest.run(EventTest.java:125)
at p5.newt_eventtest.EventTest.main(EventTest.java:171)
, basically when GLProfile.getDefault() is called. Running the same code on another machine with 10.6.8 but with a Geforce 320M yields no errors, so the problem seems to be related to the GMA950. In both cases, the latest official Apple update for Java is already applied (1.6.0_39), and using a recent jogl autobuild from a couple of days ago.
I know that the GMA950 is an aging, fairly limited hardware, but a minor, although still significant, fraction of users on Mac still hold on it, and used to work before, so I wonder if this is a solvable issue. Thanks!
Andres