IllegalState on linux

Started by cwei, December 12, 2004, 22:16:50

Previous topic - Next topic

cwei

Hello

I have tested the webstart demos and I've got this error on linux.

Exception in thread "main" java.lang.IllegalStateException: Mouse doesn't support native cursors
        at org.lwjgl.input.Mouse.setNativeCursor(Unknown Source)
        at org.lwjgl.input.Mouse.create(Unknown Source)
        at org.lwjgl.opengl.Display.initControls(Unknown Source)
        at org.lwjgl.opengl.Display.createWindow(Unknown Source)
        at org.lwjgl.opengl.Display.create(Unknown Source)
        at org.lwjgl.opengl.Display.create(Unknown Source)


Can anybody help?

bye
Carsten

princec

Badly coded demos ;) They should trap and ignore that exception and provide a fallback cursor rendered in software.

Do you have any system specs for us?

Cas :)

cwei

Quote from: "princec"Badly coded demos ;) They should trap and ignore that exception and provide a fallback cursor rendered in software.

Do you have any system specs for us?

Cas :)

debian woody
2.4.21 kernel
Nvidia Geforce 4MX
nvidia 5336, 6629 driver modules
XFree86 Version 4.1.0.1 / X Window System

Do you have a well coded demo ;-)
Because someone send me a patch for Jake2 with lwjgl binding and we would integrate it in our project.
http://sourceforge.net/projects/jake2

It seems that the lwjgl bindings are faster than the jogl and joal.
It is working on Win32 but not on linux.

Is my debian too old?

bye
Carsten

Matzon

Well, you're probably running the HWCursorTest - and it's meant to test a cursor, so no reason for it to fall back on emulation.
I have comitted a change for the HWCursorTest so that it exits on initialization errors.
I won't be updating the webstart package before 0.94 due out Real Soon Now

cwei

Hi princec and matzon,

I have tested the webstart demos  at work on a  debian SARGE and it works :-)
Is it possible that the mouse problem depends on the Xfree version. (4.1 is too old ?)

bye
Carsten

elias

Yes, native cursor support depends on the X version. Only X >= 4.3 supports LWJGL native cursors, as far as I remember.

- elias