Login  Register

Re: NEWT previously working on OS X, now fail :(

Posted by Christian Catchpole on Sep 06, 2010; 12:27am
URL: https://forum.jogamp.org/NEWT-previously-working-on-OS-X-now-fail-tp1419456p1423718.html

Yeah, thats the weird thing.  My last code revision was working fine.  The only thing that has changed is time.  So I'm thinking it's something specific to my system.  A software update or some such.  I try not to post with "hey it's broken" questions as its usually something I can debug myself.  But this one is weird.  Especially since I'm getting the same results with the older version of JOGL (not sure which one, but it's the old package structure).  So i forked my project and updated to the current version of JOGL.  Same result.  I guess I'll work through some NEWT examples and see if they fail in the same way.

I'v been using -XstartOnFirstThread of course.

I'v boiled it down to breaking on window.setVisable(true) with NSInternalInconsistencyException

        this.display = NewtFactory.createDisplay(null);
        GLCapabilities capabilities = new GLCapabilities(GLProfile.get(GLProfile.GL2));
        this.screen = NewtFactory.createScreen(display, 0);
        this.window = NewtFactory.createWindow(screen, capabilities, false);
        this.window.setVisible(true);

Debugger results - the screen and windows have no handles....

capabilities = {javax.media.opengl.GLCapabilities@1011}"GLCapabilities[Capabilities[Onscreen: true, Red: 8, Green: 8, Blue: 8, Alpha: 0, Opaque: true], GL profile: GLProfile[GL2/GL2], PBuffer: false, DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 24, StencilBits: 0, Red Accum: 0, G...
this.screen = {com.jogamp.newt.impl.macosx.MacScreen@1394}

aScreen = {javax.media.nativewindow.DefaultGraphicsScreen@1492}"class javax.media.nativewindow.DefaultGraphicsScreen[class javax.media.nativewindow.macosx.MacOSXGraphicsDevice[type MacOSX, handle 0x0], idx 0]"

aScreen.handle = 0
display.aDevice.handle = 0

this.window = {com.jogamp.newt.impl.macosx.MacWindow@1464}

On window....

windowHandle = 0
surfaceHandle = 0
parentWindowHandle = 0