TerraFirmaCraft

TerraFirmaCraft

2M Downloads

Rock Layer Index out of bounds Crash

alcatrazEscapee opened this issue ยท 0 comments

commented

Experienced at least three separate times by other people, but not reproducible. I have not reproduced it in dev.

  • Was thought to maybe have been fixed by fc4850b but still reproduces after.
Typical crash report
---- Minecraft Crash Report ----
// Hey, that tickles! Hehehe!
 
Time: 2023-11-03 13:09:41
Description: Exception ticking world
 
java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 1
	at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[?:?] {}
	at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) ~[?:?] {}
	at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266) ~[?:?] {}
	at java.util.Objects.checkIndex(Objects.java:359) ~[?:?] {re:mixin}
	at java.util.ArrayList.get(ArrayList.java:427) ~[?:?] {re:computing_frames}
	at net.dries007.tfc.world.chunkdata.ChunkRockDataCache.getLayerSkewX(ChunkRockDataCache.java:49) ~[%23206!/:?] {re:classloading}
	at net.dries007.tfc.world.chunkdata.RegionChunkDataGenerator.generateRock(RegionChunkDataGenerator.java:182) ~[%23206!/:?] {re:classloading}
	at net.dries007.tfc.world.chunkdata.RegionChunkDataGenerator.generateRock(RegionChunkDataGenerator.java:128) ~[%23206!/:?] {re:classloading}
	at net.dries007.tfc.world.chunkdata.RockData.getRock(RockData.java:47) ~[%23206!/:?] {re:classloading}
	at net.dries007.tfc.world.ChunkBaseBlockSource.getBaseBlock(ChunkBaseBlockSource.java:43) ~[%23206!/:?] {re:classloading}
	at net.dries007.tfc.world.ChunkNoiseFiller.calculateBlockStateAtNoise(ChunkNoiseFiller.java:689) ~[%23206!/:?] {re:classloading}
	at net.dries007.tfc.world.ChunkNoiseFiller.fillColumn(ChunkNoiseFiller.java:504) ~[%23206!/:?] {re:classloading}
	at net.dries007.tfc.world.ChunkNoiseFiller.fillFromNoise(ChunkNoiseFiller.java:349) ~[%23206!/:?] {re:classloading}
	at net.dries007.tfc.world.TFCChunkGenerator.lambda$fillFromNoise$18(TFCChunkGenerator.java:610) ~[%23206!/:?] {re:classloading}
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?] {}
	at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?] {}
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?] {}
	at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?] {}
	at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?] {}
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] {}
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] {}
 
 
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
 
-- Head --
Thread: Server thread
Stacktrace:
	at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[?:?] {}
	at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) ~[?:?] {}
	at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266) ~[?:?] {}
	at java.util.Objects.checkIndex(Objects.java:359) ~[?:?] {re:mixin}
	at java.util.ArrayList.get(ArrayList.java:427) ~[?:?] {re:computing_frames}
	at net.dries007.tfc.world.chunkdata.ChunkRockDataCache.getLayerSkewX(ChunkRockDataCache.java:49) ~[%23206!/:?] {re:classloading}
	at net.dries007.tfc.world.chunkdata.RegionChunkDataGenerator.generateRock(RegionChunkDataGenerator.java:182) ~[%23206!/:?] {re:classloading}
	at net.dries007.tfc.world.chunkdata.RegionChunkDataGenerator.generateRock(RegionChunkDataGenerator.java:128) ~[%23206!/:?] {re:classloading}
	at net.dries007.tfc.world.chunkdata.RockData.getRock(RockData.java:47) ~[%23206!/:?] {re:classloading}
	at net.dries007.tfc.world.ChunkBaseBlockSource.getBaseBlock(ChunkBaseBlockSource.java:43) ~[%23206!/:?] {re:classloading}
	at net.dries007.tfc.world.ChunkNoiseFiller.calculateBlockStateAtNoise(ChunkNoiseFiller.java:689) ~[%23206!/:?] {re:classloading}
	at net.dries007.tfc.world.ChunkNoiseFiller.fillColumn(ChunkNoiseFiller.java:504) ~[%23206!/:?] {re:classloading}
	at net.dries007.tfc.world.ChunkNoiseFiller.fillFromNoise(ChunkNoiseFiller.java:349) ~[%23206!/:?] {re:classloading}
	at net.dries007.tfc.world.TFCChunkGenerator.lambda$fillFromNoise$18(TFCChunkGenerator.java:610) ~[%23206!/:?] {re:classloading}
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?] {}
-- Affected level --
Details:
	All players: 1 total; [ServerPlayer['Dev'/55, l='ServerLevel[New World]', x=-102.36, y=111.04, z=532.31]]
	Chunk stats: 4951
	Level dimension: minecraft:overworld
	Level spawn location: World: (-64,73,-16), Section: (at 0,9,0 in -4,4,-1; chunk contains blocks -64,-64,-16 to -49,319,-1), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,-64,-512 to -1,319,-1)
	Level time: 52456 game time, 1345530 day time
	Level name: New World
	Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
	Level weather: Rain time: 1187 (now: false), thunder time: 103864 (now: false)
	Known server brands: forge
	Removed feature flags: 
	Level was modded: true
	Level storage version: 0x04ABD - Anvil
