Login  Register

Re: Crash on OSX Lion upon launching (JOGL 2.0 RC4)

Posted by Sven Gothel on Dec 16, 2011; 12:01pm
URL: https://forum.jogamp.org/Crash-on-OSX-Lion-upon-launching-JOGL-2-0-RC4-tp3588298p3591425.html

On Thursday, December 15, 2011 12:36:03 PM andrade [via jogamp] wrote:

>
> Hi,
>
> As I've said in another post, I'm testing JOGL 2.0 RC4 in some platforms and
> it's crashing on OSX Lion (10.7.2 with a 64-bit VM).
>
> I've tried to launch the demos demos.gears.Gears (GLCanvas) and
> demos.jgears.JGears (GLJPanel) and both crashes before creating the window.
>
> I get the following message from Gears (GLCanvas):
>
> 2011-12-15 10:51:36.861 java[5081:c07] invalid pixel format
> 2011-12-15 10:51:36.862 java[5081:c07] invalid context
> Invalid memory access of location 0x0 rip=0x7fff8b6b6390
> Segmentation fault: 11
>
> And this one from JGears (GLJPanel):
> Invalid memory access of location 0x0 rip=0x7fff8b6b6118
> Segmentation fault: 11
>
> Someone knows how to avoid this problem ?

This is interesting, since all tests pass:

https://jogamp.org/chuck/job/jogl/584/label=macosx-10_6-x86_64-nvidia/testReport/?

Sure, we have some glitches with shared context on OS X,
ie. they sometimes fails if an onscreen context is being used as the shared-with context.
But GLCanvas (or GLJPanel) SIGSEGV exceptions are currently not available on my test system.

Can you create a simple unit test which causes this SIGSEGV,
or does an existing GLCanvas unit test cause it, maybe one of these:
  https://jogamp.org/chuck/job/jogl/584/label=macosx-10_6-x86_64-nvidia/testReport/com.jogamp.opengl.test.junit.jogl.demos.gl2.awt/
?

