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

Server crash when pathfinding to player that is teleporting away


    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.17 Pre-release 1
    • 1.16.4, 1.16.5
    • Plausible
    • Crash
    • Very Important

      I've had this crash dozens of times throughout 1.16.x (and possibly earlier) on my public vanilla server. It's not easy to reproduce as it does not happen frequently, but every time it does happen it's because a player has teleported away from an area while there were mobs aggroed by him, as far as I can tell always zombified piglins.

      There are 2 teleportation mechanisms on the server, both can trigger this crash:
      1 - summon an armorstand, execute a function as that armorstand which sets its Pos field and then teleports the player in question to itself.
      2 - teleport to another player directly through functions.

      When crashing, the server takes takes 60 seconds until it times out. I have attached 4 de-obfuscated crash reports. I can provide more if necessary, but they all follow a similar pattern.

      Edit: Was able to reproduce it. https://www.youtube.com/watch?v=DFa4wSobUY8

            slicedlime [Mojang] slicedlime
            UncleThaodan Thaodan
            4 Vote for this issue
            8 Start watching this issue