Don't crash when user selects wrong map format #1537
Comments
|
Did you select "Valve" map format when you opened the file? Because it works for me when I do. |
|
D'oh. Yes, that works. I ignored that selection box, because I was under the impression it's only needed if the map has a .wcf or .rmf (or what it is) extension.... |
kduske
changed the title from
Crash when opening a Hammer-format map (JACK) to Don't crash when user selects wrong map format
Dec 11, 2016
|
Yeah, that's true. |
kduske
added enhancement Platform:All Priority:Low
labels
Dec 11, 2016
kduske
added this to the
TrenchBroom 2.0.0
milestone
Dec 11, 2016
kduske
added Status:Open Status:In Progress and removed Status:Open
labels
Dec 26, 2016
kduske
self-assigned this
Dec 27, 2016
kduske
added Status:Ready Platform:Windows and removed Status:Ready Platform:All
labels
Dec 27, 2016
|
@ericwa I don't have access to a Windows machine at the moment. Could you have a look at this? |
kduske
added Status:Ready and removed Status:In Progress
labels
Dec 27, 2016
kduske
removed their assignment
Dec 27, 2016
|
Sure. I tested with https://ci.appveyor.com/api/buildjobs/kll2h75ca7talv1s/artifacts/cmakebuild%2FTrenchBroom-Win32-2.0.0-Interim-0e1a90a-RelWithDebInfo.7z It doesn't crash; I get the parse error dialog box, and then I opened the map again as valve, and it worked. Autodetecting the format would be a nice improvement, but I guess this crash was fixed by some other change. |
ericwa
closed this
Dec 28, 2016
ericwa
removed the
Status:Ready
label
Dec 28, 2016
|
Same here. Thanks for checking! |
ericwa
added a commit
that referenced
this issue
Jan 3, 2017
|
|
ericwa |
723ae02
|
|
Hmm, now I can reproduce this on fd7b50e on a debug build on Windows, seems to be some kind of invalid read where MapFrame gets activated after its destructor runs. |
ericwa
reopened this
Jan 3, 2017
ericwa
self-assigned this
Jan 3, 2017
ericwa
added a commit
that referenced
this issue
Jan 3, 2017
|
|
ericwa |
725de14
|
ericwa
added a commit
that referenced
this issue
Jan 3, 2017
|
|
ericwa |
c4eea45
|
negke commentedDec 11, 2016
•
edited by kduske
Sigh, okay.
Trying to open Shamblernaut's Retro jam5 map, current TB2 beta crashes due to the brush syntax. The map was saved with J.A.C.K.
Error message:
Expected integer or decimal, but got '[' (raw data '[') [line 33, column 66]Brush syntax looks like this:
( 3584 -4096 3840 ) ( 3584 -4096 -3840 ) ( 3584 3840 3840 ) SKY4 [ 0 -1 -0 0 ] [ 0 0 -1 0 ] 0 1 1Crash report: trenchbroom-crash.txt