LWJGL
May 21, 2013, 10:24:28 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.9.0 released!
 
   Home   Help Search Login Register  



Pages: [1] 2
  Print  
Author Topic: [BUG] Visible mouse cursor in Minecraft  (Read 5359 times)
Sworddragon
Newbie
*
Posts: 14


« on: February 04, 2012, 02: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).
Logged
Matzon
Administrator
Demigod
*****
Posts: 2237



« Reply #1 on: February 04, 2012, 05:57:13 »

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

Sworddragon
Newbie
*
Posts: 14


« Reply #2 on: February 04, 2012, 08:01:17 »

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:

Code:
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)

Code:
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)
Logged
Matzon
Administrator
Demigod
*****
Posts: 2237



« Reply #3 on: February 05, 2012, 01: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.
Logged

Sworddragon
Newbie
*
Posts: 14


« Reply #4 on: February 05, 2012, 03:20:50 »

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.
Logged
Matzon
Administrator
Demigod
*****
Posts: 2237



« Reply #5 on: February 05, 2012, 12:22:28 »

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.
Logged

kappa
Administrator
Nerdus Imperius
*****
Posts: 1112



« Reply #6 on: February 05, 2012, 12:34:00 »

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 Smiley
Logged
Fool Running
Nerdus Imperius
*****
Posts: 742


« Reply #7 on: February 06, 2012, 05:43:48 »

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. Grin

Minecraft as it is released does not have this problem.
Logged

Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option Grin
Sworddragon
Newbie
*
Posts: 14


« Reply #8 on: February 06, 2012, 10:22:15 »

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.

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.


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 Smiley

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.


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. Grin

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.
Logged
Sworddragon
Newbie
*
Posts: 14


« Reply #9 on: August 06, 2012, 07:24:32 »

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.
Logged
princec
Nerdus Imperius
*****
Posts: 1868



WWW
« Reply #10 on: August 06, 2012, 11:58:28 »

Do you get the problem with Revenge of the Titans?

Cas Smiley
Logged

Sworddragon
Newbie
*
Posts: 14


« Reply #11 on: August 07, 2012, 00:23:49 »

I have tested this with the game but it never uses the mouse cursor from my desktop environment if I'm pausing the game.
Logged
princec
Nerdus Imperius
*****
Posts: 1868



WWW
« Reply #12 on: August 07, 2012, 01:43:58 »

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

Cas Smiley
Logged

Sworddragon
Newbie
*
Posts: 14


« Reply #13 on: August 08, 2012, 00:52:14 »

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? Smiley
Logged
princec
Nerdus Imperius
*****
Posts: 1868



WWW
« Reply #14 on: August 08, 2012, 01:53:36 »

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 Smiley
Logged

Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!