Problems on Linux

I’m having some problems running the binary version of JOGL on my machine (Kernel 2.4.21, nVidia drivers, XFree 4.3.0, JDK 1.4.1_05):

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4DC98CD7
Function=XVisualIDFromVisual+0x7
Library=/usr/X11R6/lib/libX11.so.6

Current Java thread:
at net.java.games.jogl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo0(Native Method)
at net.java.games.jogl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo(JAWT_DrawingSurface.java:42)
at net.java.games.jogl.impl.x11.X11OnscreenGLContext.lockSurface(X11OnscreenGLContext.java:167)
at net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(X11OnscreenGLContext.java:108)
- locked <0x4429b250> (a net.java.games.jogl.impl.x11.X11OnscreenGLContext)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:162)
- locked <0x4429b250> (a net.java.games.jogl.impl.x11.X11OnscreenGLContext)
at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:105)
at java.awt.Component.setBounds(Component.java:1665)
at java.awt.BorderLayout.layoutContainer(BorderLayout.java:683)
- locked <0x4470c3a0> (a java.awt.Component$AWTTreeLock)
at java.awt.Container.layout(Container.java:1017)
at java.awt.Container.doLayout(Container.java:1007)
at java.awt.Container.validateTree(Container.java:1089)
at java.awt.Container.validate(Container.java:1064)
- locked <0x4470c3a0> (a java.awt.Component$AWTTreeLock)
at java.awt.Window.show(Window.java:455)
at Test.main(Test.java:21)

If anyone of you has a clue about what part of my system might cause the error, please let me know. I’m close to setting up my whole system from scratch, as no single OpenGL binding seems to work for me, but admittedly I would better like to just replace this one crappy component, if I can spot it.

Jogl isn’t rock solid on linux :o

Trying to run the gears demo (webstart) gives the following output:


Loggar till filen: /home/anders/logg.txt
CANVAS GL IS: net.java.games.jogl.impl.x11.X11GLImpl
CANVAS GLU IS: net.java.games.jogl.impl.GLUImpl
net.java.games.jogl.GLException: Unable to create OpenGL context
        at net.java.games.jogl.impl.x11.X11GLContext.chooseVisualAndCreateContext(X11GLContext.java:317)
        at net.java.games.jogl.impl.x11.X11OnscreenGLContext.create(X11OnscreenGLContext.java:206)
        at net.java.games.jogl.impl.x11.X11GLContext.makeCurrent(X11GLContext.java:127)
        at net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(X11OnscreenGLContext.java:111)
        at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:162)
        at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:182)
        at net.java.games.jogl.GLCanvas.display(GLCanvas.java:82)
        at net.java.games.jogl.Animator$1.run(Animator.java:104)
        at java.lang.Thread.run(Thread.java:534)
net.java.games.jogl.GLException: Unable to create OpenGL context
        at net.java.games.jogl.impl.x11.X11GLContext.chooseVisualAndCreateContext(X11GLContext.java:317)
        at net.java.games.jogl.impl.x11.X11OnscreenGLContext.create(X11OnscreenGLContext.java:206)
        at net.java.games.jogl.impl.x11.X11GLContext.makeCurrent(X11GLContext.ja

Happy bug hunting :slight_smile:

RedHat 9
kernel 2.6.0 test 5
webstart version of gears demo
java version “1.4.2_01”
Java™ 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
Java HotSpot™ Client VM (build 1.4.2_01-b06, mixed mode)
edit: also the latest (downloaded and installed about 30 minutes ago :wink: geforce2 mx drivers from nvidia.