Login  Register

Re: Simple application doesn't run on a mac with java-7

Posted by borobudur on Nov 01, 2012; 8:27am
URL: https://forum.jogamp.org/Simple-application-doesn-t-run-on-a-mac-with-java-7-tp4026636p4026695.html

I finally found a jdk6 to test and I made it with the old libraries (mentioned above) but with the new libs I still get an error:

2012-11-01 09:10:39.742 java[450:1203] invalid drawable
2012-11-01 09:10:39.747 java[450:1203] -[NSView CGLPBufferObj]: unrecognized selector sent to instance 0x7fa9fb245a60
2012-11-01 09:10:39.747 java[450:1203] An uncaught exception was raised
2012-11-01 09:10:39.748 java[450:1203] -[NSView CGLPBufferObj]: unrecognized selector sent to instance 0x7fa9fb245a60
2012-11-01 09:10:39.748 java[450:1203] (
        0   CoreFoundation                      0x00007fff94ae50a6 __exceptionPreprocess + 198
        1   libobjc.A.dylib                     0x00007fff918523f0 objc_exception_throw + 43
        2   CoreFoundation                      0x00007fff94b7b6ea -[NSObject(NSObject) doesNotRecognizeSelector:] + 186
        3   CoreFoundation                      0x00007fff94ad35ce ___forwarding___ + 414
        4   CoreFoundation                      0x00007fff94ad33b8 _CF_forwarding_prep_0 + 232
        5   AppKit                              0x00007fff8e7385be -[NSOpenGLContext setPixelBuffer:cubeMapFace:mipMapLevel:currentVirtualScreen:] + 59
        6   libjogl_desktop.jnilib              0x000000011b8a98cb setContextPBuffer + 203
        7   libjogl_desktop.jnilib              0x000000011b90d28b Java_jogamp_opengl_macosx_cgl_CGL_setContextPBuffer__JJ + 43
        8   ???                                 0x000000010f9f5eee 0x0 + 4557070062
)
2012-11-01 09:10:39.751 java[450:1203] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSView CGLPBufferObj]: unrecognized selector sent to instance 0x7fa9fb245a60'
*** First throw call stack:
(
        0   CoreFoundation                      0x00007fff94ae50a6 __exceptionPreprocess + 198
        1   libobjc.A.dylib                     0x00007fff918523f0 objc_exception_throw + 43
        2   CoreFoundation                      0x00007fff94b7b6ea -[NSObject(NSObject) doesNotRecognizeSelector:] + 186
        3   CoreFoundation                      0x00007fff94ad35ce ___forwarding___ + 414
        4   CoreFoundation                      0x00007fff94ad33b8 _CF_forwarding_prep_0 + 232
        5   AppKit                              0x00007fff8e7385be -[NSOpenGLContext setPixelBuffer:cubeMapFace:mipMapLevel:currentVirtualScreen:] + 59
        6   libjogl_desktop.jnilib              0x000000011b8a98cb setContextPBuffer + 203
        7   libjogl_desktop.jnilib              0x000000011b90d28b Java_jogamp_opengl_macosx_cgl_CGL_setContextPBuffer__JJ + 43
        8   ???                                 0x000000010f9f5eee 0x0 + 4557070062
)
libc++abi.dylib: terminate called throwing an exception

Process finished with exit code 134


I'd like to mention again that I just tried with the libraries from jogl-all and gluegen-rt. This works under linux and windows. On mac I'm trying the same:

 group: 'org.jogamp.jogl', name: 'jogl-all', version: '2.0-rc10'
 group: 'org.jogamp.jogl', name: 'jogl-all', version: '2.0-rc10', classifier: 'natives-macosx-universal'

 group: 'org.jogamp.gluegen', name: 'gluegen-rt', version: '2.0-rc10'
 group: 'org.jogamp.gluegen', name: 'gluegen-rt', version: '2.0-rc10', classifier: 'natives-macosx-universal'


@gouessej: the demo (scary stuff) worked under linux (asking me for root passwd, very scary); under this mac I can't start it because I don't get over the certificate thing; the example I still will try it…

@Pixelapp: jdk7 is supported by oracle for mac