mojira.dev
MC-197616

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

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

[media]
  1. 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.

Linked issues

Attachments

Comments 82

galaxy_2alex

Please provide a screenshot of your game with the F3 debug screen enabled, please also provide the datapack in question.

daniel hopkins

world is in zip

daniel hopkins

if it loads lol

 

anthony cicinelli

You can do this on any world not just the buffet world (Provide the screenshot with F3)

daniel hopkins

its called den I made it as a test

72 more comments
[MOD] Greymagic27

Please remember the bug tracker is not a discussion forum and any discussion about a bug should take place outside of the bug tracker, such as on our reddit and/or our discord server.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Lunade Lunade

I'm experiencing a similar bug in 21w19a even without the datapack, every chunk border causes lag
I don't know if I should report it or not because I don't understand the causes/technical things behind it, but just wanted to get it out there.

dan hop

You using any datapack that makes the chunk height bigger

if so check out MC-225178 

Lunade Lunade

Actually I found out my problem, it's a weird solution but someone talked about it before.
I gave it 4GB of RAM, and I guess since it takes longer to clear, it caused lag. Once I gave it only 2GB of RAM, it was fine.
I don't know why I didn't think of that earlier

Arkazora

Once, I Tried To Make An End Noise Nether. So, There Is A Nether Waste Cutting The Crimson Forest And Warped Forest. The Game Lag, Then Crash. When I Reload The World, The Nether Waste, A Bit Of Crimson Forest, And A Bit Of Warped Forest Turn Into Ocean Biome. Such A Weird Bug.

daniel hopkins

(Unassigned)

Confirmed

Important

Custom Worlds, Performance

data-pack, performance

1.16.2 Release Candidate 2, 1.16.2, 1.16.3, 1.16.4 Pre-release 1, 1.16.4, ..., 21w13a, 21w14a, 21w15a, 21w16a, 21w17a

21w18a

Retrieved