Open Subthy opened 2 years ago
Can confirm the same thing, I have a schedule to restart my server @ 5am and most of the times it crashes due to discord integration
[12Apr2022 05:01:55.017] [Discord Integration Launch Thread/INFO] [STDERR/]: [org.slf4j.impl.SimpleLogger:write:325]: [Discord Integration Launch Thread] INFO net.dv8tion.jda.api.JDA - Login Successful!
[12Apr2022 05:01:57.226] [modloading-worker-2/INFO] [STDERR/]: [de.erdbeerbaerlp.dcintegration.common.Discord:getChannel:300]: Failed to get channel with ID '12312312312313', falling back to default channel
[12Apr2022 05:01:57.227] [modloading-worker-2/ERROR] [net.minecraftforge.fml.javafmlmod.FMLModContainer/]: Exception caught during firing event: null
Index: 1
Listeners:
0: NORMAL
1: net.minecraftforge.eventbus.EventBus$$Lambda$2623/340029420@23ab1147
java.lang.ExceptionInInitializerError
at de.erdbeerbaerlp.dcintegration.forge.DiscordIntegration.serverSetup(DiscordIntegration.java:133)
at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247)
at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239)
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302)
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283)
at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:120)
at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:121)
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1640)
at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1632)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:172)
Caused by: java.lang.NullPointerException
at de.erdbeerbaerlp.dcintegration.common.storage.CommandRegistry.<clinit>(CommandRegistry.java:27)
... 13 more
[12Apr2022 05:01:57.229] [modloading-worker-2/ERROR] [net.minecraftforge.fml.javafmlmod.FMLModContainer/LOADING]: Caught exception during event FMLDedicatedServerSetupEvent dispatch for modid dcintegration
java.lang.ExceptionInInitializerError: null
at de.erdbeerbaerlp.dcintegration.forge.DiscordIntegration.serverSetup(DiscordIntegration.java:133) ~[dcintegration:2.3.5]
at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247) ~[eventbus-4.0.0.jar:?]
at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239) ~[eventbus-4.0.0.jar:?]
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-4.0.0.jar:?]
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-4.0.0.jar:?]
at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:120) ~[forge:36.2]
at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:121) ~[forge:?]
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1640) [?:1.8.0_261]
at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1632) [?:1.8.0_261]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_261]
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_261]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) [?:1.8.0_261]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:172) [?:1.8.0_261]
Caused by: java.lang.NullPointerException
at de.erdbeerbaerlp.dcintegration.common.storage.CommandRegistry.<clinit>(CommandRegistry.java:27) ~[dcintegration:2.3.5]
... 13 more
[12Apr2022 05:01:57.233] [main/FATAL] [net.minecraftforge.fml.ModLoader/LOADING]: Failed to complete lifecycle event SIDED_SETUP, 1 errors found
[12Apr2022 05:01:57.251] [main/FATAL] [net.minecraftforge.common.ForgeMod/]: Preparing crash report with UUID 34a89146-8d64-4faf-95fd-fb319789e948
[12Apr2022 05:01:57.252] [main/INFO] [STDOUT/]: [net.minecraft.crash.CrashReport:func_85057_a:196]: Negative index in crash report handler (16/18)
[12Apr2022 05:01:57.257] [main/FATAL] [net.minecraftforge.fml.server.ServerModLoader/]: Crash report saved to ./crash-reports/crash-2022-04-12_05.01.57-fml.txt
[12Apr2022 05:01:57.260] [main/FATAL] [net.minecraft.server.Main/]: Failed to start the minecraft server
net.minecraftforge.fml.LoadingFailedException: Loading errors encountered: [
Discord Integration (dcintegration) encountered an error during the sided_setup event phase
§7java.lang.ExceptionInInitializerError: null
]```
Can confirm the same thing, I have a schedule to restart my server @ 5am
I can confirm the same thing as well, where my server crashes half of the time it restarts - and somethings even during the day. I run multiple servers and the others don't use DiscordIntegration, which have been running smoothly for months. But the new server, on which I have installed DiscordIntegration, crashes on a daily basis.
There are two different types of crashes. The first being crashes where it seems that DiscordIntegration is at fault: crash 2022-08-07 17:43:21 crash 2022-08-08 20:07:18 crash 2022-08-09 15:11:50 crash 2022-08-10 17:54:56 crash 2022-08-11 08:52:52
And the second type of crash, where I get a Thread Dump and DiscordIntegration is a part of the threads being waited for: crash 2022-08-07 23:53:03
The only settings I have changed in the basic .toml
file is simply the bot ID and the channel ID.
Everything else is default settings.
Thank you for highlighting this issue @BigBoiSub and @Dinip for mentioning that you are experiencing the same errors.
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days
What happened?
What happened? Almost every single time my servers restart or when I start it, Discord Integration causes the server to crash, and I have to manually kill the server and start it back up and hope it doesn't crash again. This has been happening for a really long time now and it's getting frustrating. If my admins or me are offline, players are forced to wait until someone wakes up to kill the server and start it back up.
I'm not sure if this is my fault or not.
I re-opened this issue, as you merged it to 1.18, even though it's a 1.16.5 issue. I added a newer crash log from the same server that last one happened, so can you please look at it and answer, not just merge it and say nothing.
Thank you, -Sub
Game Version
1.16
What platform are you using?
Forge
Platform version
36.2.20
Config File
Crash report / Error log (if applicable)
Additional Information
No response