Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ConcurrentModificationException in World.loadedEntityList

Featured Replies

Posted

Hi guys,

 

I've had some users report crashes when using Millénaire with Forge with error logs like this:

 

---- Minecraft Crash Report ----
// I bet Cylons wouldn't have this problem.

Time: 9/3/12 11:48 PM
Description: Exception in server tick loop

java.util.ConcurrentModificationException
    at java.util.AbstractList$Itr.checkForComodification(Unknown Source)
    at java.util.AbstractList$Itr.next(Unknown Source)
    at java.util.AbstractCollection.removeAll(Unknown Source)
    at up.h(World.java:1820)
    at gr.h(WorldServer.java:437)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:616)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:547)
    at axv.p(IntegratedServer.java:102)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:453)
    at ep.run(SourceFile:539)

Relevant Details:
- Minecraft Version: 1.3.2
- Operating System: Windows 7 (amd64) version 6.1
- Java Version: 1.6.0_30, Sun Microsystems Inc.
- Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
- Memory: 110421280 bytes (105 MB) / 527892480 bytes (503 MB) up to 954466304 bytes (910 MB)
- JVM Flags: 2 total; -Xms512m -Xmx1024m
- Is Modded: Definitely; 'forge,fml'
- Profiler Position: N/A (disabled)
- Player Count: 1 / 8; [gu['clownfish'/87, l='Clownfish Daddy', x=-275.28, y=68.25, z=382.80]]
- World Clownfish Daddy Entities: 0 total; []
- World Clownfish Daddy Players: 0 total; []
- World Clownfish Daddy Chunk Stats: ServerChunkCache: 0 Drop: 0
- Type: Integrated Server

 

This appears to happen when a loaded entity is removed from World.loadedEntityList. It's not clear from the reports whether this is caused by Millénaire or by Forge itself, though based on the trace it doesn't involve my code directly. Anybody has any idea as to the cause of this? I've tried reproducing it without success.

 

Thanks

 

K.

Hi Kinniken!  Me again.. don't know why I'm obsessed :)

 

This thread http://www.minecraftforge.net/forum/index.php?topic=1504.0 got me thinking maybe there was some correlation between this and the tapestries/statues/carvings acting up and/or the disappearing raiding villagers.

 

I haven't been able to reliably replicate the crash, but I did get one that was almost the same but a little different in case that's any help.

 

2012-09-07 23:56:41 [iNFO] [sTDERR] java.util.ConcurrentModificationException

2012-09-07 23:56:41 [iNFO] [sTDERR] at java.util.HashMap$HashIterator.nextEntry(Unknown Source)

2012-09-07 23:56:41 [iNFO] [sTDERR] at java.util.HashMap$KeyIterator.next(Unknown Source)

2012-09-07 23:56:41 [iNFO] [sTDERR] at gm.a(EntityTracker.java:190)

2012-09-07 23:56:41 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:618)

I'm fixing the stupid villagers.  http://www.minecraftforum.net/topic/1588460-

Typically this is caused by you adding a entity to the world in the wrong thread.

Check your tick events or anywhere where you spawn an entity in the world, or remove it.

You're probably on the client thread, dealing with the server world.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.