[BUG]: Crash
SrYthan opened this issue ยท 16 comments
Describe the bug
I don't know the exact reason, but apparently it's when unloading chunks
To Reproduce
just leaving the site with machines causes the crash
Expected behavior
may be caused by ghost chunk loading issue
Mekanism Version
9.10.27
Minecraft Version is this regarding?
1.7.10
What OS are you seeing the problem on?
Linux
Name of modpack if applicable
A Era do Futuro V3 TotalCraft
Version of said modpack if applicable
No response
Screenshots
No response
The crash report in folder ./crash-reports (both server and client logs)
crash-2023-05-10_12.50.29-server.txt
crash-2023-05-13_19.31.25-server.txt
Please provide the following other files
please provide the full crash log provided in ./crash-reports and the log in /logs, as per form described you to do
I installed the latest version to test the crash, and now my server doesn't open anymore, and even going back to the version I was using always causes the same crash when connecting the server.
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1469)
at java.util.HashMap$ValueIterator.next(HashMap.java:1498)
at mekanism.common.Mekanism.onChunkLoad(Mekanism.java:1686)
at cpw.mods.fml.common.eventhandler.ASMEventHandler_701_Mekanism_onChunkLoad_Load.invoke(.dynamic)
at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:168)
at net.minecraft.world.chunk.Chunk.func_76631_c(Chunk.java:1054)
at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:49)
at net.minecraftforge.common.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:15)
at net.minecraftforge.common.util.AsynchronousExecutor.skipQueue(AsynchronousExecutor.java:344)
at net.minecraftforge.common.util.AsynchronousExecutor.getSkipQueue(AsynchronousExecutor.java:302)
at net.minecraftforge.common.chunkio.ChunkIOExecutor.syncChunkLoad(ChunkIOExecutor.java:12)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:213)
at net.minecraft.world.gen.ChunkProviderServer.func_73158_c(ChunkProviderServer.java:186)
at net.minecraft.world.gen.ChunkProviderServer.func_73154_d(ChunkProviderServer.java:324)
at net.minecraft.world.World.func_72964_e(World.java:779)
at net.minecraft.world.World.func_147438_o(World.java:3190)
at powercrystals.minefactoryreloaded.net.CommonProxy.loadTicket(CommonProxy.java:38)
at powercrystals.minefactoryreloaded.net.CommonProxy.ticketsLoaded(CommonProxy.java:54)
at net.minecraftforge.common.ForgeChunkManager.loadWorld(ForgeChunkManager.java:542)
at net.minecraftforge.common.ForgeInternalHandler.onDimensionLoad(ForgeInternalHandler.java:64)
at cpw.mods.fml.common.eventhandler.ASMEventHandler_13_ForgeInternalHandler_onDimensionLoad_Load.invoke(.dynamic)
at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:168)
at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:444)
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:336)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:641)
at java.lang.Thread.run(Thread.java:750)
closing due to not following the template and not responding about requested files and not reproducable
I edited the Issue and put the files you requested, sorry for the misunderstanding
can we get the world file? also join our discord server as this is a very unusual issue, i will make a special build for you that might allow you to boot up the server again but this is a modpack sepcific issue and you need to find the mod that is doing shit when mek is doing shit
you also have alot of other errors, aswell as using gtnh which isnt tested against mek and running some form of kcauldron/thermos/crucible with plugins. run the world in singleplayer, if its not crashing, close the issue. as its nothing we can do at that point
Sorry for the delay in replying, gmail didn't even notify me that they replied, well I managed to solve it on my own, I downloaded the src from mek ce and edited the part that caused the error when connecting, in this case I removed the verification of the TileEntity TileEntityElectricBlock
This solved it and I managed to connect the server, right after I put the last version again and until then the error occurs a few times but the server manages to connect again without problem.
I am grateful for the intention to help me, the only error I get is this one from the onChunkLoad method that occurs sometimes, but I believe it is due to the 1.7.10 bug about GhostChunkLoading and that ends up causing this crash.
@SubscribeEvent
public synchronized void onChunkLoad(ChunkEvent.Load event)
{
if(event.getChunk() != null && !event.world.isRemote)
{
//Map copy = (Map)((HashMap)event.getChunk().chunkTileEntityMap).clone();
for(Iterator iter = /*copy*/event.getChunk().chunkTileEntityMap.values().iterator(); iter.hasNext();)
{
Object obj = iter.next();
if(obj instanceof TileEntity)
{
TileEntity tileEntity = (TileEntity)obj;
//if(tileEntity instanceof TileEntityElectricBlock && MekanismUtils.useIC2())
//{
// ((TileEntityElectricBlock)tileEntity).register();
//}
//else if(tileEntity instanceof IChunkLoadHandler)
//{
// ((IChunkLoadHandler)tileEntity).onChunkLoad();
//}
}
}
}
}
Please try see if the crash still occurs with the experimental release in #141
@SrYthan Any updates?
@DrParadox7 #141 I had the same problem and the crash doesn't happen again after I use this version
fixed by #141