Login  Register

Re: Thread blocking issue with AWT (but not NEWT) on OSX

Posted by ac on Nov 06, 2012; 10:47pm
URL: https://forum.jogamp.org/Thread-blocking-issue-with-AWT-but-not-NEWT-on-OSX-tp4026674p4026800.html

Right, the change that brought the deadlock when calling Frame's methods is precisely the first commit of the FBObject, GLFBODrawable integration:

http://jogamp.org/git/?p=jogl.git;a=commit;h=4dd44b985fe0541be3a3bcd9045d201ed3ca2cc5

If I use the commit immediately before:

http://jogamp.org/git/?p=jogl.git;a=commit;h=9036376b7806a5fc61590bf49404eb71830de92f

with my test code, I actually get the following crash originating in the native libs, regardless of whether I use frame.setTitle() or not:

2012-11-06 17:39:32.306 java[36537:12003] invalid drawable
2012-11-06 17:39:32.309 java[36537:12003] -[NSView CGLPBufferObj]: unrecognized selector sent to instance 0x7fc5f2c998c0
2012-11-06 17:39:32.309 java[36537:12003] An uncaught exception was raised
2012-11-06 17:39:32.309 java[36537:12003] -[NSView CGLPBufferObj]: unrecognized selector sent to instance 0x7fc5f2c998c0
2012-11-06 17:39:32.310 java[36537:12003] (
        0   CoreFoundation                      0x00007fff8ada90a6 __exceptionPreprocess + 198
        1   libobjc.A.dylib                     0x00007fff8d8013f0 objc_exception_throw + 43
        2   CoreFoundation                      0x00007fff8ae3f6ea -[NSObject(NSObject) doesNotRecognizeSelector:] + 186
        3   CoreFoundation                      0x00007fff8ad975ce ___forwarding___ + 414
        4   CoreFoundation                      0x00007fff8ad973b8 _CF_forwarding_prep_0 + 232
        5   AppKit                              0x00007fff92a945be -[NSOpenGLContext setPixelBuffer:cubeMapFace:mipMapLevel:currentVirtualScreen:] + 59
        6   libjogl_desktop.jnilib              0x0000000112fe78cb setContextPBuffer + 203
        7   libjogl_desktop.jnilib              0x000000011304b28b Java_jogamp_opengl_macosx_cgl_CGL_setContextPBuffer__JJ + 43
        8   ???                                 0x0000000105d50eee 0x0 + 4392816366
)
2012-11-06 17:39:32.310 java[36537:12003] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSView CGLPBufferObj]: unrecognized selector sent to instance 0x7fc5f2c998c0'
*** First throw call stack:
(
        0   CoreFoundation                      0x00007fff8ada90a6 __exceptionPreprocess + 198
        1   libobjc.A.dylib                     0x00007fff8d8013f0 objc_exception_throw + 43
        2   CoreFoundation                      0x00007fff8ae3f6ea -[NSObject(NSObject) doesNotRecognizeSelector:] + 186
        3   CoreFoundation                      0x00007fff8ad975ce ___forwarding___ + 414
        4   CoreFoundation                      0x00007fff8ad973b8 _CF_forwarding_prep_0 + 232
        5   AppKit                              0x00007fff92a945be -[NSOpenGLContext setPixelBuffer:cubeMapFace:mipMapLevel:currentVirtualScreen:] + 59
        6   libjogl_desktop.jnilib              0x0000000112fe78cb setContextPBuffer + 203
        7   libjogl_desktop.jnilib              0x000000011304b28b Java_jogamp_opengl_macosx_cgl_CGL_setContextPBuffer__JJ + 43
        8   ???                                 0x0000000105d50eee 0x0 + 4392816366
)
libc++abi.dylib: terminate called throwing an exception

Tested on OSX Mountain Lion 10.8.2 with a Radeon HD 6490M vcard.