mojira.dev
MC-238375

Crash and/or data corruption upon attempting to save a world with a world border center over 30 million blocks

The bug

Attempting to save a world with a world border center over 30 million blocks causes the player to be unable to respawn. The game crashes (Exception generating new chunk caused by java.lang.ArrayIndexOutOfBoundsException), and/or the world is corrupted (java.nio.channels.OverlappingFileLockException: null), and you become unable to open it again.

"Negative index in crash report handler (0/15)" is spammed to the debug log.

To reproduce

1. Create a new world.

2. Execute /worldborder center 50000000 50000000.
3. Execute /kill.
4. ❌ You are unable to respawn.
5. Attempt to go to title screen.
6. ❌ The game crashes, or the world becomes unable to be opened again.

Attachments

Comments 4

This does not happen in 1.17.1, though you are softlocked out of the game all the same.

Can confirm data corruption, my game didn't crash but it couldn't detect the world save anymore. Got the same errors as well.

Was able to repro

Suggested fix: the world border shouldn't be clamped to 30 million max in the first place, but rather the 32 bit limit, but with values above 30 (32?) million unsupported.

ampolive

slicedlime

Confirmed

Important

Commands, Crash

crash, world-border

21w39a, 21w40a, 21w41a, 21w42a, 21w43a, 21w44a, 1.18 Pre-release 1

1.18 Pre-release 2

Retrieved