Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-144107

Miscalculation of camera position in windowed mode on Linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 19w06a, Minecraft 19w07a, Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11b, Minecraft 19w12a, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 2, Minecraft 1.14, Minecraft 1.14.1 Pre-Release 1, Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 2, Minecraft 1.14.2 Pre-Release 3, Minecraft 1.14.2 Pre-Release 4, Minecraft 1.14.2, Minecraft 1.14.4 Pre-Release 5, Minecraft 1.14.4 Pre-Release 6, 1.14.4, 19w34a, 1.15 Pre-release 4, 1.15.2, 20w06a, 20w09a, 1.16 Pre-release 5
    • Community Consensus
    • Camera

      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.

        1. crash-2019-07-20_11.21.25-client.txt
          3 kB
          Smyler
        2. mcbug.mp4
          6.60 MB
          Ashcon Mohseninia
        3. untitled.webm
          6.62 MB
          Finn

            fry [Mojang] Georgii Gavrichev
            Vectole Vectole
            Votes:
            77 Vote for this issue
            Watchers:
            68 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: