Hello All,
I am running SuSE 9.1 Pro , I have a TNT2 card , I am using NVidia driver 6106 (NVIDIA-Linux-x86-1.0-6106-pkg1.run).This is all about JOGL 1.1b3.JOGL generally operates right , but any jogl app I have run exits with SIGSEGV (including the gears demo shipped with the beta , and the code bellow).Everything is right , until the app exits.Upon exit I get:
An unexpected error has been detected by HotSpot Virtual Machine:
SIGSEGV (0xb) at pc=0x468439d2, pid=8318, tid=1167641520
Java VM: Java HotSpot™ Client VM (1.5.0-beta2-b51 mixed mode, sharing)
Problematic frame:
C [libGLcore.so.1+0x2e69d2] _nv000832gl+0x12
An error report file with more information is saved as hs_err_pid8318.log
If you would like to submit a bug report, please visit:
http://java.sun.com/webapps/bugreport/crash.jsp
Aborted
This has been tested with both java 1.4.2_05 and 1.5b2.This all started after the driver update , however all native OGL apps run fine (glxgears included),so it may not be driver only.For concreteness I am attaching a sample that crashes.It creates a window,GLCanvas, and when you press ‘q’ to quit System.exit(0) is called and BOOM!
Sample code:
import net.java.games.jogl.*;
import java.awt.;
import java.awt.event.;
public class JCrash {
public static void main(String[] args) {
Frame frame = new Frame(“JCrash”);
GLDrawableFactory factory = GLDrawableFactory.getFactory();
GLCapabilities cap = new GLCapabilities();
GLCanvas canvas = factory.createGLCanvas(cap);
canvas.addKeyListener(new KeyListener(){
public void keyPressed(KeyEvent e) {
if (e.getKeyChar() == ‘q’) {
System.out.println(“Calling System.exit(0)”);
System.exit(0);
}
}
public void keyReleased(KeyEvent e) { }
public void keyTyped(KeyEvent e) { }
});
frame.add(canvas);
frame.pack();
frame.setVisible(true);
}
}
Output:
Calling System.exit(0)
An unexpected error has been detected by HotSpot Virtual Machine:
SIGSEGV (0xb) at pc=0x468439d2, pid=8380, tid=1167641520
Java VM: Java HotSpot™ Client VM (1.5.0-beta2-b51 mixed mode, sharing)
Problematic frame:
C [libGLcore.so.1+0x2e69d2] _nv000832gl+0x12
An error report file with more information is saved as hs_err_pid8380.log
If you would like to submit a bug report, please visit:
http://java.sun.com/webapps/bugreport/crash.jsp
Aborted
Any suggestions or comments are wellcome.
Ivan Yosifov.