Crash with Chute + Crafter placed via Schematicannon
jc776 opened this issue ยท 4 comments
I am playing the modpack Create Above and Beyond (version 1.1) which has create-mc1.16.5_v0.3.2f
In a Survival world, I built a machine, copied it to somewhere else with the Schematicannon, but then had a game crash on trying to insert items into it. I was able to replicate the crash in Creative:
I first built this machine which pulls from a chest with a (transparent) Chute and inputs into a 1x1 Mechanical Crafter. This is a modpack-specific recipe "Certus Quartz Crystal -> 2x Certus Quartz Seed". The recipe is specific to the Crafter, not a 'crafting table' recipe.
The original machine works OK. I then duplicated the machine with a Schematicannon.
The two blueprints I used are here: crystal_crafters.zip
The pictured machine is "crystal_crafter.nbt"
The original machine from a Survival world is "crystal_duper.nbt", which has the same Chest + Chute + Crafter.
As soon as I put the same input Certus Quartz into the chest, the game crashed with the following:
[13:19:46] [Server thread/FATAL] [ne.mi.co.ForgeMod/]: Preparing crash report with UUID 0854196e-23d4-4162-a665-45953e042918
[13:19:46] [Server thread/ERROR] [minecraft/MinecraftServer]: Encountered an unexpected exception
net.minecraft.crash.ReportedException: Ticking block entity
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:855) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:787) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:78) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:642) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:232) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222] {}
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657) ~[?:1.8.0_222] {}
at java.util.ArrayList.get(ArrayList.java:433) ~[?:1.8.0_222] {}
at java.util.Collections$SynchronizedList.get(Collections.java:2419) ~[?:1.8.0_222] {}
at com.simibubi.create.content.contraptions.components.crafter.ConnectedInputHandler$ConnectedInput.getItemHandler(ConnectedInputHandler.java:180) ~[create:mc1.16.5_v0.3.2f] {re:classloading}
at com.simibubi.create.content.contraptions.components.crafter.MechanicalCrafterTileEntity.lambda$new$0(MechanicalCrafterTileEntity.java:86) ~[create:mc1.16.5_v0.3.2f] {re:classloading}
at net.minecraftforge.common.util.LazyOptional.getValue(LazyOptional.java:122) ~[forge:?] {re:classloading}
at net.minecraftforge.common.util.LazyOptional.orElse(LazyOptional.java:254) ~[forge:?] {re:classloading}
at com.simibubi.create.content.logistics.block.chute.ChuteTileEntity.handleDownwardOutput(ChuteTileEntity.java:362) ~[create:mc1.16.5_v0.3.2f] {re:classloading}
at com.simibubi.create.content.logistics.block.chute.ChuteTileEntity.func_73660_a(ChuteTileEntity.java:159) ~[create:mc1.16.5_v0.3.2f] {re:classloading}
at net.minecraft.world.World.func_217391_K(World.java:491) ~[?:?] {re:mixin,pl:accesstransformer:B,xf:fml:advancedrocketry:coremodmethod,re:classloading,pl:accesstransformer:B,xf:fml:advancedrocketry:coremodmethod,pl:mixin:APP:kubejs-common.mixins.json:LevelMixin,pl:mixin:APP:flywheel.mixins.json:TileWorldHookMixin,pl:mixin:A}
at net.minecraft.world.server.ServerWorld.func_72835_b(ServerWorld.java:371) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:architects_palette.mixins.json:ServerWorldMixin,pl:mixin:APP:abnormals_core.mixins.json:ServerWorldMixin,pl:mixin:APP:endergetic.mixins.json:ServerWorldMixin,pl:mixin:A}
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:851) ~[?:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
The same crash happens on re-opening the Creative world - I haven't yet tried to re-open the Survival world. What is the best way to recover from these?
Crash report files:
Survival world: crash-2021-11-06_13.19.46-server.txt
Creative world: crash-2021-11-06_13.28.17-server.txt
Next entering Creative world: crash-2021-11-06_13.09.30-server.txt
Following Fixing Ticking TileEntity, I was able to work around (and access the world again) using the Forge setting in method '5'. Note that they heavily recommend method '4' (MCEdit, NBTExplorer) over '5'. Keep backups of the original save.
As recommended - after picking up the offending blocks, I quit and turned off the setting again straight away, as this setting can have other side effects. The Chute and Crafter then worked as expected after being manually replaced.