Extremely high mouse sensitivity + fast horizontal movement causes abnormal camera values, player freeze, and further movement triggers floating-point overflow & game cras
Description
When using extremely high mouse DPI and maximum in-game mouse sensitivity, rapidly moving the mouse horizontally causes the camera angle values (especially the yaw value) to exceed the normal range, resulting in severe control abnormalities.
This issue can be triggered not only by horizontal movement but also by forcibly converting horizontal mouse motion into vertical motion; the root cause is camera values going out of the valid range.
After the issue occurs:
- The player cannot rotate the camera horizontally (only up/down)
- The player cannot move at all (WASD has no effect)
- The player does not move even when attacked by mobs or affected by knockback
The player is completely frozen in place.
Continuing to move the mouse or press movement keys while frozen further causes floating-point overflow, which eventually crashes the game directly.
Under these conditions, this bug can be triggered almost 100% reliably.
It can also be triggered by external programs simulating extremely fast mouse movement, which may be exploited maliciously on servers.
Steps to Reproduce
1. Set your mouse DPI to maximum in the mouse driver software.
2. Set the in-game mouse sensitivity to maximum.
3. Move the mouse rapidly and horizontally for a short distance (you may also try forcing horizontal motion into vertical motion).
4. Observe: the player becomes unable to move or rotate horizontally.
5. Continue moving the mouse or pressing WASD while frozen.
6. Observe: the game crashes due to floating-point overflow.
Actual Result
The player is frozen: cannot move, cannot rotate horizontally, and is unaffected by knockback.
Further input triggers floating-point overflow and an immediate game crash.
Expected Result
Camera rotation (including yaw/pitch) and player movement should function correctly at all valid sensitivity levels, without numerical overflow, control lock, or game crashes.
Environment
Minecraft: Java Edition - Version: (Fill in your version, e.g. 1.21.4) Singleplayer / Multiplayer (Server - Mods/Plugins: Vanilla (no mods)
Thank you for helping us improve Minecraft! We saved your files: