Author Topic: error loading in Linux  (Read 2773 times)

Offline manumoi

  • long
  • ***
  • Posts: 121
    • View Profile
    • http://www.iro.umontreal.ca/~blanchae
error loading in Linux
« on: November 10, 2005, 10:14:09 pm »
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.

Code: [Select]

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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11746
    • View Profile
    • http://www.jpct.net
error loading in Linux
« Reply #1 on: November 11, 2005, 08:46:19 am »
When does this happen? Only when using the AWTGL-stuff or with a native OpenGL window too?

Offline manumoi

  • long
  • ***
  • Posts: 121
    • View Profile
    • http://www.iro.umontreal.ca/~blanchae
error loading in Linux
« Reply #2 on: November 11, 2005, 10:16:09 am »
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

Offline manumoi

  • long
  • ***
  • Posts: 121
    • View Profile
    • http://www.iro.umontreal.ca/~blanchae
error loading in Linux
« Reply #3 on: December 17, 2005, 08:36:07 pm »
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

Offline rolz

  • float
  • ****
  • Posts: 280
  • Technocrat
    • View Profile
error loading in Linux
« Reply #4 on: December 19, 2005, 12:25:00 pm »
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