Reimnop / Discord4Fabric

A beautiful Discord bot client for Fabric
MIT License
37 stars 20 forks source link

[Bug] This error has been crashing my server for a long time, i did not realize that it was Discord4Fabric Causing this till now. (bug, of which sometimes crashes server) #69

Open NotFlow69 opened 1 year ago

NotFlow69 commented 1 year ago

Huge Bug, Which i recommend fixing as it rarely crashes servers. PLEASE FIX! @Reimnop

Error Below:

One of the EventListeners had an uncaught exception> java.lang.NullPointerException: Cannot invoke "net.minecraft.server.MinecraftServer.method_3739()" because "server" is null at eu.pb4.placeholders.api.PlaceholderContext.of(PlaceholderContext.java:73) ~[Placeholder-api-2.0.0-pre.4+1.19.3.jar:?] at eu.pb4.placeholders.api.PlaceholderContext.of(PlaceholderContext.java:69) ~[Placeholder-api-2.0.0-pre.4+1.19.3.jar:?] at me.reimnop.d4f.listeners.MinecraftEventListeners.lambda$init$27(MinecraftEventListeners.java:244) ~[Discord4Fabric-1.19.3-1.10.2.jar:?] at me.reimnop.d4f.events.DiscordMessageReceivedCallback.lambda$static$0(DiscordMessageReceivedCallback.java:11) ~[Discord4Fabric-1.19.3-1.10.2.jar:?] at me.reimnop.d4f.listeners.DiscordMessageListener.onMessageReceived(DiscordMessageListener.java:16) ~[Discord4Fabric-1.19.3-1.10.2.jar:?] at net.dv8tion.jda.api.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:361) ~[net_dv8tion_jda-5.0.0-alpha.12-f6fc9a3ea949c79b.jar:?] at net.dv8tion.jda.api.hooks.InterfacedEventManager.handle(InterfacedEventManager.java:96) ~[net_dv8tion_jda-5.0.0-alpha.12-f6fc9a3ea949c79b.jar:?] at net.dv8tion.jda.internal.hooks.EventManagerProxy.handleInternally(EventManagerProxy.java:88) ~[net_dv8tion_jda-5.0.0-alpha.12-f6fc9a3ea949c79b.jar:?] at net.dv8tion.jda.internal.hooks.EventManagerProxy.handle(EventManagerProxy.java:70) ~[net_dv8tion_jda-5.0.0-alpha.12-f6fc9a3ea949c79b.jar:?] at net.dv8tion.jda.internal.JDAImpl.handleEvent(JDAImpl.java:164) ~[net_dv8tion_jda-5.0.0-alpha.12-f6fc9a3ea949c79b.jar:?] at net.dv8tion.jda.internal.handle.MessageCreateHandler.handleInternally(MessageCreateHandler.java:127) ~[net_dv8tion_jda-5.0.0-alpha.12-f6fc9a3ea949c79b.jar:?] at net.dv8tion.jda.internal.handle.SocketHandler.handle(SocketHandler.java:36) ~[net_dv8tion_jda-5.0.0-alpha.12-f6fc9a3ea949c79b.jar:?] at net.dv8tion.jda.internal.requests.WebSocketClient.onDispatch(WebSocketClient.java:957) ~[net_dv8tion_jda-5.0.0-alpha.12-f6fc9a3ea949c79b.jar:?] at net.dv8tion.jda.internal.requests.WebSocketClient.onEvent(WebSocketClient.java:844) ~[net_dv8tion_jda-5.0.0-alpha.12-f6fc9a3ea949c79b.jar:?] at net.dv8tion.jda.internal.requests.WebSocketClient.handleEvent(WebSocketClient.java:822) ~[net_dv8tion_jda-5.0.0-alpha.12-f6fc9a3ea949c79b.jar:?] at net.dv8tion.jda.internal.requests.WebSocketClient.onBinaryMessage(WebSocketClient.java:996) ~[net_dv8tion_jda-5.0.0-alpha.12-f6fc9a3ea949c79b.jar:?] at com.neovisionaries.ws.client.ListenerManager.callOnBinaryMessage(ListenerManager.java:385) ~[com_neovisionaries_nv-websocket-client-2.14-34f0b46cffc3021.jar:?] at com.neovisionaries.ws.client.ReadingThread.callOnBinaryMessage(ReadingThread.java:276) ~[com_neovisionaries_nv-websocket-client-2.14-34f0b46cffc3021.jar:?] at com.neovisionaries.ws.client.ReadingThread.handleBinaryFrame(ReadingThread.java:996) ~[com_neovisionaries_nv-websocket-client-2.14-34f0b46cffc3021.jar:?] at com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:755) ~[com_neovisionaries_nv-websocket-client-2.14-34f0b46cffc3021.jar:?] at com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:108) ~[com_neovisionaries_nv-websocket-client-2.14-34f0b46cffc3021.jar:?] at com.neovisionaries.ws.client.ReadingThread.runMain(ReadingThread.java:64) ~[com_neovisionaries_nv-websocket-client-2.14-34f0b46cffc3021.jar:?] at com.neovisionaries.ws.client.WebSocketThread.run(WebSocketThread.java:45) ~[com_neovisionaries_nv-websocket-client-2.14-34f0b46cffc3021.jar:?]

Reimnop commented 1 year ago

Can't reproduce at the moment. It would be nice if you provide a mod list.

NotFlow69 commented 1 year ago

How do i provide a mod list?, (im new to github)

Reimnop commented 1 year ago

Just paste all your mods here, should be at the beginning of your log file.

NotFlow69 commented 1 year ago

Oh, you mean all the mods, that i currently have on my server?

How do you want the mods?, the link to the download or the .jar files?

Reimnop commented 1 year ago

I just need its names.

NotFlow69 commented 1 year ago

Alright, The Mods Are:

Page 1:

image

Page 2:

image

Page 3:

image

NotFlow69 commented 1 year ago

So what can i do to fix the error, is it possible to fix it on my end? or it can only be fixed by you?

Reimnop commented 1 year ago

Not sure.

NotFlow69 commented 1 year ago

um, i quite did not get it, how do i fix this error?

NotFlow69 commented 1 year ago

When Will You Fix The Error?

Reimnop commented 1 year ago

When I have the time to, and after I figure out what's causing it

NotFlow69 commented 1 year ago

Hi, this is just a note: this bug is still affecting the newest dev version and it is crashing servers badly, please fix it.