Seems pumps cause ConcurrentModificationException
BlazingGamer opened this issue ยท 12 comments
Hello! Seems I found an issue...
I have 2 pumps in nether (maybe same chunk, maybe different, don't remember that). They both pump lava to tanks. When I go through portal to nether the game crashes with this error: http://codepad.org/u9h2fefI. I'm sure this is BC bug because before I put 2 pump - golden fp - tank constructions all worked fine. Also when I load that world after NetherPortal crash I get 1 more SAME crash, and then all seems working. Please fix or describe what do I do incorrectly!
Hi, can you tell us what version of BC you are using? It would also be helpful to know what other mods you are using (the easiest way for you to do this would be to copy-paste the last 100 or so lines from "latest.log" into gist)
Hello, I'm usin' BC 7.1.14 and here is mod list (took from Crash Report): http://codepad.org/iSiNl31v. Thanks in advance!
Also, if problem is with chunk loading, can RailCraft Anchor/BC Quarry/MFR Chunkloader fix this?
can you try it without fastcraft? this type of exception is usually caused by 2 different threads modifying the same arraylist (arraylists are not threadsafe)
most likely fastcraft (or another mod) is doing something with that list of TE's in the same tick as when the chunk gets unloaded
A chunk loader might make a difference- however if you can duplicate this in a creative world (mostly so you don't have to spend resources on testing different things) I would be interested if it does make a difference. Another thing to try is just retrying to make the bug- I'm quite interested in what the other thread is doing while it crashes. (That assumes it is caused by multiple threads locking up)
De obfuscated stack trace:
at Chunk.onChunkUnload()
at ChunkProviderServer.unloadQueuedChunks()
OnChunkUnload:
...
Iterator iterator = this.chunkTileEntityMap.values().iterator();
while (iterator.hasNext())
{
TileEntity tileentity = (TileEntity)iterator.next(); // ConcurrentModificationException
this.worldObj.func_147457_a(tileentity);
}
...
(These are my notes to help for later if I can)
Nope, still crashes after fixing lava... I think it's Redstone Engines but not sure.
Seems I found it, the problem were RedStone Engines (When I tested on creative I used Admin Engines, those are issue-3191-free). Will test with just using Energy Cell instead of Engines and then with Engines but W/Out FastCraft, then tell.