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

Certain custom biome settings cause game to spam "Received invalid biome id: -1" in the console, causing major lag or freeze

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 21w18a
    • 1.16.2 Release Candidate 2, 1.16.2, 1.16.3, 1.16.4 Pre-release 1, 1.16.4, 20w46a, 20w49a, 1.16.5, 21w06a, 21w08a, 21w11a, 21w13a, 21w14a, 21w15a, 21w16a, 21w17a
    • Confirmed
    • Custom Worlds, Performance
    • Important

      The bug

      When teleporting to a dimension with custom biomes the client sometimes freezes or experiences major lag, with warnings in the output log "Received invalid biome id: -1". In some cases the chunks eventually load, but then some chunks appear to have the ID "null" while other chunks appear to have the ID "minecraft:ocean". At this point crossing chunk borders will cause more chunks in the distance to generate and more warnings to be spamming in the log.

      How to reproduce

      1. Download the attached data pack MC-197616.zip and add it to a newly created world
      2. After spawning in, fly up a bit and teleport to the mc:197616 custom dimension
        /execute in mc:197616 run tp @s ~ ~ ~
        
      3. The chunks load correctly with the correct biome in F3
      4. Teleport back to the overworld
        /execute in minecraft:overworld run tp @s ~ ~ ~
        
      5. Move away a few chunks and then teleport back to the mc:197616 dimension
        /execute in mc:197616 run tp @s ~ ~ ~
        
      6. The client freezes and lots of warnings appear in the output log (more than 1000 per second)
      7. If this doesn't happen (the world loads correctly) repeat steps 4 and 5. This seems to be related to render distance and world generation speed.

        1. den.zip
          4.35 MB
        2. 2020-08-10_14.58.41.png
          2020-08-10_14.58.41.png
          767 kB
        3. den-1.zip
          4 kB
        4. unknown.png
          unknown.png
          219 kB
        5. Minecraft_14-08-2020_20-15.mp4
          5.99 MB
        6. 21w06a.png
          21w06a.png
          63 kB
        7. MC-197616.zip
          1 kB
        8. after_unfreeze.png
          after_unfreeze.png
          540 kB
        9. dimp2n14.zip
          4 kB
        10. debugDP.zip
          20 kB
        11. Caves&Cliffs(NoBiomeFix).zip
          11 kB

            Unassigned Unassigned
            danjhop2 daniel hopkins
            Votes:
            132 Vote for this issue
            Watchers:
            61 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: