K4ryuu / CS2_SimpleRanks

A CS2 server extension that allows you to create an unlimited number of ranks with customizable experience thresholds and rank colors. Players gain or lose experience during various in-game events, enabling them to advance or regress between ranks. The extension is fully configurable using 'configs.json' and utilizes MySQL to store data.
GNU General Public License v3.0
29 stars 1 forks source link

Crash server !ranktop #7

Closed yabaldeu closed 1 year ago

yabaldeu commented 1 year ago

server crashes if write !ranktop

K4ryuu commented 1 year ago

Greetings, Do you have any dump or log about the crashes?

yabaldeu commented 1 year ago

Nothing in the plugin logs, that's what he writes in the console after entering the command:

Unhandled exception. System.InvalidCastException: Unable to cast object of type 'System.DBNull' to type 'System.String'. at K4ryuuSimpleRanks.Queries.GetTopPlayersAsync() in /Users/sples/Documents/GitHub/CS2_SimpleRanks/src/Queries.cs:line 91 at K4ryuuSimpleRanks.SimpleRanks.OnCommandCheckRankTop(CCSPlayerController player, CommandInfo command) in /Users/sples/Documents/GitHub/CS2_SimpleRanks/src/K4ryuuSimpleRanks.cs:line 480 at System.Threading.Tasks.Task.<>c.b__128_1(Object state) at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() ./game/cs2.sh: line 118: 40 Aborted (core dumped) ${STEAM_RUNTIME_PREFIX} ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@" container@pterodactyl~ Server marked as offline... [Pterodactyl Daemon]: ---------- Detected server process in a crashed state! ---------- [Pterodactyl Daemon]: Exit code: 134 [Pterodactyl Daemon]: Out of memory: false

debug or log crashes l don't know where gеt it :(

K4ryuu commented 1 year ago

The crash has been fixed with the https://github.com/K4ryuu/CS2_SimpleRanks/commit/7bc7fe4f2f2da60a546f103cd4aa42de8de64dfd commit. Thank you for the feedback!