Skip to content

Concurrent modification exception in initExtras #235

@kaylendog

Description

@kaylendog

Concurrent modification of the hashmap in the server tick events lambda in KibeMod.initExtras() is causing server crashes on 1.10.1-BETA+1.20.

[21:26:52] [Server thread/ERROR]: Encountered an unexpected exception
java.util.ConcurrentModificationException: null
	at java.util.HashMap$HashIterator.nextNode(HashMap.java:1597) ~[?:?]
	at java.util.HashMap$EntryIterator.next(HashMap.java:1630) ~[?:?]
	at java.util.HashMap$EntryIterator.next(HashMap.java:1628) ~[?:?]
	at io.github.lucaargolo.kibe.KibeModKt.initExtras$lambda$23(KibeMod.kt:337) ~[kibe-1.10.1-BETA+1.20.jar:?]
	at net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents.lambda$static$2(ServerTickEvents.java:43) ~[fabric-lifecycle-events-v1-2.2.2+1802ada577-15099849194dcb7e.jar:?]
	at net.minecraft.server.MinecraftServer.handler$dca002$fabric-lifecycle-events-v1$onEndTick(MinecraftServer.java:7362) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:847) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:671) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:265) ~[server-intermediary.jar:?]
	at java.lang.Thread.run(Thread.java:840) ~[?:?]
[21:26:52] [Server thread/ERROR]: This crash report has been saved to: /home/container/./crash-reports/crash-2024-07-10_21.26.52-server.txt

The logs don't seem to have any other relevant information, but I can provide them if needed. I believe I'm only using the chunk loader and running the AOF7 pack.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions