How to fix your Garry’s Mod server from Crashing / Freezing
It happens to the best of us, servers will crash and freeze at the slightest issue gone wrong but it’s okay at Physgun we have tools to help you solve this issue quickly!
Identifying a Server Crash
Best way of identifying if your server hard crashed is when you see the following message below
This message simply only tells you that the server has crashed! The actual crash logs are above it or in our Physgun Crash Logs.
Locating Physgun Crash Logs
Only at Physgun will you be-able to find true crash logs that are helpful in diagnosing your issue.
You can find these logs by following these steps:
- Go to
Your Server - Click on the
File Manager - Click on the
physgun/folder - Click on the
crashes/folder
In that folder you will see .txt file(s) of your server crash logs. These will give you diagnostic help in finding out why your server is crashing.
An example of a Physgun Crash Log will look like such:
Sometimes the Lua Stack: will be empty and that is normal, if you’re not able to get any information out of the log please feel free to contact us in the Physgun Discord
Common crashes
Below we will list all the well known documented crashes, if you cannot find what you are looking for feel free to make a ticket!
Crash: Out of Memory: true (Ran out of RAM)
The message that occurs when your server initially crashes will only give one bit of information.
Below is an example of the server running out of memory, this can be read in the console.
When you see the flag Out of Memory: set to true that means your server has ran out of memory (RAM). This issue generally does not happen with Garry’s Mod servers but it can happen, this is usually due to an addon causing a major memory leak.
Crash: Infinite Loop
Infinite loops are not caught by Garry’s Mod however Physgun Utils will catch them for you preventing your server from freezing permanently.
The Physgun Crash Logs should tell you exactly what was detected as an infinite loop.
However if you wish to disable infinite loop detection follow the steps below:
- Go to
Your Server - Click on
File Manager - Open
physgun.json - Set
InfiniteLoopDetectiontofalse
Then you’re done, infinite loop detection has been disabled. Please note when disabling this option your server may freeze if an addon is causing trouble and it may require a restart to fix.