Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concurrent modification exception in initExtras #235

Open
kaylendog opened this issue Jul 10, 2024 · 0 comments
Open

Concurrent modification exception in initExtras #235

kaylendog opened this issue Jul 10, 2024 · 0 comments

Comments

@kaylendog
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant