mojira.dev
MC-242022

Game crashes when loading new chunks (Exception generating new chunk, caused by ArrayIndexOutOfBoundsException: Index 268435455 out of bounds for length 32)

I deleted some chunks from my world just as I did with pre-release 4 to reset them and save space. When I get close to where these chunks were, the game crashes no when it didn't before.

What I expected to happen was...:
The chunks should just load like they did in pre release 4. I commonly trim old chunks from my world using mca editor. this has always worked and I have never run into any issues besides the occasional ugly chunk border. With the new biome blending I'm fixing those spots in my world so that I no longer have the ugly borders.

What actually happened was...:
The game crashed.

Description: Exception in server tick loop

java.util.concurrent.CompletionException: z: Exception generating new chunk
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
	at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1159)
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
	at acx.b(SourceFile:58)
	at auk.g(SourceFile:91)
	at auk.a(SourceFile:146)
	at auk.run(SourceFile:102)
	at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
Caused by: z: Exception generating new chunk
	at acv.a(SourceFile:639)
	at com.mojang.datafixers.util.Either$Left.map(Either.java:38)
	at acv.a(SourceFile:621)
	at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150)
	... 11 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 268435455 out of bounds for length 32
	at cue.a(SourceFile:255)
	at cue.a(SourceFile:198)
	at cue.a(SourceFile:160)
	at cue.a(SourceFile:125)
	at cud.a(SourceFile:97)
	at cqb.e(SourceFile:87)
	at cqb.a(SourceFile:289)
	at acv.a(SourceFile:627)
	... 14 more

Linked issues

Attachments

Comments

migrated

Note: Trying this in the same world, but in pre release 4, the chunks generate and it does not crash.

migrated

Can confirm.
I have the same issue.

migrated

Confirmed needs a fix as my server keep crashing 

migrated

Can confirm.  Repeated same process for my world, receiving same error.

  • 1.17.1 world.

  • MCA Editor out some chunks

  • Backup "trimmed world"

  • Load 1.18-pre4 successfully.

  • Restore "trimmed world"

  • Unable to Load 1.18-pre5.

 

EDIT: pre6 resolves my issue.

Panda4994

Hello, would it be possible to add an affected world on this report? 🙂

migrated

I see this was marked as resolved. Would a zip of my affected world still be helpful?

Panda4994

In this case, actually yes 🙂
While the issue itself is fixed, there is still some open questions about how the scenario that triggered the issue came to be. It would be awesome if you had a version of an affected world from before and after opening it with the affected pre release.

migrated

Note: I will add a world download once I have it uploaded to a hosting site.

migrated

Panda4994

Community Consensus

Very Important

Crash

1.18 Pre-release 5

1.18 Pre-release 6

Retrieved