cs:go server crashes

All other Source.Python topics and issues.
edcolmar
Junior Member
Posts: 21
Joined: Tue Oct 15, 2013 10:59 pm

cs:go server crashes

Postby edcolmar » Wed Jan 01, 2014 6:44 pm

Hey Guys.

First of all, thanks everyone for all the help the past few weeks. I really appreciate it, and I would like to send you all some bitcoin as a thank you. Post your bitcoin wallet address or PM me with it.

I am getting some csgo server crashes fairly regularly, which I don't think have anything to do with SP. But since I know you guys are familiar with the setup I figured I would ask here.

Is this a configuration issue? Any hints for me?

debug.log is in this pastebin (too long to include in the thread itself):

http://pastebin.com/EJfpvhnM
edcolmar
Junior Member
Posts: 21
Joined: Tue Oct 15, 2013 10:59 pm

Postby edcolmar » Wed Jan 01, 2014 7:49 pm

More info. This is the console output prior to crash:

terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct null not valid
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Wed Jan 01, 2014 8:07 pm

Due to that line I think it has something to do with say commands, but I can't tell you more.

Code: Select all

#12 0xe4fe05c5 in SayConCommand: :D ispatch(CCommand const&) () from /home/admin/csgoserver/csgo/addons/source-python/bin/core.so
Try to reproduce the crash and then post the code.
edcolmar
Junior Member
Posts: 21
Joined: Tue Oct 15, 2013 10:59 pm

Postby edcolmar » Thu Jan 02, 2014 4:11 am

It crashes over and over, like every 5-7 minutes. The debug.log looks roughly the same each time.
Omega_K2
Senior Member
Posts: 227
Joined: Sat Jul 07, 2012 3:05 am
Location: Europe
Contact:

Postby Omega_K2 » Thu Jan 02, 2014 6:30 am

edcolmar wrote:It crashes over and over, like every 5-7 minutes. The debug.log looks roughly the same each time.


Any SP plugins running that use commands?
Libraries: k2tools
Plugins (any): GSRPG (soon) | Pretty Status List | MySQLAds (soon)
Plugins (game-specific): None atm

If you happen to find a bug or need help, either post in the release threads or contact me in IRC gamesurge.net:6667 / #sourcepython
edcolmar
Junior Member
Posts: 21
Joined: Tue Oct 15, 2013 10:59 pm

Postby edcolmar » Thu Jan 02, 2014 5:15 pm

There are a couple player commands that seem to be working properly like:

Syntax: Select all

@SayCommand('/rank')
def balance(playerinfo, command, unknown):

steamid = playerinfo.get_networkid_string()
steam64 = convertSteamIDToCommunityID(steamid)
print("steam64: %s" % steam64)

rank_msg = leetcoin_client.getPlayerRank(steam64)

print(rank_msg)

i = index_from_playerinfo(playerinfo)
m = HintText(index=i, chat=1, message=rank_msg)
m.send(i)



and there is a small kick function, using engine.server_command:

Syntax: Select all

def doKick(userid, message):
try:
engine.server_command('kickid %s %s;' % (int(userid), message))
except:
print("[1337] KICK FAILURE for user: %s" %userid)
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Thu Jan 02, 2014 6:09 pm

They may seem to work properly, but please make sure that they don't cause the crashes by disabling them for now.
edcolmar
Junior Member
Posts: 21
Joined: Tue Oct 15, 2013 10:59 pm

Postby edcolmar » Sat Jan 04, 2014 1:10 am

I disabled them, still crashing.

Also, apparently the server crashes 100% of the time when someone dies from jumping.

./srcds_run: line 318: 30583 Aborted (core dumped) $HL_CMD
warning: Can't read pathname for load map: Input/output error.
email debug.log to linux@valvesoftware.com
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Sat Jan 04, 2014 1:39 pm

Does it crash without SP being loaded? If yes, I can't really help you. Otherwise we still have to narrow it down to some functions we can check.
Omega_K2
Senior Member
Posts: 227
Joined: Sat Jul 07, 2012 3:05 am
Location: Europe
Contact:

Postby Omega_K2 » Tue Jan 07, 2014 1:31 am

edcolmar wrote:I disabled them, still crashing.

Also, apparently the server crashes 100% of the time when someone dies from jumping.

./srcds_run: line 318: 30583 Aborted (core dumped) $HL_CMD
warning: Can't read pathname for load map: Input/output error.
email debug.log to linux@valvesoftware.com


Do you use player_jump or player_death events somewhere in your script(s)?
Libraries: k2tools

Plugins (any): GSRPG (soon) | Pretty Status List | MySQLAds (soon)

Plugins (game-specific): None atm



If you happen to find a bug or need help, either post in the release threads or contact me in IRC gamesurge.net:6667 / #sourcepython
edcolmar
Junior Member
Posts: 21
Joined: Tue Oct 15, 2013 10:59 pm

Postby edcolmar » Thu Jan 16, 2014 12:03 am

Player jump is unused, but player death is used.

I did some testing today. The server runs without crashing when sourcepython is not loaded.

When sourcepython is running, even without my script loaded, it is unstable.

Debug log here:

http://pastebin.com/9MHYPZFd
User avatar
Ayuto
Project Leader
Posts: 2195
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Thu Jan 16, 2014 6:40 pm

Do you run the latest revision of our repository or the last official build?
edcolmar
Junior Member
Posts: 21
Joined: Tue Oct 15, 2013 10:59 pm

Postby edcolmar » Fri Jan 17, 2014 10:50 pm

If I recall correctly, it was the latest official build. I believe I had problems compiling it from the repo.
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Sat Jan 18, 2014 1:23 am

Which version were you trying to compile for? Linux/Windows? OrangeBox/CSGO?

Satoon

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 53 guests