mojira.dev
MC-142782

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

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).

Linked issues

Attachments

Comments 5

You see in this screenshot there is a lightning glitch with torches, which seems to be another issue that I have described in [MC-143654]

Just had the same situation with pillagers pathfinding during a raid. The party spawned on the top of a mountain and were stuck in a waterfall. This blocking was enough to lag the game.

Confirmed; Pillagers pillaging my TPS

@unknown Which version did you test it in?

Can you please check if that still applies to recent releases. 1.14.4 or 1.15-pre1?

Johnibur

(Unassigned)

Community Consensus

Performance

ai, lag, optimization, performance, pillager

Minecraft 19w03c, Minecraft 19w05a, Minecraft 19w09a, Minecraft 19w13b

Retrieved