aadnk / ProtocolLib

Provides read and write access to the Minecraft protocol with Bukkit.
GNU General Public License v2.0
287 stars 92 forks source link

Failed to handle packet #66

Closed mjl1010 closed 9 years ago

mjl1010 commented 9 years ago

Hi, I use ProtocolLib-3.5.0-SNAPSHOT.jar (Build #269) and I experimented an error when I die:

[21:34:16 WARN]: Failed to handle packet for /xxx.xxx.xxx.xxx:53216 java.util.ConcurrentModificationException

  at java.util.HashMap$HashIterator.nextNode(HashMap.java:1429) ~[?:1.8.0_20]
  at java.util.HashMap$KeyIterator.next(HashMap.java:1453) ~[?:1.8.0_20]
  at net.minecraft.server.v1_7_R4.EntityTracker.track(EntityTracker.java:32) ~[spigot.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
  at net.minecraft.server.v1_7_R4.WorldManager.a(WorldManager.java:18) ~[spigot.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
  at net.minecraft.server.v1_7_R4.World.a(World.java:1010) ~[spigot.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
  at net.minecraft.server.v1_7_R4.WorldServer.a(WorldServer.java:800) ~[spigot.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
  at net.minecraft.server.v1_7_R4.World.addEntity(World.java:1003) ~[spigot.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
  at net.minecraft.server.v1_7_R4.World.addEntity(World.java:947) ~[spigot.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
  at net.minecraft.server.v1_7_R4.PlayerList.moveToWorld(PlayerList.java:530) ~[spigot.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
  at net.minecraft.server.v1_7_R4.PlayerList.moveToWorld(PlayerList.java:433) ~[spigot.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
  at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:1142) ~[spigot.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
  at net.minecraft.server.v1_7_R4.PacketPlayInClientCommand.a(SourceFile:50) ~[spigot.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
  at net.minecraft.server.v1_7_R4.PacketPlayInClientCommand.handle(SourceFile:8) ~[spigot.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
  at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:157) ~[spigot.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
  at net.minecraft.server.v1_7_R4.ServerConnection.c(SourceFile:134) [spigot.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
  at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:667) [spigot.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
  at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:258) [spigot.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
  at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:558) [spigot.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
  at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:469) [spigot.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
  at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]

[21:34:16 INFO]: mjl1010 lost connection: Internal server error

I use CraftBukkit 1.7.10, thanks for reading.

aadnk commented 9 years ago

This is caused by some other plugin accessing the Bukkit API (or Minecraft itself) from a wrong thread. I doubt this is due to ProtocolLib.

It's often difficult to determine which plugin is to blame, though. A plugin could detect these violations (like my own DetectCME), but it often only works in very specific cases.

If you can't find such a tool, I suggest simply disabling plugins until you no longer get this error. Then the last disabled plugin must be the culprit. You can also speed this up by disabling more than one plugin at a time.

mjl1010 commented 9 years ago

Thank you very much for your reply so precise, this error occurs because of the Residence plugin, I use the version of the plugin 3.0.0.0Dev.