Hello!
I have Fedora, linux 2.6.7, and JOGL 1.1b06 crashes with both Java 1.4.2 and Java 1.5. The only demo that works is Gears, the InfiniteShadowVolumes crashes, and the NeHe lesson 27 I tried crashes too - I did not try other NeHe lessons, but the lesson 27 worked with some older version of JOGL.
Initially no demo wanted to run, and the message was
java.lang.UnsatisfiedLinkError: no jogl in java.library.path
even that I did everything written in the JOGL install instructions. So I unzipped natives-linux and copied the *.so files to j2sdk/jre/lib/i386 what made Gears work and everything other I tried crash.
UPDATE: adding obj to LD_LIBRARY_PATH insead of PATH caused that there was no need to copy the *.so files from natives-linux - I removed the files from j2sdk/jre/lib/i386 - but still only Gears worked, and the rest of demos I tried crashed. I have also tried to run the Gears and InfiniteShadowVolumes demos from the jogl demos page using Java Webstart, and still only Gears demo worked.
I mean the instruction at https://jogl.dev.java.net/nonav/source/browse/checkout/jogl/doc/HowToBuild.html?rev=HEAD&content-type=text/html
Here is the Gears output - that demo works:
$ java demos.gears.Gears
CANVAS GL IS: net.java.games.jogl.impl.x11.X11GLImpl
CANVAS GLU IS: net.java.games.jogl.impl.GLUImpl
INIT GL IS: net.java.games.jogl.impl.x11.X11GLImpl
GL_VENDOR: Tungsten Graphics, Inc.
GL_RENDERER: Mesa DRI R200 20030328 AGP 4x x86/MMX+/3DNow!+/SSE TCL
GL_VERSION: 1.3 Mesa 5.0.2
glLoadTransposeMatrixfARB() supported: true
Here is the output for InfiniteShadowVolumes - this demo fails:
java 1.4.2:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0xEF1
Function=[Unknown.]
Library=(N/A)
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at net.java.games.jogl.impl.GLUImpl.dispatch_gluNewQuadric(Native Method)
at net.java.games.jogl.impl.GLUImpl.gluNewQuadric(GLUImpl.java:891)
at net.java.games.jogl.util.GLUT.quadObjInit(GLUT.java:370)
at net.java.games.jogl.util.GLUT.glutSolidSphere(GLUT.java:119)
at demos.infiniteShadowVolumes.InfiniteShadowVolumes$Listener.drawLight(InfiniteShadowVolumes.java:11
at demos.infiniteShadowVolumes.InfiniteShadowVolumes$Listener.display(InfiniteShadowVolumes.java:523)
at net.java.games.jogl.impl.GLDrawableHelper.display(GLDrawableHelper.java:74)
at net.java.games.jogl.GLCanvas$DisplayAction.run(GLCanvas.java:221)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:290)
- locked <0x599a5208> (a net.java.games.jogl.impl.x11.X11OnscreenGLContext)
at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:208)
at net.java.games.jogl.GLCanvas.display(GLCanvas.java:75)
at net.java.games.jogl.Animator$1.run(Animator.java:107)
at java.lang.Thread.run(Thread.java:534)
Dynamic libraries:
00101000-00115000 r-xp 00000000 03:01 1012849 /usr/X11R6/lib/libICE.so.6.3
67623000-67625000 rw-p 0001b000 03:01 1100065 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
678aa000-6b8aa000 rw-s e8000000 03:01 3230143 /dev/dri/card0
6b8aa000-6b8ac000 rw-s 2283c000 03:01 3230143 /dev/dri/card0
6b8ac000-6b92c000 r–s d6800000 03:01 3230143 /dev/dri/card0
6b92c000-6b92d000 r–s f0101000 03:01 3230143 /dev/dri/card0
6b92d000-6bb2d000 rw-s f0102000 03:01 3230143 /dev/dri/card0
6bb2d000-6c00d000 rw-s f0302000 03:01 3230143 /dev/dri/card0
Heap at VM Abort:
Heap
def new generation total 1856K, used 526K [0x59450000, 0x59650000, 0x59930000)
eden space 1664K, 20% used [0x59450000, 0x594a3b38, 0x595f0000)
from space 192K, 99% used [0x595f0000, 0x5961fff0, 0x59620000)
to space 192K, 0% used [0x59620000, 0x59620000, 0x59650000)
tenured generation total 23836K, used 21307K [0x59930000, 0x5b077000, 0x5d450000)
the space 23836K, 89% used [0x59930000, 0x5adfed18, 0x5adfee00, 0x5b077000)
compacting perm gen total 4864K, used 4625K [0x5d450000, 0x5d910000, 0x61450000)
the space 4864K, 95% used [0x5d450000, 0x5d8d4450, 0x5d8d4600, 0x5d910000)
Local Time = Tue Nov 9 13:12:19 2004
Elapsed Time = 2
The exception above was detected in native code outside the VM
Java VM: Java HotSpot™ Client VM (Blackdown-1.4.2-rc1 mixed mode)
An error report file has been saved as hs_err_pid6849.log.
Please refer to the file for further information.
Aborted
java 1.5:
$ java demos.infiniteShadowVolumes.InfiniteShadowVolumes
An unexpected error has been detected by HotSpot Virtual Machine:
SIGSEGV (0xb) at pc=0x00000ef1, pid=6823, tid=1625684912
Java VM: Java HotSpot™ Client VM (1.5.0-beta2-b51 mixed mode, sharing)
Problematic frame:
C 0x00000ef1
An error report file with more information is saved as hs_err_pid6823.log
If you would like to submit a bug report, please visit:
http://java.sun.com/webapps/bugreport/crash.jsp
Aborted
Any ideas what might be wrong?
Thanks,
Artur