Structure Boxes

Structure Boxes

5.6k Downloads

Crashing server trying to check for updates

TomLewis opened this issue · 3 comments

commented

Noticed a crash last night, checking, its Structure boxes trying to check for an upadate, theres thousands of these errors.

2020-02-12 23:36:03 | [ERROR] --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH ---
2020-02-12 23:36:03 | [ERROR] The server has not responded for 10 seconds! Creating thread dump
2020-02-12 23:36:03 | [ERROR] ------------------------------
2020-02-12 23:36:03 | [ERROR] Server thread dump (Look for plugins here before reporting to Paper!):
2020-02-12 23:36:03 | [ERROR] ------------------------------
2020-02-12 23:36:03 | [ERROR] Current Thread: Server thread
2020-02-12 23:36:03 | [ERROR] PID: 20 | Suspended: false | Native: true | State: RUNNABLE
2020-02-12 23:36:03 | [ERROR] Stack:
2020-02-12 23:36:03 | [ERROR] [email protected]/java.net.PlainSocketImpl.socketConnect(Native Method)
2020-02-12 23:36:03 | [ERROR] [email protected]/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
2020-02-12 23:36:03 | [ERROR] [email protected]/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
2020-02-12 23:36:03 | [ERROR] [email protected]/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
2020-02-12 23:36:03 | [ERROR] [email protected]/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
2020-02-12 23:36:03 | [ERROR] [email protected]/java.net.Socket.connect(Socket.java:609)
2020-02-12 23:36:03 | [ERROR] [email protected]/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:285)
2020-02-12 23:36:03 | [ERROR] [email protected]/sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
2020-02-12 23:36:03 | [ERROR] [email protected]/sun.net.NetworkClient.doConnect(NetworkClient.java:182)
2020-02-12 23:36:03 | [ERROR] [email protected]/sun.net.www.http.HttpClient.openServer(HttpClient.java:474)
2020-02-12 23:36:03 | [ERROR] [email protected]/sun.net.www.http.HttpClient.openServer(HttpClient.java:569)
2020-02-12 23:36:03 | [ERROR] [email protected]/sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:265)
2020-02-12 23:36:03 | [ERROR] [email protected]/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:372)
2020-02-12 23:36:03 | [ERROR] [email protected]/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
2020-02-12 23:36:03 | [ERROR] [email protected]/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1187)
2020-02-12 23:36:03 | [ERROR] [email protected]/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081)
2020-02-12 23:36:03 | [ERROR] [email protected]/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
2020-02-12 23:36:03 | [ERROR] [email protected]/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1587)
2020-02-12 23:36:03 | [ERROR] [email protected]/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515)
2020-02-12 23:36:03 | [ERROR] [email protected]/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250)
2020-02-12 23:36:03 | [ERROR] io.github.eirikh1996.structureboxes.utils.UpdateChecker.getNewVersion(UpdateChecker.java:76)
2020-02-12 23:36:03 | [ERROR] io.github.eirikh1996.structureboxes.utils.UpdateChecker.onPlayerJoin(UpdateChecker.java:48)
2020-02-12 23:36:03 | [ERROR] com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor1171.execute(Unknown Source)
2020-02-12 23:36:03 | [ERROR] app//org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:70)
2020-02-12 23:36:03 | [ERROR] app//co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78)
2020-02-12 23:36:03 | [ERROR] app//org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
2020-02-12 23:36:03 | [ERROR] app//org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:513)
2020-02-12 23:36:03 | [ERROR] app//net.minecraft.server.v1_12_R1.PlayerList.onPlayerJoin(PlayerList.java:370)
2020-02-12 23:36:03 | [ERROR] app//net.minecraft.server.v1_12_R1.PlayerList.a(PlayerList.java:183)
2020-02-12 23:36:03 | [ERROR] app//net.minecraft.server.v1_12_R1.LoginListener.b(LoginListener.java:178)
2020-02-12 23:36:03 | [ERROR] app//net.minecraft.server.v1_12_R1.LoginListener.e(LoginListener.java:68)
2020-02-12 23:36:03 | [ERROR] app//net.minecraft.server.v1_12_R1.NetworkManager.a(NetworkManager.java:273)
2020-02-12 23:36:03 | [ERROR] app//net.minecraft.server.v1_12_R1.ServerConnection.c(ServerConnection.java:150)
2020-02-12 23:36:03 | [ERROR] app//net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:948)
2020-02-12 23:36:03 | [ERROR] app//net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:423)
2020-02-12 23:36:03 | [ERROR] app//net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:774)
2020-02-12 23:36:03 | [ERROR] app//net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:666)
2020-02-12 23:36:03 | [ERROR] [email protected]/java.lang.Thread.run(Thread.java:834)
2020-02-12 23:36:03 | [ERROR] ------------------------------
2020-02-12 23:36:03 | [ERROR] --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH ---
2020-02-12 23:36:03 | [ERROR] ------------------------------
commented

Very strange crashing issue. It shouldn't run in the main thread as the update checking task is asynchronous

commented

No idea! But it spammed that message about 1000 times then crashed the server.
¯_(ツ)_/¯

I've temp removed the plugin for now

commented

Seems like it happens when a player join, and PlayerJoinEvent, like most Bukkit events, are synchronous (fired in the main thread). I will see if making it run the checks asynchronously will fix the problem