error loading in Linux

Started by manumoi, November 10, 2005, 10:14:09 PM

Previous topic - Next topic

manumoi

hello, I just tried to load my jpct application on a linux computer (for the first time at my university and i got the following exception. This application works just fine on a windows computer.


Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: org.lwjgl.LWJGLException: Could not create a direct GLX context
       at org.lwjgl.opengl.AWTGLCanvas.paint(AWTGLCanvas.java:261)
       at org.lwjgl.opengl.AWTGLCanvas.update(AWTGLCanvas.java:269)
       at sun.awt.RepaintArea.updateComponent(RepaintArea.java:239)
       at sun.awt.X11.XRepaintArea.updateComponent(XRepaintArea.java:43)
       at sun.awt.RepaintArea.paint(RepaintArea.java:216)
       at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:630)
       at java.awt.Component.dispatchEventImpl(Component.java:4031)
       at java.awt.Component.dispatchEvent(Component.java:3803)
       at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
       at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
       at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
       at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: org.lwjgl.LWJGLException: Could not create a direct GLX context
       at org.lwjgl.opengl.LinuxContextImplementation.nCreate(Native Method)
       at org.lwjgl.opengl.LinuxContextImplementation.create(LinuxContextImplementation.java:50)
       at org.lwjgl.opengl.Context.<init>(Context.java:123)
       at org.lwjgl.opengl.AWTGLCanvas.paint(AWTGLCanvas.java:248)
       ... 13 more


I know this is a LWJGL error but do you have any idea?
Thanks

EgonOlsen

When does this happen? Only when using the AWTGL-stuff or with a native OpenGL window too?

manumoi

hello,
My app runs a AWTGLCanvas... I didn t try with something else... What i suspect is that maybe an openGL driver for the video card is missing. I contacted the administrator of my univ and he was unable to answer me :?
I will check with a friend of mine who frequently deals with MESA on similar computers at my univ. And i will come back to you once i will have the answer.
I think it must be a crappy thing somewhere in my config...

Manu

manumoi

Just to say that this error is due to the fact that the computer simply doesn t support direct rendering (as seen when using glxinfo command).

Ciao

Manu

rolz

Try using new LWJGL 0.99 - i saw there were lots of bugfixes, some of them related to awtgl. I also have problems with awtgl on some videocards, and i hope to check out if 0.99 helped to solve them today
Regards,
Andrei