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

Constantly teleporting player to a phantom crashes the game/kicks the player

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.16.3, 21w03a, 1.16.5, 21w13a, 21w16a
    • Fix Version/s: 21w17a
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Crash
    • Mojang Priority:
      Very Important

      Description

      So basically I was messing around with commands in a world and I tried constantly teleporting the player to a phantom and I also wanted the player to be under the phantom so it looked like the phantom was carrying the player. So I did:

      /execute as @e[type=phantom] at @s run execute as @a[distance=..1.5] at @s run tp @s @e[type=phantom,limit=1,distance=..2]

      /execute as @e[type=phantom] at @s run execute as @a[distance=..1.5] at @s run tp @s ~ ~-1 ~

      After I did these two commands and activated them I was teleporting to the phantom but then the world crashed with "Entity has invalid rotation" and when I tried logging in again I keep crashing.

      I cared a lot about the world as I had a lot of command contraptions I've been working on for a long time.

      ---- Minecraft Crash Report ----
      // This doesn't make any sense!
      
      Time: 26/01/21 16:57
      Description: Loading entity NBT
      
      java.lang.IllegalStateException: Entity has invalid rotation
      	at aqu.g(SourceFile:1681)
      	at adk.a(SourceFile:337)
      	at adk.a(SourceFile:134)
      	at abp.c(SourceFile:113)
      	at abp.b(SourceFile:65)
      	at nu.a(SourceFile:235)
      	at abm.c(SourceFile:173)
      	at net.minecraft.server.MinecraftServer.b(SourceFile:881)
      	at net.minecraft.server.MinecraftServer.a(SourceFile:810)
      	at eue.a(SourceFile:93)
      	at net.minecraft.server.MinecraftServer.w(SourceFile:669)
      	at net.minecraft.server.MinecraftServer.a(SourceFile:257)
      	at net.minecraft.server.MinecraftServer$$Lambda$4463/390486284.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 aqu.g(SourceFile:1681)
      
      -- Entity being loaded --
      Details:
      	Entity Type: minecraft:player (aaw)
      	Entity ID: 120
      	Entity Name: JarethTheRad
      	Entity's Exact location: 17.28, 70.29, 215.81
      	Entity's Block location: World: (17,70,215), Section: (at 1,6,7 in 1,4,13; chunk contains blocks 16,0,208 to 31,255,223), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
      	Entity's Momentum: 0.04, -0.08, -0.07
      	Entity's Passengers: []
      	Entity's Vehicle: ~~ERROR~~ NullPointerException: null
      Stacktrace:
      	at aqu.g(SourceFile:1681)
      	at adk.a(SourceFile:337)
      	at adk.a(SourceFile:134)
      	at abp.c(SourceFile:113)
      	at abp.b(SourceFile:65)
      	at nu.a(SourceFile:235)
      	at abm.c(SourceFile:173)
      	at net.minecraft.server.MinecraftServer.b(SourceFile:881)
      	at net.minecraft.server.MinecraftServer.a(SourceFile:810)
      	at eue.a(SourceFile:93)
      	at net.minecraft.server.MinecraftServer.w(SourceFile:669)
      	at net.minecraft.server.MinecraftServer.a(SourceFile:257)
      	at net.minecraft.server.MinecraftServer$$Lambda$4463/390486284.run(Unknown Source)
      	at java.lang.Thread.run(Thread.java:745)
      
      -- System Details --
      Details:
      	Minecraft Version: 21w03a
      	Minecraft Version ID: 21w03a
      	Operating System: Windows 10 (amd64) version 10.0
      	Java Version: 1.8.0_51, Oracle Corporation
      	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
      	Memory: 1224585664 bytes (1167 MB) / 2013265920 bytes (1920 MB) up to 2147483648 bytes (2048 MB)
      	CPUs: 2
      	JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
      	Player Count: 0 / 8; []
      	Data Packs: vanilla
      	Type: Integrated Server (map_client.txt)
      	Is Modded: Probably not. Jar signature remains and both client + server brands are untouched.

        Attachments

        1. crash-2021-01-26_16.57.49-server.txt
          3 kB
          [Mod] Chandler
        2. MojiraPKick.mp4
          4.34 MB
          [Helper] Mark Derickson

          Issue Links

            Activity

              People

              Assignee:
              slicedlime [Mojang] slicedlime
              Reporter:
              Ihasdisconnected minecraft player
              Votes:
              5 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: