[Futurepack-1.12.2-26.3.417] Crash with RemoveQuee
Wugand opened this issue · 4 comments
as it turns out it the ArrayList#add, crashed because in the array öis t the array was null. As this should be impossiblle I will close this issue. (Also I can nothing do about it , java itself crashes.)
java.lang.NullPointerException: Ticking block entity
at java.util.ArrayList.ensureExplicitCapacity(Unknown Source)
at java.util.ArrayList.ensureCapacityInternal(Unknown Source)
at java.util.ArrayList.add(Unknown Source)
at futurepack.common.FPSelectorHelper$RemoveQuee.addRemoveAll(FPSelectorHelper.java:428)
at futurepack.common.FPSelectorHelper.removeIfPossible(FPSelectorHelper.java:220)
at futurepack.common.FPSelectorHelper.func_184376_a(FPSelectorHelper.java:241)
at net.minecraft.world.World.func_184138_a(World.java:431)
at net.minecraft.world.World.markAndNotifyBlock(World.java:375)
at net.minecraft.world.World.func_180501_a(World.java:360)
at net.minecraft.world.World.func_175656_a(World.java:424)
at futurepack.common.block.TileEntityWasserTurbine.updateTile(TileEntityWasserTurbine.java:42)
at futurepack.common.block.TileEntityModificationBase.doUpdate(TileEntityModificationBase.java:352)
at futurepack.common.block.TileEntityModificationBase.func_73660_a(TileEntityModificationBase.java:198)
at net.minecraft.world.World.func_72939_s(World.java:1832)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:613)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:767)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:397)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
at java.lang.Thread.run(Unknown Source)
I think this is caused by multithreading as #506 has similar code. Maybe some blocks of memory are not avilable yte and it crashes. Or the JVM optimised the syncronised away...