Loading a damaged .map file crash #1697

Closed
PritchardGSD opened this Issue Jan 29, 2017 · 1 comment

Comments

Projects
None yet
2 participants

PritchardGSD commented Jan 29, 2017 edited by kduske

So I was recently fooling around with trying to convert a map from standard format to valve 220, but all I managed to achieve was a horribly mangled mess that won't compile and crashes TB.

https://dl.dropboxusercontent.com/s/oyvp0vrjxv98fkb/pritchard1-j.map

Trying to load this map causes the application to crash with the standard Windows "TrenchBroom Level Editor has stopped working" error, and as far as I can tell it does not generate any error logs.

kduske added this to the TrenchBroom 2.0.0 milestone Jan 29, 2017

kduske self-assigned this Jan 29, 2017

Owner

kduske commented Jan 29, 2017

That map contains a brush with 81 faces in line 26471. There are other huge brushes further down it seems. Those are broken. TB shouldn't crash of course.

@kduske kduske added a commit that referenced this issue Jan 29, 2017

@kduske kduske #1697: Detect a case where invalid brushes cannot be loaded and throw…
… an exception that is caught during map load.
a2f2878

kduske closed this Jan 30, 2017

kduske removed the Status:Resolved label Jan 30, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment