Skip to content

Leaving causes a massive lag spike and timeout for others #397

@epicpeet10

Description

@epicpeet10

Describe the bug
A clear and concise description of what the bug is.
leaving the server causes a huge lag spike for players and potentionally a timeout alive
To Reproduce
Steps to reproduce the behavior:

  1. Go to 'leave the server'

Expected behavior
A clear and concise description of what you expected to happen.
00:41:19] [Server thread/ERROR]: Could not pass event PlayerQuitEvent to eco v6.75.2
org.bukkit.event.EventException: null
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot-api-1.20.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot-api-1.20.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:600) ~[spigot-api-1.20.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:587) ~[spigot-api-1.20.4-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.players.PlayerList.remove(PlayerList.java:516) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4090-Spigot-b754dcc-38b1f49]
at net.minecraft.server.network.PlayerConnection.q(PlayerConnection.java:1724) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4090-Spigot-b754dcc-38b1f49]
at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1711) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4090-Spigot-b754dcc-38b1f49]
at net.minecraft.network.NetworkManager.p(NetworkManager.java:611) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4090-Spigot-b754dcc-38b1f49]
at net.minecraft.server.network.ServerConnection.c(ServerConnection.java:200) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4090-Spigot-b754dcc-38b1f49]
at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1399) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4090-Spigot-b754dcc-38b1f49]
at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:391) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4090-Spigot-b754dcc-38b1f49]
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1242) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4090-Spigot-b754dcc-38b1f49]
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1054) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4090-Spigot-b754dcc-38b1f49]
at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304) ~[spigot-1.20.4-R0.1-SNAPSHOT.jar:4090-Spigot-b754dcc-38b1f49]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.lang.IllegalAccessError: class com.willfp.eco.internal.spigot.proxy.v1_20_R3.common.packet.PacketInjectorListener tried to access protected field net.minecraft.server.network.ServerCommonPacketListenerImpl.c (com.willfp.eco.internal.spigot.proxy.v1_20_R3.common.packet.PacketInjectorListener is in unnamed module of loader org.bukkit.plugin.java.PluginClassLoader @457eed40; net.minecraft.server.network.ServerCommonPacketListenerImpl is in unnamed module of loader java.net.URLClassLoader @69d0a921)
at com.willfp.eco.internal.spigot.proxy.v1_20_R3.common.packet.PacketInjectorListener.onLeave(PacketInjectorListener.kt:34) ~[?:?]
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:580) ~[?:?]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-api-1.20.4-R0.1-SNAPSHOT.jar:?]
... 14 more
[00:41:19] [Craft Scheduler Thread - 13/WARN]: Unexpected token END OF FILE at position 0.
[00:41:19] [Craft Scheduler Thread - 13/WARN]: at org.json.simple.parser.JSONParser.parse(JSONParser.java:257)
[00:41:19] [Craft Scheduler Thread - 13/WARN]: at org.json.simple.parser.JSONParser.parse(JSONParser.java:92)
[00:41:19] [Craft Scheduler Thread - 13/WARN]: at me.f64.playtime.Main.writePlayer(Main.java:164)
[00:41:19] [Craft Scheduler Thread - 13/WARN]: at me.f64.playtime.Main.lambda$savePlayer$3(Main.java:150)
[00:41:19] [Craft Scheduler Thread - 13/WARN]: at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftTask.run(CraftTask.java:82)
[00:41:19] [Craft Scheduler Thread - 13/WARN]: at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54)
[00:41:19] [Craft Scheduler Thread - 13/WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
[00:41:19] [Craft Scheduler Thread - 13/WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
[00:41:19] [Craft Scheduler Thread - 13/WARN]: at java.base/java.lang.Thread.run(Thread.java:1583)

Server Information (please complete the following information):

  • Version: (output of /ver command)
  • Version of plugin and eco (/ver eco, /ver <plugin>)
    latest eco and plugins

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions