Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Server Hosting Support
  3. Any ideas on how to debug GSC caused crashes

Any ideas on how to debug GSC caused crashes

Scheduled Pinned Locked Moved BO2 Server Hosting Support
7 Posts 5 Posters 330 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ImVeryTwistedundefined Offline
    ImVeryTwistedundefined Offline
    ImVeryTwisted
    wrote on last edited by
    #1

    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?

    Matrixundefined 1 Reply Last reply
    0
    • homuraundefined Offline
      homuraundefined Offline
      homura Banned
      wrote on last edited by
      #2

      The servers have a tendency to crash from time to time and it is something we are looking into.

      1 Reply Last reply
      0
      • Matrixundefined Offline
        Matrixundefined Offline
        Matrix Plutonium Staff
        replied to ImVeryTwisted on last edited by
        #3

        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

        1 Reply Last reply
        0
        • ImVeryTwistedundefined Offline
          ImVeryTwistedundefined Offline
          ImVeryTwisted
          wrote on last edited by
          #4

          My other sever contains no menu and doesn't crash though

          1 Reply Last reply
          0
          • Sassundefined Offline
            Sassundefined Offline
            Sass Plutonium Staff
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • homuraundefined Offline
              homuraundefined Offline
              homura Banned
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0
              • Xerxesundefined Offline
                Xerxesundefined Offline
                Xerxes Plutonium Staff
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0

                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Donate