Has anyone got JOGL 2 running on Ubuntu 10.04.1

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

Has anyone got JOGL 2 running on Ubuntu 10.04.1

snmvaughan
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?
Reply | Threaded
Open this post in threaded view
|

Re: Has anyone got JOGL 2 running on Ubuntu 10.04.1

Wade Walker
Administrator
Does it give you any more of a stack trace, or just the libX11.so pointer that you posted? It's possible that JOGL could be at fault here, but it also might be a driver problem. You could try breakpointing your Java program, then attaching gdb to the process, then letting Java proceed, and then having gdb catch the SIGSEGV. This could give you a better stack trace and help debug the problem.

Before doing that though, I'd make sure that some other OpenGL programs run OK on your system, just to rule out driver or configuration problems (and make sure your drivers are up to date too)
Reply | Threaded
Open this post in threaded view
|

Re: Has anyone got JOGL 2 running on Ubuntu 10.04.1

Rami Santina
Administrator
Regarding the title yes it works on ubuntu 10.x ...
regarding the error check the thread "NEWT Window disappear instantly
at initialization"
looks like the same problem.
Reply | Threaded
Open this post in threaded view
|

Re: Has anyone got JOGL 2 running on Ubuntu 10.04.1

gouessej
Administrator
In reply to this post by snmvaughan
Does it have something to do with headless mode? I have used JOGL 2.0 on Cent OS 5.3, Mandriva Linux 2010 and some other distros, with Oracle JVM and OpenJDK, on 32 & 64 bits architecture, it works but I did not try the headless mode.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Has anyone got JOGL 2 running on Ubuntu 10.04.1

snmvaughan
My intention was to use this server for running automated unit tests (thus headless).

It looks like this is complicated by the fact that it is actually a VM instead of a simple server.  I'm looking into the server configuration further, but I'm still surprised by the fault itself.  I would expect that JOGL would work with the server's current configuration, or report that no OpenGL profiles were available.
Reply | Threaded
Open this post in threaded view
|

Re: Has anyone got JOGL 2 running on Ubuntu 10.04.1

gouessej
Administrator
Maybe we could detect whether the headless mode is on.
Julien Gouesse | Personal blog | Website