Can you send the spec of your GPU ?
Maybe you can run the etc/test.sh and etc/test_dbg.sh and send the log files ?
[Pls use the http://jogamp.org/deployment/archive/master/gluegen_457-joal_251-jogl_584-jocl_499/archive/ ]

~Sven

> Thanks in advance,
> Rodrigo
> Ps: See below some details from the Crash Reporter:
>
> ****
> java version "1.6.0_29"
> Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527)
> Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
>
> ****
>
> Crash Report from Gears (GLCanvas):
>
> (…)
> Java information:
>  Exception type: Bus Error (0xa) at pc=7fff8b6b6390
>  
>  Java VM: Java HotSpot(TM) 64-Bit Server VM (20.4-b02-402 mixed mode
> macosx-amd64)
> (…)
>
> Thread 1 Crashed:
> 0   libobjc.A.dylib               0x00007fff8b6b6390 objc_msgSend_vtable14
> + 16
> 1   libjogl_desktop.jnilib         0x00000001172c18c9 deletePixelFormat +
> 121
> 2   libjogl_desktop.jnilib         0x0000000117321c10
> Java_jogamp_opengl_macosx_cgl_CGL_deletePixelFormat__J + 32
> 3   ???                           0x000000010bd8bd6e 0 + 4493720942
> 4   ???                           0x000000010bd8085a 0 + 4493674586
> 5   ???                           0x000000010bd80e03 0 + 4493676035
> 6   ???                           0x000000010bd80929 0 + 4493674793
> 7   ???                           0x000000010bd80929 0 + 4493674793
> 8   ???                           0x000000010bd8085a 0 + 4493674586
> 9   ???                           0x000000010bd8085a 0 + 4493674586
> 10  ???                           0x000000010bd80929 0 + 4493674793
> 11  ???                           0x000000010bd80a82 0 + 4493675138
> 12  ???                           0x000000010bd80a82 0 + 4493675138
> 13  ???                           0x000000010bd8096e 0 + 4493674862
> 14  ???                           0x000000010bd8096e 0 + 4493674862
> 15  ???                           0x000000010bd809b3 0 + 4493674931
> 16  ???                           0x000000010bd80a82 0 + 4493675138
> 17  ???                           0x000000010bd80a82 0 + 4493675138
> 18  ???                           0x000000010bd80a82 0 + 4493675138
> 19  ???                           0x000000010bd8085a 0 + 4493674586
> 20  ???                           0x000000010bd8085a 0 + 4493674586
> 21  ???                           0x000000010bd7b438 0 + 4493653048
> 22  libclient64.dylib             0x000000010b47177a 0x10b3c6000 + 702330
> 23  libclient64.dylib             0x000000010b47153e 0x10b3c6000 + 701758
> 24  libclient64.dylib             0x000000010b47ca15 JVM_DoPrivileged + 560
> 25  libjvmlinkage.dylib           0x000000010bac711d JVM_DoPrivileged + 93
> 26  ???                           0x000000010bd8bd6e 0 + 4493720942
> 27  ???                           0x000000010bd809b3 0 + 4493674931
> 28  ???                           0x000000010bd8085a 0 + 4493674586
> 29  ???                           0x000000010bd7b438 0 + 4493653048
> 30  libclient64.dylib             0x000000010b47177a 0x10b3c6000 + 702330
> 31  libclient64.dylib             0x000000010b47153e 0x10b3c6000 + 701758
> 32  libclient64.dylib             0x000000010b471509 0x10b3c6000 + 701705
> 33  libclient64.dylib             0x000000010b471174 0x10b3c6000 + 700788
> 34  libclient64.dylib             0x000000010b470b7b 0x10b3c6000 + 699259
> 35  libclient64.dylib             0x000000010b4818ad 0x10b3c6000 + 768173
> 36  libclient64.dylib             0x000000010b481797 0x10b3c6000 + 767895
> 37  java                           0x000000010b33378a 0x10b331000 + 10122
> 38  java                           0x000000010b333b28 0x10b331000 + 11048
> 39  java                           0x000000010b334240 0x10b331000 + 12864
> 40  libsystem_c.dylib             0x00007fff93a3c8bf _pthread_start + 335
> 41  libsystem_c.dylib             0x00007fff93a3fb75 thread_start + 13
>
>
>
> And part of the Crash Report from JGears (GLJPanel):
>
> Thread 1 Crashed:
> 0   libobjc.A.dylib               0x00007fff8b6b6110 objc_msgSend_vtable4 +
> 16
> 1   com.apple.AppKit               0x00007fff89eb82ec -[NSOpenGLContext
> initWithFormat:shareContext:] + 186
> 2   libjogl_desktop.jnilib         0x0000000118673d7e createContext + 590
> 3   libjogl_desktop.jnilib         0x00000001186d3828
> Java_jogamp_opengl_macosx_cgl_CGL_createContext1__JJZJZLjava_lang_Object_2IZ
> + 248
> 4   ???                           0x000000010d1c8d6e 0 + 4514942318
> 5   ???                           0x000000010d1bd929 0 + 4514896169
> 6   ???                           0x000000010d1bd929 0 + 4514896169
> 7   ???                           0x000000010d1bde03 0 + 4514897411
> 8   ???                           0x000000010d1bd929 0 + 4514896169
> 9   ???                           0x000000010d1bd929 0 + 4514896169
> 10  ???                           0x000000010d1bd85a 0 + 4514895962
> 11  ???                           0x000000010d1bd85a 0 + 4514895962
> 12  ???                           0x000000010d1bd929 0 + 4514896169
> 13  ???                           0x000000010d1bda82 0 + 4514896514
> 14  ???                           0x000000010d1bda82 0 + 4514896514
> 15  ???                           0x000000010d1bd96e 0 + 4514896238
> 16  ???                           0x000000010d1bd96e 0 + 4514896238
> 17  ???                           0x000000010d1bd9b3 0 + 4514896307
> 18  ???                           0x000000010d1bda82 0 + 4514896514
> 19  ???                           0x000000010d1bda82 0 + 4514896514
> 20  ???                           0x000000010d1bda82 0 + 4514896514
> 21  ???                           0x000000010d1bd85a 0 + 4514895962
> 22  ???                           0x000000010d1bd85a 0 + 4514895962
> 23  ???                           0x000000010d1b8438 0 + 4514874424
> 24  libclient64.dylib             0x000000010c8b077a 0x10c805000 + 702330
> 25  libclient64.dylib             0x000000010c8b053e 0x10c805000 + 701758
> 26  libclient64.dylib             0x000000010c8bba15 JVM_DoPrivileged + 560
> 27  libjvmlinkage.dylib           0x000000010cf0611d JVM_DoPrivileged + 93
> 28  ???                           0x000000010d1c8d6e 0 + 4514942318
> 29  ???                           0x000000010d1bd9b3 0 + 4514896307
> 30  ???                           0x000000010d1bd85a 0 + 4514895962
> 31  ???                           0x000000010d1bd85a 0 + 4514895962
> 32  ???                           0x000000010d1bd9b3 0 + 4514896307
> 33  ???                           0x000000010d1bd9b3 0 + 4514896307
> 34  ???                           0x000000010d1bd9b3 0 + 4514896307
> 35  ???                           0x000000010d1b8438 0 + 4514874424
> 36  libclient64.dylib             0x000000010c8b077a 0x10c805000 + 702330
> 37  libclient64.dylib             0x000000010c8b053e 0x10c805000 + 701758
> 38  libclient64.dylib             0x000000010c8b0509 0x10c805000 + 701705
> 39  libclient64.dylib             0x000000010c8b0174 0x10c805000 + 700788
> 40  libclient64.dylib             0x000000010c8afb7b 0x10c805000 + 699259
> 41  libclient64.dylib             0x000000010c8c08ad 0x10c805000 + 768173
> 42  libclient64.dylib             0x000000010c8c0797 0x10c805000 + 767895
> 43  java                           0x000000010c77078a 0x10c76e000 + 10122
> 44  java                           0x000000010c770b28 0x10c76e000 + 11048
> 45  java                           0x000000010c771240 0x10c76e000 + 12864
> 46  libsystem_c.dylib             0x00007fff93a3c8bf _pthread_start + 335
> 47  libsystem_c.dylib             0x00007fff93a3fb75 thread_start + 13
>