mojira.dev
MC-144107

Miscalculation of camera position in windowed mode on Linux

Mod Notice

To work around this issue, try disabling "Raw Input" in Options → Controls → Mouse Settings.

While in windowed mode, moving the mouse causes the in-game camera to rotate in a glitchy manner, in a seemingly random direction, which makes the game very hard to play. The faster the mouse is moved, the more pronounced the issue becomes.

Example video of the problem: https://www.youtube.com/watch?v=fK0o0rVldZ8

In the video I am moving my mouse side to side, and returning it to the middle (parallel to the ground) when the problem happens.

A workaround I found is that this problem doesn't happen in touchscreen mode. But playing using touchscreen mode is not easy with the mouse either, so a proper fix is very much needed.

This problem started happening in 19w06a, so 19w05a and prior are not affected for me.

The mouse used doesn't affect the bug, tried with a generic Gembird mouse, generic Logitech mouse and Razer Taipan.

The world chosen doesn't affect the problem, it happens on new, old, regular and superflat worlds.

It happens in singleplayer, when connected to a local server hosted on the same PC and a server hosted ~50 ms away from the client.

When my friend connects to said server, she doesn't have this problem. She also doesn't experience it in singleplayer. The major difference our systems have is the OS we use.

This leads me to believe that the problem is probably caused by the Desktop Environment I use (version specified in the Environment section). Because this problem doesn't happen in previous MC versions on the same machine, I think that some change in 19w06a somehow affects the way Minecraft handles mouse input which doesn't play well with the way KDE handles mouse movement.

Tested on XFCE, this problem doesn't happen. It happens only in KDE Plasma.

Tested on KDE again, but this time in fullscreen instead of windowed mode, when the game is fullscreen the problem doesn't happen.

 

A small update, I have a new computer now and it seems that on a fresh install of Linux with KDE/Kwin this issue doesn't happen. It's possible that because I switched from an Nvidia graphics card to an AMD one, the change in drivers and X-server settings affected if this problem happens or not. LWJGL version changed in MultiMC when I reinstalled everything.

Linked issues

MC-144141 Overall good but a few glitches Resolved MC-144250 Mouse jumps around, making screen jerk Resolved MC-144665 Constantly Being Bumped Back and Reoriented Every Few Steps Resolved MC-144732 player view reset, changes what I'm looking at Resolved MC-144926 Rotation movement non-functional for linux Resolved

Attachments

Comments 113

I noticed that bug in snapshots 19w06a and 19w07a with my mouse on Debian KDE in Fullscreen mode. I doesn't come from my mouse since it works perfectly on 19w05a. My java version is openjdk 11.0.2.

David Chamberlin

I've experienced a similar issue.  Single player or multiplayer, when looking around, the pitch/yaw glitches to a different position.  But when I tested this issue in full-screen as you have, the issue goes away.  I'm using 19w07a, on Debian 9/4.17 kernel/openbox (not KDE).  But it seems, my problem turned out to be related to the dock (docky) interfering and stealing the mouse focus when not full screen. 

A small update, I have a new computer now and it seems that on a fresh install of Linux with KDE/Kwin this issue doesn't happen. It's possible that because I switched from an Nvidia graphics card to an AMD one, the change in drivers and X-server settings affected if this problem happens or not.

Nicholas George

I've noticed this a lot. Recently had to reinstall an OS due to improper graphics configurations and I chose KDE Plasma. Instantly, I realized this happening, especially where I move a lot on creative. It's especially annoying in survival because I have nearly died a lot due to this. I can't run fullscreen as I like to quickly be able to look something up or check something.

still happens in 19w09a

 

debian testing + kde, nvidia graphics card

103 more comments

Same problem here with Mint 19.3 and Xfce

It occurs from 1.14

If to disable "Raw Input" it becomes even worse

This issue has cleared up on my Linux box (AMD64 kubuntu nvidia geforce) sometime in the last couple of months.  The workaround has always been full screen with/without raw input.  It started somewhere back in 1.14.  It then worked for a while but began to malfunction again; maybe at 1.15.  At the time, the theory was there was a module which would work with Mac, and one that would work with Linux, and the version had been upgraded then reverted, causing the issue to appear/disappear/reappear on Linux.  

 

Since the issue began, I have occasionally switched to windowed mode to see if it has cleared.  To my surprise, I checked it yesterday and it works beautifully.  Thanks to whoever resolved this, hope it sticks.  So nice to run seamlessly in a window!

I have had the opposite experience. It was working in later versions in windowed, and now they all seem broken. I'm getting the same issue even in 1.12.2 which used to be smooth. I'm wondering if it's a library that got updated or some deal which actually affects all versions of MC.

I am still getting this issue with and without raw input, with and without fullscreen, and with and without touchscreen mode on i3wm (not kde plasma) with Gentoo Linux. it seems to be a LWJGL issue because it doesn't happen in 1.13.2 and older versions. Please devs, look into this

None of the workarounds detailed here work for me. The game is completly unplayable.

Vectole

Fry

Community Consensus

Camera

Input, KDE, Linux, Mouse, windowed

Minecraft 19w06a, Minecraft 19w07a, Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11b, ..., 1.15 Pre-release 4, 1.15.2, 20w06a, 20w09a, 1.16 Pre-release 5

Minecraft 1.14 Pre-Release 3, Minecraft 1.14.3 Pre-Release 2, 1.16 Pre-release 7

Retrieved