[GZDoom 4.1.3] UMAPINFO empty/incorrect lump strings crash

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
Phobus
Posts: 5984
Joined: Thu May 05, 2005 10:56 am
Location: London
Contact:

[GZDoom 4.1.3] UMAPINFO empty/incorrect lump strings crash

Post by Phobus »

When loading GZDoom with a UMAPINFO lump, it's possible to "fatal error" crash the game if a string is either empty (as in my example) or references a lump that isn't present in any loaded file. I had assumed, going by the spec, that the empty string in my example would've led to GZDoom automatically generating an episode name like with ZMAPINFO episode definitions, or the parser catching the error and reporting something in the console. A similar effect can be found with music lump name strings, I've found (for example, leaving a "D_" placeholder in a map you've not made yet).

Code: Select all

MAP MAP01
{
	LevelName = "Doesn't Matter"
	Next = "MAP02"
	Episode = "", "Crash GZDoom", "C"
}
If you put a valid lump (i.e. "CWILV00") in the empty string up there, it works just fine, although with one episode it jumps straight to the map, skipping the difficulty selection (a problem you've already fixed in dev builds and I'm therefore not reporting).
Attachments
CrashReport.zip
The Crash Report
(19.56 KiB) Downloaded 31 times
crashGZDoom.wad
The WAD that caused it
(127 Bytes) Downloaded 29 times
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: [GZDoom 4.1.3] UMAPINFO empty/incorrect lump strings cra

Post by _mental_ »

Post Reply

Return to “Closed Bugs [GZDoom]”