Jump to content

Server Crash Loop caused by Saving during Klaus Death


Kitty Cat Meow
  • Fixed

I've found a bizarre & very-specific crash which can essentially corrupt worlds and make them unplayable.

If a non-enraged Klaus dies at the same time that the world is saved, reloading that save (while no players are near Klaus) will cause the world to crash.

The crash seems to be caused by some code in the klaus stategraph treating its brain (a nil value in the aforementioned situation) like a table.

I tested this on the surface of a modless world that has Caves enabled.

 

Server log included. ♥

server_log.txt


Steps to Reproduce

• Spawn Klaus

• Teleport Klaus very far away from any players

• Kill Klaus & save the world simultaneously

• Attempt to re-load the save

 

console command to replicate:

local KLAUS = c_spawn("klaus") KLAUS.Transform:SetPosition(10000,0,10000) KLAUS.components.health:Kill() c_save()

 




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...