Stacktrace:
	at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:896) ~[forge-1.20.1-47.1.3_mapped_official_1.20.1-recomp.jar%23201!/:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:814) ~[forge-1.20.1-47.1.3_mapped_official_1.20.1-recomp.jar%23201!/:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.client.server.IntegratedServer.tickServer(IntegratedServer.java:89) ~[forge-1.20.1-47.1.3_mapped_official_1.20.1-recomp.jar%23201!/:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:661) ~[forge-1.20.1-47.1.3_mapped_official_1.20.1-recomp.jar%23201!/:?] {re:classloading,pl:accesstransformer:B}
	at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:251) ~[forge-1.20.1-47.1.3_mapped_official_1.20.1-recomp.jar%23201!/:?] {re:classloading,pl:accesstransformer:B}
	at java.lang.Thread.run(Thread.java:833) ~[?:?] {}
 
 
-- System Details --
Details:
	Minecraft Version: 1.20.1
	Minecraft Version ID: 1.20.1
	Operating System: Windows 10 (amd64) version 10.0
	Java Version: 17, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode, sharing), Oracle Corporation
	Memory: 785647104 bytes (749 MiB) / 4294967296 bytes (4096 MiB) up to 4294967296 bytes (4096 MiB)
	CPUs: 4
	Processor Vendor: GenuineIntel
	Processor Name: Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz
	Identifier: Intel64 Family 6 Model 158 Stepping 9
	Microarchitecture: Kaby Lake
	Frequency (GHz): 3.41
	Number of physical packages: 1
	Number of physical CPUs: 4
	Number of logical CPUs: 4
	Graphics card #0 name: NVIDIA GeForce GTX 1060 3GB
	Graphics card #0 vendor: NVIDIA (0x10de)
	Graphics card #0 VRAM (MB): 3072.00
	Graphics card #0 deviceId: 0x1c02
	Graphics card #0 versionInfo: DriverVersion=27.21.14.5751
	Memory slot #0 capacity (MB): 16384.00
	Memory slot #0 clockSpeed (GHz): 2.13
	Memory slot #0 type: DDR4
	Memory slot #1 capacity (MB): 16384.00
	Memory slot #1 clockSpeed (GHz): 2.13
	Memory slot #1 type: DDR4
	Virtual memory max (MB): 43485.00
	Virtual memory used (MB): 34748.62
	Swap memory total (MB): 10752.00
	Swap memory used (MB): 1045.18
	JVM Flags: 3 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xms4G -Xmx4G
	Server Running: true
	Player Count: 1 / 8; [ServerPlayer['Dev'/55, l='ServerLevel[New World]', x=-102.36, y=111.04, z=532.31]]
	Data Packs: vanilla, mod:forge, mod:tfc, mod:jade (incompatible), mod:patchouli (incompatible), mod:jei
	Enabled Feature Flags: minecraft:vanilla
	World Generation: Stable
	Type: Integrated Server (map_client.txt)
	Is Modded: Definitely; Client brand changed to 'forge'; Server brand changed to 'forge'
	Launched Version: MOD_DEV
	ModLauncher: 10.0.9+10.0.9+main.dcd20f30
	ModLauncher launch target: forgeclientuserdev
	ModLauncher naming: mcp
	ModLauncher services: 
		mixin-0.8.5.jar mixin PLUGINSERVICE 
		eventbus-6.0.5.jar eventbus PLUGINSERVICE 
		fmlloader-1.20.1-47.1.3.jar slf4jfixer PLUGINSERVICE 
		fmlloader-1.20.1-47.1.3.jar object_holder_definalize PLUGINSERVICE 
		fmlloader-1.20.1-47.1.3.jar runtime_enum_extender PLUGINSERVICE 
		fmlloader-1.20.1-47.1.3.jar capability_token_subclass PLUGINSERVICE 
		accesstransformers-8.0.4.jar accesstransformer PLUGINSERVICE 
		fmlloader-1.20.1-47.1.3.jar runtimedistcleaner PLUGINSERVICE 
		modlauncher-10.0.9.jar mixin TRANSFORMATIONSERVICE 
		modlauncher-10.0.9.jar fml TRANSFORMATIONSERVICE 
	FML Language Providers: 
		[email protected]
		lowcodefml@null
		javafml@null
	Mod List: 
		forge-1.20.1-47.1.3_mapped_official_1.20.1-recomp.|Minecraft                     |minecraft                     |1.20.1              |DONE      |Manifest: a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f
		                                                  |Forge                         |forge                         |47.1.3              |DONE      |Manifest: NOSIGNATURE
		main                                              |TerraFirmaCraft               |tfc                           |0.0NONE             |DONE      |Manifest: NOSIGNATURE
		jade-324717-4614153_mapped_official_1.20.1.jar    |Jade                          |jade                          |11.1.4              |DONE      |Manifest: NOSIGNATURE
		Patchouli-1.20.1-81-FORGE_mapped_official_1.20.1.j|Patchouli                     |patchouli                     |1.20.1-81-FORGE     |DONE      |Manifest: NOSIGNATURE
		jei-1.20.1-forge-15.2.0.21_mapped_official_1.20.1.|Just Enough Items             |jei                           |15.2.0.21           |DONE      |Manifest: NOSIGNATURE
	Crash Report UUID: cf0d600f-2367-4be7-8163-5afdb476f831
	FML: 47.1
	Forge: net.minecraftforge:47.1.3