Survival-Games icon indicating copy to clipboard operation
Survival-Games copied to clipboard

Freeze on crash instead of restart.

Open columb opened this issue 11 years ago • 15 comments

SurvivalGames prevents server from restart on crash. 12:52:09 [INFO] [SurvivalGames] Disabling SurvivalGames v0.5.8

columb avatar May 11 '13 09:05 columb

Make sure you are running the right Bukkit, Vault, WorldEdit version, also use http://pastebin.com/ to send us the whole 'server.log'. When does this happen? What other plugins are you using?

DerpgonCz avatar May 11 '13 09:05 DerpgonCz

Bukkit(spigot) is 1.5.2, WorldEdit with 1.5.2 support and Vault isn't outdated yet. Server log size is about ~100mb and there is no need to share it. It's looks like it's keep crashing because HungerPlusPlus but it's happens about 0-1 times a day. This isn't a issue at all for me because server restart positive effect server perfomance. I even have to restart server like every ~16 hours in order to keep it lag free. The issue is that SurvivalGames can't shutdown itself properly on crash.

columb avatar May 11 '13 12:05 columb

Basically, when server crashes, SG fails to properly disable?

DerpgonCz avatar May 11 '13 13:05 DerpgonCz

This isn't really a issue with SG, if the servers crashed its not like I have control any more over whats happening. My guess is its not able to rollback the blocks since the main thread is dead.

Double0negative avatar May 11 '13 13:05 Double0negative

@DragonCzz Yeap! @Double0negative After force stop (ctrl+c) maps isn't damaged.

columb avatar May 11 '13 13:05 columb

So the maps are resetting correctly? Would it be possible to get a thread dump?

Double0negative avatar May 11 '13 20:05 Double0negative

@Double0negative Here we go. http://paste.ubuntu.com/5657545/

columb avatar May 12 '13 10:05 columb

What version are you running? Your line numbers don’t match up with the current code.

Double0negative avatar May 12 '13 16:05 Double0negative

@Double0negative Can't remember, sorry. What was the latest version for 6 May 6.28 PM UTC+4? http://ci.drtshock.com/job/SurvivalGames/changes You should also add build number from jenkins into your version. Or shoul I update SG to latest build and wait for crash again?

columb avatar May 12 '13 16:05 columb

It would help, the line number is occurring outside of any current methods so its not much help.

Double0negative avatar May 12 '13 19:05 Double0negative

@Double0negative Build 24 http://paste.ubuntu.com/5660649/

columb avatar May 13 '13 08:05 columb

Ok so its deadlocking on

p.teleport(SettingsManager.getInstance().getLobbySpawn());

which im assuming its because the player can't be teleported since the main thread is dead. Not sure what I can do about that.

Double0negative avatar May 13 '13 18:05 Double0negative

Detect that main thread is dead and cancel anything to allow server restart properly? What happens when server force stops?

columb avatar May 15 '13 15:05 columb

Its not as simple as just detecting that the main thread is dead, besides, the server has already crashed, the behaviour afterwords is unpredictable to begin with. if you really want to shut the server down on crash, use this https://gist.github.com/Double0negative/5594808

Double0negative avatar May 16 '13 20:05 Double0negative

http://pastebin.com/YUs6GvK5

columb avatar May 25 '13 19:05 columb