Any ideas on how to debug GSC caused crashes
-
Hi there,
I’m aware I made an older post around this issue but felt this belongs in a new thread. My sever crashes hourly, as a result of testing it’s obvious this is caused by poorly written gsc. Does anybody know how i can debug this to figure out where I’ve messed up in my gsc. I know from previous experience in C# that memory leaks and incorrect threading can cause these crashes too. Obviously I could rewrite my gsc but i doubt that’ll fix it as its my code is mostly the cause of the issue. Any ideas? -
The servers have a tendency to crash from time to time and it is something we are looking into.
-
Hi there,
I’m aware I made an older post around this issue but felt this belongs in a new thread. My sever crashes hourly, as a result of testing it’s obvious this is caused by poorly written gsc. Does anybody know how i can debug this to figure out where I’ve messed up in my gsc. I know from previous experience in C# that memory leaks and incorrect threading can cause these crashes too. Obviously I could rewrite my gsc but i doubt that’ll fix it as its my code is mostly the cause of the issue. Any ideas?ImVeryTwisted said in Any ideas on how to debug GSC caused crashes:
Hi there,
I’m aware I made an older post around this issue but felt this belongs in a new thread. My sever crashes hourly, as a result of testing it’s obvious this is caused by poorly written gsc. Does anybody know how i can debug this to figure out where I’ve messed up in my gsc. I know from previous experience in C# that memory leaks and incorrect threading can cause these crashes too. Obviously I could rewrite my gsc but i doubt that’ll fix it as its my code is mostly the cause of the issue. Any ideas?It's unlikely the GSC would cause a server to crash after multiple games. The game is very good about clearing things out on map rotations and restarts. If the gsc was the problem you'd likely see a crash every game
-
My other sever contains no menu and doesn't crash though
-
If your GSC works but causes crashes it's gonna be a bit hard to find who's the culprit. Look for threads or other parts of your scripts that loops, or anything else that might result with an overflow. Then try to remove/comment some out and see if it improves stability or not. That's the best you can do.
-
Building off of what Sass said, make sure that threads are terminated properly. If a thread is called on a player and that player leaves, that thread will continue until the game realizes what is happening and forcefully ends it. Those can cause some server problems. Make sure those types of threads end on disconnect.
-
A simple way would be removing all features and adding one by one back to figure out what feature causes the crash. Then you could focus on that one.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login