[CLOSED] Visible mouse cursor in Minecraft

Started by Sworddragon, February 04, 2012, 10:44:10

Previous topic - Next topic

Sworddragon

I'm using LWJGL #1544 (LWJGL 2.8.3 is affected too) with Minecraft (Linux 64 Bit and OpenJDK 7) and sometimes I'm seeing the mouse cursor of my desktop in the game. This happens if I'm in a world and pressing ESC to call the menu and clicking on "Back to Game" in this menu (this happens ~every 10 tries). The mouse cursor removes if I'm pressing a few times on my mouse (for example a few left mouse clicks).

Matzon

Does it happen in non-minecraft and especially jdk6 code too?

Sworddragon

It happens on OpenJDK 6 too. If it happens on other java applications I don't know because Minecraft is the only application for which I need OpenJDK. If the system is under heavy load there is even a high chance that after clicking "Back to game" the same menu is opened again (it is temporary the same issue as http://lwjgl.org/forum/index.php/topic,4315.0.html).

The used jdk builds were:

java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11) (6b24-1.11-0ubuntu1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)


java version "1.7.0_147-icedtea"
OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-1ubuntu2)
OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode)

Matzon

well, fwiw, I think you should contact minecraft support for this. There is nothing saying that there is a general issue with visible cursor in lwjgl in general.

Sworddragon

Maybe this is a Minecraft issue but this is difficult to say. But I'm not trying to contact the support because I tried this already in the past and had no success. The support is in my opinion really bad at Mojang and they have only a pseudo bug tracker. A report there would be just a waste. This bug is only a minor issue and I can live with it. Maybe it will be fixed randomly in the future.

Matzon

I understand your point of view, but as we dont have report of a general linux issue, we will for the time being, probably assume its a minecraft issue.

kappa

IIRC Minecraft doesn't use LWJGL's mouse grab calls but instead rolls its own version using AWT.

Remember this as there use to be a mouse grab bug on windows with LWJGL 2.4 (which Minecraft still uses!). The bug has long since been fixed and Notch still owes spasi a beer for fixing it :)

Fool Running

Quote from: Sworddragon on February 04, 2012, 10:44:10
I'm using LWJGL #1544 (LWJGL 2.8.3 is affected too) with Minecraft (Linux 64 Bit and OpenJDK 7) and sometimes I'm seeing the mouse cursor of my desktop in the game. This happens if I'm in a world and pressing ESC to call the menu and clicking on "Back to Game" in this menu (this happens ~every 10 tries). The mouse cursor removes if I'm pressing a few times on my mouse (for example a few left mouse clicks).
I'm curious why you replaced the LWJGL that comes with Minecraft with a different version? And, for that matter, why you expect there to be no problems. ;D

Minecraft as it is released does not have this problem.
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D

Sworddragon

Quote from: Matzon on February 05, 2012, 09:35:32
well, fwiw, I think you should contact minecraft support for this. There is nothing saying that there is a general issue with visible cursor in lwjgl in general.

Quote from: kappa on February 05, 2012, 20:34:00
IIRC Minecraft doesn't use LWJGL's mouse grab calls but instead rolls its own version using AWT.

I have tested this now with LWJGL 2.8.1 and all is working fine. Even if I force a heavy load of my system with other tasks the problem doesn't appear. On clicking "Back to game" I can see how the mouse cursor is removing and after ~1 second (because of the heavy load) the menu is closing. This could be an indication that this is an issue with LWJGL 2.8.3.


Quote from: kappa on February 05, 2012, 20:34:00Remember this as there use to be a mouse grab bug on windows with LWJGL 2.4 (which Minecraft still uses!). The bug has long since been fixed and Notch still owes spasi a beer for fixing it :)

Interesting that the version is so old (how can I figure it out?). I remember some months ago I was using the distributed version of LWJGL with Minecraft for ~1 year and had an annoying bug. On clicking in the game the window lost for a really short time the focus and the mouse cursor was visible. If an already pressed key was released in this time it get locked. My character in Minecraft was so running often automatically into the death.


Quote from: Fool Running on February 06, 2012, 13:43:48I'm curious why you replaced the LWJGL that comes with Minecraft with a different version? And, for that matter, why you expect there to be no problems. ;D

The outdated version of LWJGL distributed with Minecraft has more annoying bugs (see above or my linked thread). Using a newer version was much more comfortable. This allows me even to report bugs that I can find in LWJGL.

Sworddragon

The bug still exists in LWJGL 2.8.4 and the newest trunk. With Minecraft 1.3 it is now possible to play a demo version for a few days if you haven't purchased the game. Maybe you can try to reproduce the bug with LWJGL 2.8.4 or higher and compare it with LWJGL 2.8.1.

princec

Do you get the problem with Revenge of the Titans?

Cas :)

Sworddragon

I have tested this with the game but it never uses the mouse cursor from my desktop environment if I'm pausing the game.

princec

Bug would appear to be back in Mojang's court then.

Cas :)

Sworddragon

Why should it be a problem with Minecraft? That the mouse cursor from the desktop environment appears if the game is paused is the normal behavior. On unpausing the mouse cursor disappears on LWJGL 2.8.1 but not on LWJGL 2.8.4. Have you already tried to reproduce it? :)

princec

This kind of problem is for Mojang to sort out. When they come up with an official bug report with all the attendant requirements, someone will be able to look in to it, but until then, it's their problem.

Cas :)