Mojira Archive
MC-277590

Out of world pos in entity/block entity data crashes server

A non-op modified creative mode client, or in the example cases an operator with command access can crash the server by placing block entities or entities with out-of-world positions:
1.

/summon minecraft:allay ~ ~ ~ {Brain:{memories:{"minecraft:liked_noteblock":{value:{dimension:"minecraft:overworld",pos:[I;2147483647,100,-2147483647]}}}}}

2. This permanently breaks the world, only place this in a new testing world

/setblock ~ ~ ~ minecraft:sculk_catalyst{cursors:[{charge:300,decay_delay:1,facings:[],pos:[I;2147483646,-61,2147483646],update_delay:1}]} replace

3.

/summon minecraft:bee ~ ~ ~ {hive_pos:[I;2147483647,255,2147483647],HasNectar:1b}

Same as MC-268070: The stacktraces will all come from attempts at chunk generation, ending in the same place in Aquifer (1.21.2-pre3 stacktrace):

Error executing task on Chunk source main thread executor for minecraft:overworld
z: Exception generating new chunk
	at arm.a(SourceFile:681)
	at brx.d(SourceFile:164)
	at ase$b.d(SourceFile:596)
	at brx.B(SourceFile:138)
	at ase$b.B(SourceFile:605)
	at brx.b(SourceFile:147)
	at ase$b.b(SourceFile:569)
	at ase.a(SourceFile:151)
	at dhh.a(SourceFile:208)
	at dhk.a(SourceFile:151)
	at dhh.d(SourceFile:202)
	at dhh.a_(SourceFile:377)
	at cjd.a(SourceFile:132)
	at cjd.b(SourceFile:114)
	at cam.a(SourceFile:18)
	at cbl$1.trigger(SourceFile:53)
	at bzj.e(SourceFile:20)
	at bxh.d(SourceFile:533)
	at bxh.a(SourceFile:492)
	at cjc.a(SourceFile:266)
	at bwh.fu(SourceFile:816)
	at bwf.d_(SourceFile:2859)
	at bwh.d_(SourceFile:571)
	at cjc.d_(SourceFile:278)
	at bwf.h(SourceFile:2595)
	at bwh.h(SourceFile:371)
	at cjc.h(SourceFile:293)
	at ash.a(SourceFile:761)
	at dhh.a(SourceFile:501)
	at ash.a(SourceFile:406)
	at ecd.a(SourceFile:54)
	at ash.a(SourceFile:376)
	at net.minecraft.server.MinecraftServer.c(SourceFile:1069)
	at net.minecraft.server.MinecraftServer.a(SourceFile:953)
	at hfv.a(SourceFile:114)
	at net.minecraft.server.MinecraftServer.y(SourceFile:713)
	at net.minecraft.server.MinecraftServer.a(SourceFile:292)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 268435757 out of bounds for length 315
	at edb$c.a(SourceFile:527)
	at edb$c.a(SourceFile:304)
	at edt.a(SourceFile:193)
	at emx.calculate(SourceFile:14)
	at edt.e(SourceFile:225)
	at eds.a(SourceFile:215)
	at eds.a(SourceFile:124)
	at dzq.c(SourceFile:583)
	at eoj.a(SourceFile:176)
	at eqd.a(SourceFile:21)
	at eoj.b(SourceFile:239)
	at eoj.a(SourceFile:160)
	at dzq.a(SourceFile:517)
	at dzq.a(SourceFile:470)
	at java.base/java.lang.Iterable.forEach(Iterable.java:75)
	at dzq.a(SourceFile:452)
	at eas.b(SourceFile:37)
	at eat.a(SourceFile:33)
	at arm.a(SourceFile:666)
	at ary.a(SourceFile:98)
	at arj.a(SourceFile:148)
	at arj.a(SourceFile:125)
	at arj.d(SourceFile:76)
	at arj.a(SourceFile:61)
	at arm.b(SourceFile:700)
	at aro.a(SourceFile:88)
	at bsd.a(SourceFile:21)
	at ae.a(SourceFile:292)
	at brw.f(SourceFile:50)
	at brw.run(SourceFile:62)
	at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1423)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)

Fixed

[Mod] Nassim Jahnke

2024-10-13, 02:51 PM

2024-10-16, 12:01 PM

2024-10-16, 12:01 PM

0

1

Plausible

Important

Platform

Crash

1.21.1, 1.21.2 Pre-Release 3, 1.21.2 Pre-Release 4

1.21.2 Pre-Release 5