Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. 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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.16.2, 1.16.3 Release Candidate 1, 1.16.3
    • Fix Version/s: 20w45a
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Commands, Crash
    • Mojang Priority:
      Very Important

      Description

      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)
      

        Attachments

        1. crash.png
          crash.png
          124 kB
        2. crash-2020-08-19_18.52.56-server.txt
          3 kB
        3. player.png
          player.png
          27 kB

          Activity

            People

            Assignee:
            mgatland [Mojang] Matthew Gatland
            Reporter:
            ErrorCraft ErrorCraft
            Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              CHK: