Raised This Month: $32 Target: $400
 8% 

Solved [CSGO] Server crashing when killing player (ForcePlayerSuicide, FakeCommand, etc.)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jjjohan
Junior Member
Join Date: Dec 2005
Location: Brisbane, Australia
Old 02-15-2017 , 02:49   [CSGO] Server crashing when killing player (ForcePlayerSuicide, FakeCommand, etc.)
Reply With Quote #1

Hello,

After beginning to set up a CSGO server after having CSS servers for some time I've noticed a consistent server crash on a number of occasions.

Basically, plugins that slay the player seem to crash the server.

Example crash log:
https://crash.limetech.org/d67pd42hjpwn

I've tried the latest stable SourceMod and MetaMod as well as the latest dev releases of Sourcemod and MetaMod.

I've also removed absolutely ALL plugins, restarted the server, and loaded a single plugin that kills the player via a command and the server will crash.

I honestly can't think figure it out at this stage - I've validated CSGO, I've tried multiple versions of SourceMod and MetaMod, I've ran with no other plugins loaded, what more am I missing? Surely it's not an OS thing? My CSS servers run fine, needless to say with the exact same plugins.

Example snippet of a plugin that crashes the server:

Code:
#include <sdktools>

public Plugin myinfo = 
{
	name = "Crash",
	author = "JJJohan",
	description = "Crashes the server!",
	version = "1.0",
	url = "https://www.jjjailbreak.net/"
};

public void OnPluginStart()
{	
	RegAdminCmd("sm_slayself", Command_SlaySelf, ADMFLAG_KICK);
}

public Action Command_SlaySelf(int client, int args)
{
	ForcePlayerSuicide(client);	
	return Plugin_Continue;
}
What's interesting to note, the crash does not happen when I'm the only player on the server. Only when there are others - even with bots.

OS is latest 64-bit Ubuntu Server install, dedicated server, Core i3 520, 16GB RAM..
Again, works fine on CSS I don't see how it's the OS or hardware.

Last edited by jjjohan; 02-16-2017 at 02:45.
jjjohan is offline
Send a message via MSN to jjjohan
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 02-15-2017 , 15:52   Re: [CSGO] Server crashing when killing player (ForcePlayerSuicide, FakeCommand, etc.
Reply With Quote #2

Why not just: sm_slay @me
__________________
Neuro Toxin is offline
jjjohan
Junior Member
Join Date: Dec 2005
Location: Brisbane, Australia
Old 02-16-2017 , 00:04   Re: [CSGO] Server crashing when killing player (ForcePlayerSuicide, FakeCommand, etc.
Reply With Quote #3

Slay crashes the server too.
jjjohan is offline
Send a message via MSN to jjjohan
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 02-16-2017 , 01:33   Re: [CSGO] Server crashing when killing player (ForcePlayerSuicide, FakeCommand, etc.
Reply With Quote #4

1. Install latest metamod and sourcemod
2. Run steamcmd update with -validate
__________________
Neuro Toxin is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 02-16-2017 , 02:26   Re: [CSGO] Server crashing when killing player (ForcePlayerSuicide, FakeCommand, etc.
Reply With Quote #5

Quote:
Originally Posted by Neuro Toxin View Post
1. Install latest metamod and sourcemod
2. Run steamcmd update with -validate
Quote:
Originally Posted by jjjohan View Post
I honestly can't think figure it out at this stage - I've validated CSGO, I've tried multiple versions of SourceMod and MetaMod, I've ran with no other plugins loaded, what more am I missing? Surely it's not an OS thing? My CSS servers run fine, needless to say with the exact same plugins.
__________________
sneaK is offline
jjjohan
Junior Member
Join Date: Dec 2005
Location: Brisbane, Australia
Old 02-16-2017 , 02:45   Re: [CSGO] Server crashing when killing player (ForcePlayerSuicide, FakeCommand, etc.
Reply With Quote #6

Resolved the issue.. It appears sv_forcepreload 1 causes the server to crash when slaying with Sourcemod.
jjjohan is offline
Send a message via MSN to jjjohan
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode