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

Villager performs "move" even though its impossible - Laggs server

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • Minecraft 1.13.1, Minecraft 1.13.2
    • None
    • Community Consensus
    • Performance

      The bug

      Villagers seem to try to move even when in a 1×1 big area with no possibility to do so. This results in server lag.

      Background and details

      The server started to lag and lost ticks and since the server has good enough processor and memory for our gameplay, I decided to check what caused the lag by using "/debug start and /debug stop". What seems to take up a bit over 50% of the total resources is the minecraft: villager move task.

      I have built an ironfarm in my base away from spawn (nothing fancy, just regular villages 65 blocks apart killing off the golems), so to investigate I moved out all villagers except the ones in my iron farms from the base and also asked everyone else on the server to log out. I restarted the server to make sure that nothing was left buggy, but the problem persisted.

      At this point the villagers were put 4 in each holding cell with the size 3×1 with glass above and glowstone below.

      Since I thought that they were running around in those holding cells, I pushed in the walls so that they were 4 villagers in each cell, but this time every cell was 1×1. At this point I thought that it should be impossible for the villagers to move, but they still did.

      I have restarted the server and this is how the debug info looks now when no loaded villagers are in anything else than 1×1 (2 high) cells:

      [00] levels - 99.36%/99.36%
      [01] | CyCraft13 - 99.98%/99.34%
      [02] | | tick - 99.47%/98.81%
      [03] | | | entities - 91.59%/90.50%
      [04] | | | | regular - 98.56%/89.20%
      [05] | | | | | tick - 99.36%/88.63%
      [06] | | | | | | minecraft:villager - 70.10%/62.13%
      [07] | | | | | | | travel - 86.48%/53.73%
      [08] | | | | | | | | move - 95.49%/51.30%
      [08] | | | | | | | | rest - 2.46%/1.32%
      [08] | | | | | | | | unspecified - 2.05%/1.10%
      [07] | | | | | | | ai - 5.95%/3.70%
      [08] | | | | | | | | newAi - 95.01%/3.51%
      [09] | | | | | | | | | goalSelector - 40.28%/1.41%
      [10] | | | | | | | | | | goalSetup - 78.11%/1.11%
      [11] | | | | | | | | | | | unspecified - 99.82%/1.10%
      [11] | | | | | | | | | | | pathfind - 0.18%/0.00%
      [11] | | | | | | | | | | | canSee - 0.00%/0.00%
      [10] | | | | | | | | | | unspecified - 18.44%/0.26%
      [10] | | | | | | | | | | goalTick - 3.45%/0.05%
      [09] | | | | | | | | | unspecified - 26.84%/0.94%
      [09] | | | | | | | | | controls - 16.64%/0.58%
      [10] | | | | | | | | | | unspecified - 70.19%/0.41%
      [10] | | | | | | | | | | look - 16.43%/0.10%
      [10] | | | | | | | | | | move - 7.33%/0.04%
      [10] | | | | | | | | | | jump - 6.05%/0.04%
      [09] | | | | | | | | | targetSelector - 8.09%/0.28%
      [10] | | | | | | | | | | unspecified - 66.38%/0.19%
      [10] | | | | | | | | | | goalSetup - 33.62%/0.10%
      [09] | | | | | | | | | checkDespawn - 3.29%/0.12%
      [09] | | | | | | | | | navigation - 2.10%/0.07%
      [09] | | | | | | | | | mob tick - 1.46%/0.05%
      [09] | | | | | | | | | sensing - 1.31%/0.05%
      [08] | | | | | | | | unspecified - 4.99%/0.18%
      [07] | | | | | | | unspecified - 3.09%/1.92%
      [07] | | | | | | | push - 1.35%/0.84%
      [07] | | | | | | | entityBaseTick - 1.29%/0.80%
      [08] | | | | | | | | unspecified - 94.73%/0.76%
      [08] | | | | | | | | portal - 5.27%/0.04%
      [07] | | | | | | | livingEntityBaseTick - 1.01%/0.63%
      [07] | | | | | | | looting - 0.46%/0.29%
      [07] | | | | | | | headTurn - 0.18%/0.11%
      [07] | | | | | | | mobBaseTick - 0.11%/0.07%
      [07] | | | | | | | rangeChecks - 0.04%/0.02%
      [07] | | | | | | | jump - 0.02%/0.02%
      

            Unassigned Unassigned
            cyoor Pierre Waldén
            Votes:
            14 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: