Raised This Month: $12 Target: $400
 3% 

SetEntProp is crashing my server on occasion


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
switz213
Junior Member
Join Date: Jun 2015
Old 03-24-2017 , 00:32   SetEntProp is crashing my server on occasion
Reply With Quote #1

Code:
public Action Event_PlayerSpawn(Event event, const char[] name, bool dontBroadcast) {
    if (g_GameState == GameState_WarmupWaitingForPlayers) {
        int client = GetClientOfUserId(event.GetInt("userid"));
        if (IsValidClient(client) && !IsFakeClient(client)) {
            LogDebug("Try setting client %L to $16000", client);
            SetEntProp(client, Prop_Send, "m_iAccount", 16000);
            LogDebug("Set client %L to $16000", client);
        }
    }
}
For some reason, this SetEntProp call has been crashing my server on occasion for the past few weeks.

Has anyone seen this happen? It only seems to occur a few times out of hundreds of connections.

Edit: I had tried upgrading to the latest debug sourcemod and it's still happening on occasion.

Last edited by switz213; 03-24-2017 at 00:56.
switz213 is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 03-24-2017 , 07:28   Re: SetEntProp is crashing my server on occasion
Reply With Quote #2

That seems exceedingly unlikely. What evidence do you have about the cause of the crash?

What do you even mean by "latest debug" SourceMod?
Fyren is offline
switz213
Junior Member
Join Date: Jun 2015
Old 03-24-2017 , 20:59   Re: SetEntProp is crashing my server on occasion
Reply With Quote #3

Yeah it's definitely happening as a result of that line, but maybe coinciding with something else.

I run hundreds of matches a day and this happens a few times each day, always on the same line based on my logging.

Code:
Mar 24 21:45:44: L 03/24/2017 - 20:45:44: World triggered "Round_Start"
Mar 24 21:45:44: RoundFreezeEvent 2
Mar 24 21:45:51: PutClientInServer: no info_player_start on level
Mar 24 21:45:51: L 03/24/2017 - 20:45:51: [MM] Try setting client Name<5><STEAM_1:0:12345678><> to $16000
Mar 24 21:45:51: PreMinidumpCallback: updating dump comment
Mar 24 21:45:51: crash_20170324204522_1.dmp[34]: Uploading dump (out-of-process)
Mar 24 21:45:51: /tmp/dumps/crash_20170324204522_1.dmp
I don't have access to the dmp yet due to my host not allowing access to `/tmp`, but I'm trying to have them get me a hold of the dmps. Any clues?

Code:
Mar 25 01:59:37: sm version
Mar 25 01:59:37: SourceMod Version Information:
Mar 25 01:59:37: SourceMod Version: 1.9.0.6065
Mar 25 01:59:37: SourcePawn Engine: 1.9.0.6065, jit-x86 (build 1.9.0.6065)
Mar 25 01:59:37: SourcePawn API: v1 = 4, v2 = 12
Mar 25 01:59:37: Compiled on: Mar 14 2017 17:08:02
Mar 25 01:59:37: Built from: https://github.com/alliedmodders/sourcemod/commit/a5d364b
Mar 25 01:59:37: Build ID: 6065:a5d364b
Mar 25 01:59:37: http://www.sourcemod.net/

Last edited by switz213; 03-24-2017 at 21:00.
switz213 is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 03-25-2017 , 00:31   Re: SetEntProp is crashing my server on occasion
Reply With Quote #4

You can try running Accelerator to get crash dumps, but CS:GO has stripped binaries even on Linux.
Fyren is offline
pcmaster
AlliedModders Donor
Join Date: Sep 2009
Old 03-25-2017 , 09:11   Re: SetEntProp is crashing my server on occasion
Reply With Quote #5

Maybe try adding a small delay (like 100-200ms) in form of a timer before actually setting the value?
Could be that you run into a (rare) race condition.
__________________
Stopped hosting servers as of November 2018, no longer active around here.
pcmaster is offline
Reply


Thread Tools
Display Modes

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 16:36.


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