Login  Register

NEWT previously working on OS X, now fail :(

Posted by Christian Catchpole on Sep 05, 2010; 1:49am
URL: https://forum.jogamp.org/NEWT-previously-working-on-OS-X-now-fail-tp1419456.html

I'v returned to my OS X code after an absence to find its "stopped working".  Iv upgraded to the latest version of JOGL - a good idea anyway, but I'm getting the same error.  I'v tried to eliminate environmental issues before posting.  I think something weird with OS X is going on as it was working fine several months ago.

My NEWT setup code is pretty standard (it was based on an example).

http://code.google.com/p/kumi/source/browse/trunk/src/java/net/catchpole/view/scene/Scene.java

The key here is i'm getting a detected screen size of 0x0....

User screen size 0x0
Detected screen size 0x0
Sun Sep  5 11:40:16 Catchpole.local java[808] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
2010-09-05 11:40:16.604 java[808:1303] An uncaught exception was raised
2010-09-05 11:40:16.605 java[808:1303] Error (1002) creating CGSWindow
2010-09-05 11:40:16.606 java[808:1303] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error (1002) creating CGSWindow'
*** Call stack at first throw:
(
        0   CoreFoundation                      0x00007fff884d4cc4 __exceptionPreprocess + 180
        1   libobjc.A.dylib                     0x00007fff85cf10f3 objc_exception_throw + 45
        2   CoreFoundation                      0x00007fff884d4ae7 +[NSException raise:format:arguments:] + 103
        3   CoreFoundation                      0x00007fff884d4a74 +[NSException raise:format:] + 148
        4   AppKit                              0x00007fff871b933a _NSCreateWindowWithOpaqueShape2 + 473
        5   AppKit                              0x00007fff8714d8d1 -[NSWindow _commonAwake] + 1214
        6   AppKit                              0x00007fff8716b5b9 -[NSWindow _makeKeyRegardlessOfVisibility] + 96
        7   AppKit                              0x00007fff8716b52e -[NSWindow makeKeyAndOrderFront:] + 24
        8   libnewt.jnilib                      0x0000000119e95f5c Java_com_sun_javafx_newt_macosx_MacWindow_makeKeyAndOrderFront + 110
        9   ???                                 0x0000000102011c48 0x0 + 4328594504
        10  ???                                 0x000000010200681a 0x0 + 4328548378
)
terminate called after throwing an instance of 'NSException'