WolfyScript / CustomCrafting

Spigot based plugin to create your own custom Recipes & Items. Designed to be easy to use with in-game GUI and tons of configuration possibilities.
https://modrinth.com/plugin/customcrafting
GNU General Public License v3.0
113 stars 36 forks source link

Plugin is not properly shutting down its async tasks #222

Open BlackBaroness opened 1 year ago

BlackBaroness commented 1 year ago

What happened?

Just warning from server

How can the bug be reproduced?

-

Expected Behaviour?

-

Plugin version

CustomCrafting v4.16.3.2, WolfyUtilities v4.16.9.6

Server software

Purpur 1.19.2

Relevant log output

[16:50:58 ERROR]: Nag author: 'WolfyScript' of 'CustomCrafting' about the following: This plugin is not properly shutting down its async tasks when it is being shut down. This task may throw errors during the final shutdown logs and might not complete before process dies.
[16:50:58 ERROR]: Craft Scheduler Thread - 1 - CustomCrafting Stacktrace
[16:50:58 ERROR]:   java.base@17.0.4/sun.nio.ch.Net.connect0(Native Method)
[16:50:58 ERROR]:   java.base@17.0.4/sun.nio.ch.Net.connect(Net.java:579)
[16:50:58 ERROR]:   java.base@17.0.4/sun.nio.ch.Net.connect(Net.java:568)
[16:50:58 ERROR]:   java.base@17.0.4/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588)
[16:50:58 ERROR]:   java.base@17.0.4/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
[16:50:58 ERROR]:   java.base@17.0.4/java.net.Socket.connect(Socket.java:633)
[16:50:58 ERROR]:   java.base@17.0.4/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:304)
[16:50:58 ERROR]:   java.base@17.0.4/sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:174)
[16:50:58 ERROR]:   java.base@17.0.4/sun.net.NetworkClient.doConnect(NetworkClient.java:183)
[16:50:58 ERROR]:   java.base@17.0.4/sun.net.www.http.HttpClient.openServer(HttpClient.java:532)
[16:50:58 ERROR]:   java.base@17.0.4/sun.net.www.http.HttpClient.openServer(HttpClient.java:637)
[16:50:58 ERROR]:   java.base@17.0.4/sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:266)
[16:50:58 ERROR]:   java.base@17.0.4/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:380)
[16:50:58 ERROR]:   java.base@17.0.4/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:193)
[16:50:58 ERROR]:   java.base@17.0.4/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1242)
[16:50:58 ERROR]:   java.base@17.0.4/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128)
[16:50:58 ERROR]:   java.base@17.0.4/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:179)
[16:50:58 ERROR]:   java.base@17.0.4/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1665)
[16:50:58 ERROR]:   java.base@17.0.4/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589)
[16:50:58 ERROR]:   java.base@17.0.4/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
[16:50:58 ERROR]:   java.base@17.0.4/java.net.URL.openStream(URL.java:1161)
[16:50:58 ERROR]:   customcrafting-spigot-4.16.3.2.jar//me.wolfyscript.customcrafting.data.patreon.Patron.lambda$new$0(Patron.java:62)
[16:50:58 ERROR]:   customcrafting-spigot-4.16.3.2.jar//me.wolfyscript.customcrafting.data.patreon.Patron$$Lambda$6307/0x00000008018f7230.run(Unknown Source)
[16:50:58 ERROR]:   org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftTask.run(CraftTask.java:101)
[16:50:58 ERROR]:   org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
[16:50:58 ERROR]:   com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[16:50:58 ERROR]:   java.base@17.0.4/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[16:50:58 ERROR]:   java.base@17.0.4/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[16:50:58 ERROR]:   java.base@17.0.4/java.lang.Thread.run(Thread.java:833)

Submit issue