URGENT - ConcurrentModificationException error when /zh here
Oruss7 opened this issue ยท 17 comments
[15:05:08] [Server thread/INFO]: Oruss7 issued server command: /zh here
[15:05:11] [Server thread/ERROR]: Encountered an unexpected exception
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1429) ~[?:1.8.0_60]
at java.util.HashMap$KeyIterator.next(HashMap.java:1453) ~[?:1.8.0_60]
at net.minecraft.server.v1_10_R1.EntityTracker.updatePlayers(EntityTracker.java:176) ~[spigot-1.10.2.jar:git-Spigot-7745d45-02d704b]
at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:821) ~[spigot-1.10.2.jar:git-Spigot-7745d45-02d704b]
at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:399) ~[spigot-1.10.2.jar:git-Spigot-7745d45-02d704b]
at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:673) ~[spigot-1.10.2.jar:git-Spigot-7745d45-02d704b]
at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:572) [spigot-1.10.2.jar:git-Spigot-7745d45-02d704b]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_60]
[15:05:11] [Server thread/ERROR]: This crash report has been saved to: /home/a882013062922551229/29699/./crash-reports/crash-2016-08-21_15.05.11-server.txt
[15:05:11] [Server thread/INFO]: Stopping server
I thinks you use an shared hashmap between threads ^^
Sorry, I saw the /zh here command and the HashMap exception so I immediately thought that it occured inside ZHorse's code but it is actually 100% Spigot code here.
Did it happen more than once ? And since when do you use ZHorse ?
If it happens again tell me and I will open a ticket on spigot ;)
my spigot version:
CraftBukkit version git-Spigot-7745d45-02d704b (MC: 1.10.2) (Implementing API version 1.10.2-R0.1-SNAPSHOT) You are 32 version(s) behind
I can't use zhorse, this error occurs when player tape /zh here and the server crash 3 min after...
Ok if it happen everytime I'll open a ticket on spigot, but again I can't do anything about that from my own code :/
Of course you can open it, just tell me if details on how /zh here works are needed ;)
Please fix your plugin or tell me how reproduce bug without your plugin if it's a spigot bug.
See the spigot Jira issue.
Thanks !
Well, /zh here works as follow :
- Spawn a new horse at the target location
- Customize the new horse so it's exactly like the old one
- Copy the inventory of the old horse to the new one
- Remove the old horse
If you manage to reproduce this (use ZHorse's code), maybe the bug will happen again.
However you are the first ever to report this, and I talk frequently to several admins of servers running ZHorse :/
what can i do?
Both spigot and you can fix the problem.
This error crash my server. I can't use your plugin if this bug is not solved.
Spigot dev seems to think, it's a plugin isssue. You, a spigot issue.
This error only appears when many players are online. I can't reproduce it myself...
I can't reproduce it either and apparently ZHorse's code is not involved, so how could I fix it ?