Fatal crash when failing to define sprite frames in zscript

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!

Fatal crash when failing to define sprite frames in zscript

Postby kevansevans » Wed Aug 18, 2021 1:28 pm

Really easy to reproduce, just include this actor in ZScript:

Code: Select allExpand view
Class CrashingActor : Actor
{
   states
   {
      spawn:
   }
}


This is obviously more the fault of the developer than it is GZDoom, but this would be better off if it reported a syntax error instead of a fatal crash. Accidentally had this in one of my projects, stepped away for a moment, and was then unable to find the source of it for a good chunk of time.
User avatar
kevansevans
Disciple of The Great God Imp
Spotlight Team
 
Joined: 05 Oct 2010
Github ID: kevansevans
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: nVidia with Vulkan support

Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest