Crash during state validation

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
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Crash during state validation

Post by _mental_ »

The following DECORATE crashes the latest:

Code: Select all

actor A : ArmorBonus
{
    Inventory.ForbiddenTo "Missing"
}

actor B : Pistol
{
    states
    {
        TNT1 A 0
        Loop
    }
}
Spoiler: Callstack
The problem is caused by missing state label in conjunction with incomplete class, Missing in the sample above.
For me it's hard to say how this corner case should be handled.
ZzZombo
Posts: 315
Joined: Mon Jul 16, 2012 2:02 am

Re: Crash during state validation

Post by ZzZombo »

Don't allow malformed scripts to compile? Also, infinite zero-tic loop.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Crash during state validation

Post by _mental_ »

Linus Torvalds wrote:Talk is cheap. Show me the code.
To clarify: it's obvious that the game should abort with fatal error. The question is where it must be handled exactly and how.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Crash during state validation

Post by _mental_ »

Fixed in 711471e.
Post Reply

Return to “Closed Bugs [GZDoom]”