Server is crashing often

My server is crashing about 2 times a day.
I’m running the server on Linux (Debian 7.8 wheezy)
Gamemode is TTT

The only thing I can find before the server is crashing is always something similar to this:



CBaseEntity::SetAbsOrigin( -nan -nan nan ): Ignoring unreasonable position.
Crazy physics on [166][prop_physics] [Ang:-nan,nan,180.000000] [Pos:-nan,-nan,nan] - removing


I really hope this can be fixed!

Are these at very specific times? (i.e. Every 3 hours)

Have you tried disabling your addons?

Use this: https://github.com/Kefta/Ragdoll-Remover It freezes the ragdolls(bodies), which are freaking out because of the physics engine.

I’ll try this out. Thanks! :slight_smile:

I installed the tool with this settings:



-- Config
local EchoFreeze	= true		-- Tell players when a body is frozen
local EchoRemove	= true		-- Tell players when a body is removed

local FreezeSpeed	= 5000		-- Velocity ragdoll is frozen at; this should always be less than RemoveSpeed
local RemoveSpeed	= 9000		-- Velocity ragdoll is removed at; this should always be greater than FreezeSpeed

local FreezeTime	= 1 		-- Time body is frozen for; value must be greater than or equal to 0.1
-- End config


My server still crashed. Everything I found is this:



prop_ragdoll[278]:SetAbsOrigin( -nan -nan nan ): Ignoring unreasonable position.
Crazy physics on [283][prop_physics] [Ang:-nan,nan,180.000000] [Pos:-nan,-nan,nan] - removing
player/leet.mdl (2) at 20.0 -2.8 37.0 in contact with player/leet.mdl (2) at -nan -nan -nan, crash. dist = -1, minq = 99999999999999997704951326524533662844684271992415000612999597473199345218078991130326129448151154688.000000
player/leet.mdl (2) at 20.0 -2.8 37.0 in contact with player/leet.mdl (2) at -nan -nan -nan, crash. dist = -1, minq = 99999999999999997704951326524533662844684271992415000612999597473199345218078991130326129448151154688.000000


Is there really nothing I can dO?

Sometimes got these too, but I know no fix.

Can one of the game developers or someone else tell me what exactly the message before the crash means?

The script does nothing about nan positions; some addon has to be doing this.

Is there allready an addon that can do this?
If not: I would kindly request someone to do this, because this issue really sucks :3
I would even pay for this addon to be made if the scripter want to. (maybe this is a little motivation to do this)

Maybe it’s a good idea to add an option to remove ragdolls/props if they are with nan positions, angles or velocities.

Did I understood it right?:
If a ragdoll is reaching nan positions, it is causing a crash on the server.
But if we could remove a ragdoll with nan positions before, the server won’t crash?

You could remove them ( even though it is done automatically afaik ), but there’s no guarantee that this will stop any chain reactions that would still result in a crash.

I think it’s worth a try.

[editline]12th August 2015[/editline]

@code_gs When can I exxpect to try the update?
Sorry for stressing you or so, but maybe you can understand that those crashes are really a pain for me and my players.

A bit late, but it’s added to the latest iteration: https://github.com/Kefta/Ragdoll-Remover

I only check for a NaN position since through all cases I’ve seen, the Angle is only NaN when the position is.

Better late than never! I had this issue all the time and still do but lets hope that this fixes it :slight_smile: