shobhit-pathak / MatchZy

MatchZy is a plugin for CS2 (Counter Strike 2) for running and managing practice/pugs/scrims/matches with easy configuration and Get5 (G5API/G5V) support as well!
https://shobhit-pathak.github.io/MatchZy/
MIT License
257 stars 74 forks source link

Segfault switching maps #235

Open Monroeshindelar opened 2 weeks ago

Monroeshindelar commented 2 weeks ago

Using the .map command causes a segfault

Relevant Logs ./start.sh: line 104: 72 Segmentation fault

[Client] Metamod:Source Version Information [Client] Metamod:Source version 2.0.0-dev+1314 [Client] Plugin interface version: 16:14 [Client] SourceHook version: 5:5 [Client] Loaded As: GameDLL (gameinfo.txt) [Client] Compiled on: Oct 3 2024 15:12:54 [Client] Built from: https://github.com/alliedmodders/metamod-source/commit/557121c [Client] Build ID: 1314:557121c [Client] http://www.metamodsource.net/`

[Client] CounterStrikeSharp was created and is maintained by Michael "roflmuffin" Wilson. [Client] Counter-Strike Sharp uses code borrowed from SourceMod, Source.Python, FiveM, Saul Rennison, source2gen and CS2Fixes. [Client] See ACKNOWLEDGEMENTS.md for more information. [Client] Current API Version: v272 (1.0.272+e36d2e0)

1370533448 commented 2 weeks ago

I found that when a ready match starts, if you try to change the map, it causes the server to crash. This also includes changing the map shortly after the game ends, which causes a crash. So the parameter for the end of the game is 2 minutes. I'm confused and want to shorten this time

milkywayfarer commented 2 weeks ago

We reproduced this issue after the Armory update rolled in when running a BO1 and BO3 match. Both crash the server around 8 seconds before the mapswitch.

I believe my previous fixes with the demo recording are causing that. @shobhit-pathak I'll look into that myself first to see what I can find.

For the time being, if you want a quick fix, I recommend turning off demo recording.

P.S. Recorded demos from the crashed server are broken and couldn't be played in CS2. They still get analyzed in CS Demo Manager, as it does not perform any checksum checks whatsoever.