Crash on OSX Lion upon launching (JOGL 2.0 RC4)

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Crash on OSX Lion upon launching (JOGL 2.0 RC4)

andrade
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 ?
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
--
Rodrigo Andrade de Almeida
Reply | Threaded
Open this post in threaded view
|

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

Sven Gothel
Administrator
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
>
Reply | Threaded
Open this post in threaded view
|

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

andrade
Sven Gothel wrote

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/
?

Yes, I tried the above 4 tests and it crashed as described before (see output below).
Ps: I'm attaching the test.log and the test_dbg.log files from the computer that produced the crash.test.logtest_dbg.log

lri26-12:jogl-2.0-b584-20111213-macosx-universal rodrigo$ java -Djava.library.path=lib/ com.jogamp.opengl.test.junit.jogl.demos.gl2.awt.TestGearsAWT
JUnit version 4.8.2
Thread-1 - SingletonInstanceServerSocket: localhost/127.0.0.1:59999 - started
SLOCK 1324399092351 +++ localhost/127.0.0.1:59999 - Locked
2011-12-20 17:38:13.021 java[16541:b0b] invalid pixel format
2011-12-20 17:38:13.022 java[16541:b0b] invalid context
Invalid memory access of location 0x0 rip=0x7fff8b6b6390
Segmentation fault: 11

lri26-12:jogl-2.0-b584-20111213-macosx-universal rodrigo$ java -Djava.library.path=lib/ com.jogamp.opengl.test.junit.jogl.demos.gl2.awt.TestGearsAWTAnalyzeBug455
altSwap true
JUnit version 4.8.2
Thread-1 - SingletonInstanceServerSocket: localhost/127.0.0.1:59999 - started
SLOCK 1324399106310 +++ localhost/127.0.0.1:59999 - Locked
Invalid memory access of location 0x7a0020018 rip=0x7fff8b6b6110
Segmentation fault: 11

lri26-12:jogl-2.0-b584-20111213-macosx-universal rodrigo$ java -Djava.library.path=lib/ com.jogamp.opengl.test.junit.jogl.demos.gl2.awt.TestGearsGLJPanelAWT
JUnit version 4.8.2
Thread-1 - SingletonInstanceServerSocket: localhost/127.0.0.1:59999 - started
SLOCK 1324399115440 +++ localhost/127.0.0.1:59999 - Locked
Invalid memory access of location 0x20 rip=0x7fff8b6b6118
Segmentation fault: 11

lri26-12:jogl-2.0-b584-20111213-macosx-universal rodrigo$ java -Djava.library.path=lib/ com.jogamp.opengl.test.junit.jogl.demos.gl2.awt.TestGearsGLJPanelAWTBug450
JUnit version 4.8.2
Thread-1 - SingletonInstanceServerSocket: localhost/127.0.0.1:59999 - started
SLOCK 1324399127946 +++ localhost/127.0.0.1:59999 - Locked
Invalid memory access of location 0x1b rip=0x7fff8b6b6110
Segmentation fault: 11
--
Rodrigo Andrade de Almeida
Reply | Threaded
Open this post in threaded view
|

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

Sven Gothel
Administrator
On Tuesday, December 20, 2011 05:45:00 PM andrade [via jogamp] wrote:

>
> Sven Gothel wrote
> >
> >
> >
> > 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/
> > ?
> >
> >
>
>
> Yes, I tried the above 4 tests and it crashed as described before (see
> output below).
> Ps: I'm attaching the test.log and the test_dbg.log files from the computer
> that produced the crash. http://forum.jogamp.org/file/n3601694/test.log
> test.log  http://forum.jogamp.org/file/n3601694/test_dbg.log test_dbg.log

Awesome, thank you.

Since I have changed quite a few things since:
  Implementation Version: 2.0-b584-20111213
  Implementation Branch: master
  Implementation Commit: 4beeb724b942637300044f909f5f00fdbdf42c65

Would you please be so kind a produce both files w/ the latest RC5 as well ?

Another note .. the test_dbg.log is cut off and ends with:
+++
GLDrawableFactory.static - Native OS Factory for: MacOSX: jogamp.opengl.macosx.cgl.awt.MacOSXAWTCGLDrawableFactory
main - DynamicLibraryBundle.init start with: jogamp.opengl.macosx.cgl.MacOSXCGLDynamicLibraryBundleInfo
java.lang.Exception: Stack trace
        at java.lang.Thread.dumpStack(Thread.java:1273)
        at com.jogamp.common.os.DynamicLibraryBundle.<init>(DynamicLibraryBundle.java
+++

Would be great if you can send the full version (with RC5).
If this is not possible via the forum, please use my personal email.

Another idea .. can you also attach the hs_*.log file (in the directory where you run it from) ?
I assume it must have been created .. hopefully.

Thank you very much!

~Sven