Exception in thread "Thread-13" org.lwjgl.LWJGLException: X Error - disp: 0x7fa0501eaf70 serial: 7324 error: BadMatch (invalid parameter attributes) request_code: 42 minor_code: 0
at org.lwjgl.opengl.LinuxDisplay.globalErrorHandler(LinuxDisplay.java:303)
at org.lwjgl.opengl.GL11.nglClear(Native Method)
at org.lwjgl.opengl.GL11.glClear(GL11.java:588)
at testapplet.TestApplet.run(TestApplet.java:83)
TestApplet.java
82: public void run() {
83: glClear(GL_COLOR_BUFFER_BIT);
84: glLoadIdentity();
85: Display.update();
86: Display.sync(60);
87: }
GL11.java
584: public static void glClear(int mask) {
585: ContextCapabilities caps = GLContext.getCapabilities();
586: long function_pointer = caps.glClear;
587: BufferChecks.checkFunctionAddress(function_pointer);
588: nglClear(mask, function_pointer);
589: }
590: static native void nglClear(int mask, long function_pointer);
Linux Mint 10 (Ubuntu 10.10 Maverick Meerkat) 64-bit.
Latest nightly LWJGL 2.7.1
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
Xorg:
X.Org X Server 1.9.0
Release Date: 2010-08-20
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-28-server x86_64 Ubuntu
Current Operating System: Linux 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:45:36 UTC 2010 x86_64
Build Date: 09 January 2011 12:14:27PM
xorg-server 2:1.9.0-0ubuntu7.3
Current version of pixman: 0.18.4
It runs fine with no errors at all. If I change tabs multiple times, then there are no problems at all.
Then if I click on the screen and drag my mouse around, there are no errors at all.
But, if I then switch tabs and then come back, it gives this error once. Then it white screens forever (crashes) until I click refresh.
It has something to do with dragging the mouse in a canvas apparently. I also get Mouse input fine (I tested with Mouse.getX() and Mouse.getY()) while dragging before I switch tabs. I have to first drag in the window and then switch tabs. Then it crashes.
To try and recreate it, just do a straight copy of the applet code from the tutorials, but have Mouse.create(), OpenGL initialization code, a game loop with my run method, etc. just very basic stuff. Just very simple, basic skeleton OpenGL/LWJGL Applet code.
I'm betting this is probably just a problem with the x window system, but anyone have any suggestions?
If I do this same code but not in an applet and without using a canvas, it works perfectly without any errors.
I haven't tested within a canvas yet without being an applet, but I plan on doing that some time this week.
Thanks.