mojira.dev
MC-241214

Crash: java.lang.NullPointerException occures when generating some chunks in upgraded world

The Bug:

On upgraded world, when you start generating new chunks near already generated territory(on 1.17.1 and older versions) sometimes game freezes and then crashes

Steps to reproduce:

  1. Make a world in 1.17.1

  2. Generate a big amount of chunks(like 1000x1000 blocks area)

  3. Open this world in 1.18 Pre-release 1

  4. Fly and generate new chunks near the end of 1.17.1 chunks

  5. After some time of flying in such a trajectory you will see freeze or crash of the game

Additional information:

  • This bug is kinda tricky to discover

  • I tested this bug in a world with small amount of pre-existed old chunks and there were no crashes

  • In the video(Minecraft 2021.11.11), left side are old chunks and right side are new chunks

  • Java`s version is 17 because there is a bug with new launcher that crashes your computer when you are using built-in java

Attachments

Comments 6

This is happening in a non-upgraded world as well.

I started this server a few snapshots ago and updated to 1.18 pre-1 today.

I was running through some new chunks near a bamboo jungle biome when the error occurred.

 

Here's the crash log.

[media]

I looked through a couple of crash logs on this report, plus one I got from my own world generation attempt warranting a crash, and from looking through the report, it seems like it's a bug from trying to generate villages in certain positions causing a null return value.

Probably a duplicate of my MC-241193 report, but thank you for adding additional information. Feel free to comment/attach stuff to my report. I am using a Windows 10 PC so there may be different results.

Thank you for your report!
We're tracking this issue in MC-241190, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

I am not sure if this is resolved. I am experiencing a similar issue and can upload the world, if desired. I do not think it is a duplicate of the nether portal issue, as I'm not using nether portals at all during this – it's only while flying around in the overworld in spectator (can try creative, if needed).

I did exactly this – pregenerated a 16x16 region world and pruned the outside, but when I load in 1.18 (I started attempting this in pre2), it crashes somewhere around the coordinates X: -2000 Z: -4096

I can see some chunks generate in the spiral pattern, and eventually I hear my CPU spin down and the game just stops responding. No crash report or anything in the logs.

Seed is 7350775400449721473

I found a workaround. Since the problem area is on the north border, I went underground in spectator and gradually worked my way north, and somehow that got past the issue. The are finally generated with smooth transition to my old world. Given the way it played out, I suspect there was some kind of logic conflict trying to smooth the terrain against old chunks whose underground (-64 to 0) had not rendered yet?

If nothing else, hopefully that helps someone who might run into the same issue. Please feel free to ping if anyone else stumbles across this and needs help/info/someone to talk to. 😃

CrUeLGeRoI

(Unassigned)

Unconfirmed

(Unassigned)

chunk, crash

1.18 Pre-release 1

Retrieved