SRCDS does not create/generate dump files (i have - debug)
4 replies, posted
Hi
For 2 weeks now my servers have "randomly" crashed for no reason whatsoever (as far as I can see, no errors, nothing).
I am running on a windows server 2012 R2, the user launching the server have full administrative rights and it is running the servers on its own account so it is set as the owner of the folders as well.
The parameters I launch the server with are the following.
srcds.exe -console -game garrysmod +map my_map_v1 +maxplayers 32 +gamemode "mymode" -ip my_valid_ip_cause_the_server_works -port 27030 -debug -condump -condebug -con_log console
As far as I know (not thanks to valve) -debug should create a dump file in the root of the server but it does not in this case. The other ones are there to save the console log so that we can see if an error occurred, however no errors ever occur when the server crashes.
I am at a complete and utter loss. It happens every 8-14 hours.
I really need that dump file to tell me what is going on, if anything is going on.
Edit:
Removing addons is not an option, I'm working on the addon, so it needs fixing.
If you are using some sort of auto-restarter, are you sure it's crashing?
I had the same issue for a while but it turns out SRCDS was just freezing up for around 5-10 seconds, but that was enough for it to think it's crashed and restart.
I am using a bat script to launch the servers, so when the process crashes it reboots, if I close it I can choose to reboot it.
If it freezes and windows says it is not responding, it will not restart it and simply sit as an idle process.
So your theory is that windows closes and reboots the process before the dump file can be created?
<This is the bat script>
@echo off
cls
echo Protecting srcds from crashes...
echo If you want to close srcds, close the srcds window and type Y depending on your language followed by Enter.
title Server Watchdog
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game garrysmod +map my_map_v1 +maxplayers 32 +gamemode "mymode" -ip my_valid_ip_cause_the_server_works -port 27030 -debug -condump -condebug -con_log console
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds
Update, have tried without the bat script/restart method, and it still did not leave a dump file for us to look at.
[QUOTE=Olidan;51883283]Update, have tried without the bat script/restart method, and it still did not leave a dump file for us to look at.[/QUOTE]
I have not really seen a good fix for this, someone did mention that modifying the registry is a good fix for this: [url]https://github.com/ValveSoftware/Source-1-Games/issues/354[/url]
But I do not condone or take any consequence if you do follow this and BSOD or ruin your computer/server. ._.
[QUOTE=Mrkrabz;51873254]If you are using some sort of auto-restarter, are you sure it's crashing?
I had the same issue for a while but it turns out SRCDS was just freezing up for around 5-10 seconds, but that was enough for it to think it's crashed and restart.[/QUOTE]
As far as this goes, I know this issue quite well. I found that the best way to prevent this is to not scroll up in the console. And also if it tends to happen, hit backspace a few times, an addon or something within the memory caused the SRCDS to lock up and the hitting of the backspace will wake up the console and have it catch up.
Sorry, you need to Log In to post a reply to this thread.