CloudburstMC / Nukkit

Cloudburst Nukkit - Nuclear-Powered Minecraft: Bedrock Edition Server Software
https://cloudburstmc.org
GNU General Public License v3.0
1.21k stars 419 forks source link

build 83 CME chunk garbage collection #350

Open PhanaticD opened 6 years ago

PhanaticD commented 6 years ago
2018-8-27 20:28:31 [ALERT] java.util.ConcurrentModificationException
    at java.util.HashMap$HashIterator.nextNode(HashMap.java:1437)
    at java.util.HashMap$EntryIterator.next(HashMap.java:1471)
    at java.util.HashMap$EntryIterator.next(HashMap.java:1469)
    at cn.nukkit.level.format.anvil.Anvil.doGarbageCollection(Anvil.java:202)
    at cn.nukkit.level.Level.doChunkGarbageCollection(Level.java:2989)
    at cn.nukkit.Server.tick(Server.java:1132)
    at cn.nukkit.Server.tickProcessor(Server.java:857)
    at cn.nukkit.Server.start(Server.java:834)
    at cn.nukkit.Server.<init>(Server.java:517)
    at cn.nukkit.Nukkit.main(Nukkit.java:105)
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/62682209-build-83-cme-chunk-garbage-collection?utm_campaign=plugin&utm_content=tracker%2F80651332&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F80651332&utm_medium=issues&utm_source=github).
SupremeMortal commented 6 years ago

Likely a plugin calling garbage collection off the main thread.

SupremeMortal commented 6 years ago

I was able to reproduce this with a plugin accessing loadChunk and unloadChunk methods from another thread which FAWE most likely does. Looking into synchronising to stop the issue.