X Error - serial: 117 error: BadWindow (invalid Window parameter) request_code: 137 minor_code: 4

I download jme3 source and then build by following instruction at https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:build_from_sources



The build looks ok.



Then I try the example https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:beginner:hello_simpleapplication



Compilation works but when launching the examlpe it throws

[java]



org.lwjgl.LWJGLException: X Error - disp: 0x8d71d80 serial: 117 error: BadWindow (invalid Window parameter) request_code: 137 minor_code: 4



Jan 25, 2011 2:19:47 PM com.jme3.app.Application handleError

SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]

java.lang.IllegalStateException: Cannot determine close requested state of uncreated window

[/java]



The code is exactly the same as example shown

[java]

import com.jme3.app.SimpleApplication;

import com.jme3.material.Material;

import com.jme3.math.Vector3f;

import com.jme3.scene.Geometry;

import com.jme3.scene.shape.Box;

import com.jme3.math.ColorRGBA;



/** Sample 1 - how to get started with the most simple JME 3 application.

  • Display a blue 3D cube and view from all sides by
  • moving the mouse and pressing the WASD keys. */

    public class Start extends SimpleApplication {



    public static void main(String[] args){

    Start app = new Start();

    app.start();

    }



    @Override

    public void simpleInitApp() {

    Box b = new Box(Vector3f.ZERO, 1, 1, 1);

    Geometry geom = new Geometry("Box", b);

    Material mat = new Material(assetManager, "Common/MatDefs/Misc/SolidColor.j3md");

    mat.setColor("m_Color", ColorRGBA.Blue);

    geom.setMaterial(mat);

    rootNode.attachChild(geom);

    }

    }

    [/java]



    My environment is Debian squeeze, java 2.6.0_21-b06



    How to fix this problem?

I think I know what goes wrong now.



It looks like the issue of video card driver. The execution of glxinfo shows `Fatal error …’

After reinstallation with the newest driver, the glxinfo would display something similar to below


name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: Corporation
server glx version string: 1.4

Then the program would work ok with another small screen popped out after clicking ok in jmonkey displaying setting (where a jmonkey engine and logo will be shown).

So everything is working okay now?

Yes, I am able to run the example now.



Is there any chance that such problem can be put in FAQ? I think this issue is not the problem of jmonkey engine, but for a beginner like me may be scratching his head and do not know how to solve it (even after searching google). That would be nice if such problem can be put into e.g. FAQ so a beginner can check beforehand.



Thanks anyway for providing this good engine.