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

*.newAi.goalSelector.goalTick.pathfind took too long

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 19w03c, Minecraft 19w05a, Minecraft 19w09a, Minecraft 19w13b
    • Community Consensus
    • Performance

      Entities pathfind processing can make servers falling behind under some circumstances. This has especially observed with pillagers, but also with zombies. Every time, killing the said entities solves issue.

      First time this has been observed with pillagers: with a dozen of villages loaded (breeder, iron farms). Pillagers can never reach the villages, and start running around, dancing, looking in all directions. And consistent lag starts to build up until you kill the pillagers. Lag can start with only 10 pillagers, and is worsened resulting in chunks not loading once you reach 100 pillagers. Killing all the pillagers immediately solves this issue and server is running smoothly again.

      Second time this has been observed with zombies under a strange configuration with lightning not updating near torches (screenshots). This repetitively caused server crashing upon exceeding maximum tick delay. Once again, killing the zombies solved the issue.

      Having a profiling running, it appears that

      *.newAi.goalSelector.goalTick.pathfind
      

      is taking too long to proceed and makes the server falling behind or crashing. In both situations, the mobs were trying to reach an unreachable goal (either vilages or player).

        1. unknown.png
          1.50 MB
          [Helper] Johnibur

            Unassigned Unassigned
            Johnibur [Helper] Johnibur
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: