Mojira Archive
MC-198414

if the angle in /spawnpoint is set to +-infinity, and the player dies, it will kick the player, and upon rejoin will crash the game

The bug

If you set a player's spawn point angle to +-infinity (/spawnpoint @s ~ ~ ~ 999999999999999999999999999999999999999, it will show up as NaN in chat) and then let the player die, it will kick the player with an "Invalid move player packet received." Trying to rejoin the world will crash the game. This also permanently locks you out of your world.

Crash report

Description: Loading entity NBT

java.lang.IllegalStateException: Entity has invalid rotation
	at apx.f(SourceFile:1626)
	at acs.a(SourceFile:341)
	at acs.a(SourceFile:138)
	at aba.c(SourceFile:111)
	at aba.b(SourceFile:63)
	at nd.a(SourceFile:230)
	at aax.c(SourceFile:173)
	at net.minecraft.server.MinecraftServer.b(SourceFile:879)
	at net.minecraft.server.MinecraftServer.a(SourceFile:808)
	at emy.a(SourceFile:92)
	at net.minecraft.server.MinecraftServer.w(SourceFile:667)
	at net.minecraft.server.MinecraftServer.a(SourceFile:254)
	at net.minecraft.server.MinecraftServer$$Lambda$4124/309256.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:745)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Server thread
Stacktrace:
	at apx.f(SourceFile:1626)

-- Entity being loaded --
Details:
	Entity Type: minecraft:player (aah)
	Entity ID: 57
	Entity Name: ErrorCraft
	Entity's Exact location: 95.50, 4.10, 115.50
	Entity's Block location: World: (95,4,115), Chunk: (at 15,0,3 in 5,7; contains blocks 80,0,112 to 95,255,127), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
	Entity's Momentum: 0.00, -0.08, 0.00
	Entity's Passengers: []
	Entity's Vehicle: ~~ERROR~~ NullPointerException: null
Stacktrace:
	at apx.f(SourceFile:1626)
	at acs.a(SourceFile:341)
	at acs.a(SourceFile:138)
	at aba.c(SourceFile:111)
	at aba.b(SourceFile:63)
	at nd.a(SourceFile:230)
	at aax.c(SourceFile:173)
	at net.minecraft.server.MinecraftServer.b(SourceFile:879)
	at net.minecraft.server.MinecraftServer.a(SourceFile:808)
	at emy.a(SourceFile:92)
	at net.minecraft.server.MinecraftServer.w(SourceFile:667)
	at net.minecraft.server.MinecraftServer.a(SourceFile:254)
	at net.minecraft.server.MinecraftServer$$Lambda$4124/309256.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:745)

Fixed

ErrorCraft

[Mojang] Matthew Gatland

2020-08-19, 07:58 PM

2022-07-30, 01:41 PM

2020-09-15, 11:32 AM

5

7

Confirmed

Very Important

Commands, Crash

1.16.2, 1.16.3 Release Candidate 1, 1.16.3

20w45a