Login  Register

Has anyone got JOGL 2 running on Ubuntu 10.04.1

Posted by snmvaughan on Jun 07, 2011; 5:47pm
URL: https://forum.jogamp.org/Has-anyone-got-JOGL-2-running-on-Ubuntu-10-04-1-tp3035618.html

I'm unable to call GLProfile.initSingleton(false) without getting a fatal error.  I've stripped the code down to just a few lines:

import javax.media.opengl.*;

public class Test {

    public static void main(String[] args) {
        try {
            System.err.println (":) Before GLProfile.initSingleton()");
            GLProfile.initSingleton(false);
            System.err.println (":) After GLProfile.initSingleton()");
        }
        catch (Throwable t) {
            t.printStackTrace();
        }
    }

}

I'm calling this using the following command-line:

 java -classpath ./gluegen-rt.jar:./nativewindow.all.jar:jogl.all.jar:. - java.library.path=. -Djava.awt.headless=true Test

The following is the output from attempting to run the test code.

:) Before GLProfile.initSingleton()
Info: XInitThreads() called for concurrent Thread support
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f13fb82f220, pid=32555, tid=139723919267584
#
# JRE version: 6.0_20-b20
# Java VM: OpenJDK 64-Bit Server VM (19.0-b09 mixed mode linux-amd64 compressed                                                                                             oops)
# Derivative: IcedTea6 1.9.7
# Distribution: Ubuntu 10.04.1 LTS, package 6b20-1.9.7-0ubuntu1~10.04.1
# Problematic frame:
# C  [libX11.so.6+0x30220]  XDisplayString+0x0

Does anyone have any ideas?