GabiJunkes / MultipleBedSpawn

A simple Minecraft plugin to allow players to choose which bed to respawn into.
GNU General Public License v3.0
9 stars 3 forks source link

[Bug] Server crashes even on different cores #21

Closed andryqx closed 9 months ago

andryqx commented 11 months ago

There's bug: if you're joining to server (previously dead), unauthed, and then press "respawn" button, server just crashes with this error: (even on different cores, i've tried mohist, magma, catserver. [13:32:12] [Spigot Watchdog Thread/ERROR] [Minecraft/]: --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH - 1.16.5-1132 (MC: 1.16.5) --- [13:32:12] [Spigot Watchdog Thread/ERROR] [Minecraft/]: The server has not responded for 10 seconds! Creating thread dump

[13:32:12] [Spigot Watchdog Thread/ERROR] [Minecraft/]: Server thread dump (Look for plugins here before reporting to Mohist!):

[13:32:12] [Spigot Watchdog Thread/ERROR] [Minecraft/]: Current Thread:Server thread [13:32:12] [Spigot Watchdog Thread/ERROR] [Minecraft/]: PID: 60 | Suspended:false | Native:false | State:RUNNABLE

[13:32:12] [Spigot Watchdog Thread/ERROR] [Minecraft/]: jdk.internal.reflect.GeneratedMethodAccessor46.invoke(Unknown Source) [13:32:12] [Spigot Watchdog Thread/ERROR] [Minecraft/]: me.gabrielfj.multiplebedspawn.listeners.RespawnMenuHandler$$Lambda$13291/0x0000000802f8a860.run(Unknown Source)

[13:32:12] [Spigot Watchdog Thread/ERROR] [Minecraft/]: --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH ---

[13:32:17] [Spigot Watchdog Thread/ERROR] [Minecraft/]: --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH - 1.16.5-1132 (MC: 1.16.5) --- [13:32:17] [Spigot Watchdog Thread/ERROR] [Minecraft/]: The server has not responded for 15 seconds! Creating thread dump

[13:32:17] [Spigot Watchdog Thread/ERROR] [Minecraft/]: Server thread dump (Look for plugins here before reporting to Mohist!):

[13:32:17] [Spigot Watchdog Thread/ERROR] [Minecraft/]: Current Thread:Server thread [13:32:17] [Spigot Watchdog Thread/ERROR] [Minecraft/]: PID: 60 | Suspended:false | Native:false | State:RUNNABLE

[13:32:17] [Spigot Watchdog Thread/ERROR] [Minecraft/]: jdk.internal.reflect.GeneratedMethodAccessor46.invoke(Unknown Source) [13:32:17] [Spigot Watchdog Thread/ERROR] [Minecraft/]: me.gabrielfj.multiplebedspawn.listeners.RespawnMenuHandler$$Lambda$13291/0x0000000802f8a860.run(Unknown Source)

[13:32:17] [Spigot Watchdog Thread/ERROR] [Minecraft/]: --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH ---

GabiJunkes commented 11 months ago

Is the server running on 1.16.5? What java version are you running? So to reproduce you would die, exit the server, then join click respawn and it will crash? Plus the server needs to have offline mode enabled right?

andryqx commented 11 months ago

Is the server running on 1.16.5? What java version are you running? So to reproduce you would die, exit the server, then join click respawn and it will crash? Plus the server needs to have offline mode enabled right?

I'm running java 17, it's no matter on which mode server is running, like, even when i'm tried online mode - server crashes. all you need is join to the game dead, and then press respawn button.

GabiJunkes commented 11 months ago

I cant reproduce. I am running java 17, paper 1.20.2 Build #249, minecraft 1.20.2, online or offline (tried both). I create a new server, joined it, /kill and title screen, respawn and nothing. Tried again with beds registered, /kill and title screen, respawn and nothing again. I need more information because I cant reproduce it.

andryqx commented 11 months ago

I cant reproduce. I am running java 17, paper 1.20.2 Build #249, minecraft 1.20.2, online or offline (tried both). I create a new server, joined it, /kill and title screen, respawn and nothing. Tried again with beds registered, /kill and title screen, respawn and nothing again. I need more information because I cant reproduce it.

Yes, i find out how reproduce that bug, you just have to alt + f4 game when you're in bed respawn menu after death

GabiJunkes commented 11 months ago

Still cant reproduce it. Tried on paper and spigot.

andryqx commented 11 months ago

Still cant reproduce it. Tried on paper and spigot.

Oh, i fixed that bug by new auth plugin, but, now, there's new bug, look, when you Alt+F4 game when you're invulnerable and invisible on respawn bed screen after dead, and login into the game again, you'll be invisible and invulnerable for others.

GabiJunkes commented 11 months ago

Good, well you found something here. I never thought about auth plugins, because I make a check when players joins to remove the invisibility and stuff, but other plugins might mess with this as well. I will beef up my system to account for that. I will have a fix in a couple of hours. Would you mind sharing the plugin that was giving you errors and the name of the new one, so its registered for other people?

GabiJunkes commented 11 months ago

V1.8 should fix it. I tested with 2 plugins, NexAuth and Authy.

andryqx commented 11 months ago

V1.8 should fix it. I tested with 2 plugins, NexAuth and Authy.

I can't launch 1.8v on java 17 :( (can, but plugin doesn't work well)

GabiJunkes commented 11 months ago

Whats your setup? I think you are running a Forge/Spigot hybrid right? Its not supported so I wont give priority but if I can reproduce I can try to solve it. Are you running 1.16.5?

andryqx commented 11 months ago

Whats your setup? I think you are running a Forge/Spigot hybrid right? Its not supported so I wont give priority but if I can reproduce I can try to solve it. Are you running 1.16.5?

I've tried it on Spigot and on Mohist. 1.16.5, i've changed plugin version in plugin.yml. 1.7.1 work well, but 1.8.. no

GabiJunkes commented 9 months ago

Resolved in #24