StatsHelix / demoinfo

A library to analyze CS:GO demos in C#
MIT License
322 stars 78 forks source link

Crash on parser.ParseToEnd(); #149

Closed gdhsnlvr closed 6 years ago

gdhsnlvr commented 6 years ago

Crash at line parser.ParseToEnd(); on this demos https://www.hltv.org/matches/2320069/tyloo-vs-gambit-iem-katowice-2018 map 3 (de_cache). https://www.hltv.org/matches/2320066/sk-vs-astralis-iem-katowice-2018 map 2 (de_overpass). exception: EndOfStreamException (version is last stable realise 1.2.0)

main-- commented 6 years ago

Truncated demo files are not uncommon and it is the user's (your) responsibility to deal with them.

You could for example catch the EndOfStreamException or just stop parsing at the end of the game.