[4.5.0] Endoom 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
InsanityBringer
Posts: 3386
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

[4.5.0] Endoom crash

Post by InsanityBringer »

I have no idea if this is related to this, but when closing the ENDOOM dialog after closing GZDoom g4.5.0, I reliably get a crash. However, in order to trigger it, you need to start a map first. Once a map is loaded, you can quit GZDoom, and trying to close the ENDOOM screen will cause the crash.

Crash report and .ini in case settings are important are attached.

edit: mysteriously this has stopped happening under my current settings. One of those bugs, fuun..
User avatar
InsanityBringer
Posts: 3386
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

Re: [4.5.0] Endoom crash

Post by InsanityBringer »

I've experimented with this further, and it seems the crash only happens if you have only used the software renderer in a session. If you start with or switch to the hardware renderer at any point when the map is loaded, it won't crash.
User avatar
Player701
 
 
Posts: 1640
Joined: Wed May 13, 2009 3:15 am
Graphics Processor: nVidia with Vulkan support
Contact:

Re: [4.5.0] Endoom crash

Post by Player701 »

I could not reproduce the crash on my laptop. Will try on my desktop PC tomorrow. However, I discovered another issue with ENDOOM during testing.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3141
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain
Contact:

Re: [4.5.0] Endoom crash

Post by drfrag »

I cannot reproduce it with the OpenGL backend.
User avatar
InsanityBringer
Posts: 3386
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

Re: [4.5.0] Endoom crash

Post by InsanityBringer »

Hmm, yeah, I guess it's a vulkan thing, since I basically always use vulkan. It doesn't happen on OpenGL here.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [4.5.0] Endoom crash

Post by Graf Zahl »

It does not crash my current buuld and I can remember having done something about this alreeady.
User avatar
InsanityBringer
Posts: 3386
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

Re: [4.5.0] Endoom crash

Post by InsanityBringer »

I just tried it on the 4.6.0 release and it still seems to be crashing. Guessing then it's an AMD thing, whee. There's stuff in the vulkan validation output but I have no idea if any of it is going to affect this.

Probably not super useful due to that, but crash report attached just in case.
User avatar
Zhs2
Posts: 1271
Joined: Fri Nov 07, 2008 3:29 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Maryland, USA, but probably also in someone's mod somewhere
Contact:

Re: [4.5.0] Endoom crash

Post by Zhs2 »

Can confirm the crash happens in 4.6.0 after exiting to ENDOOM and clicking to close in Vulkan with the software renderer. I have a RX 6700 XT, latest AMD drivers 21.5.2. Here's my crash report.
Attachments
CrashReport.zip
(38.58 KiB) Downloaded 83 times
User avatar
Rachael
Posts: 13542
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: [4.5.0] Endoom crash

Post by Rachael »

It's not an AMD thing I managed to get it to crash on both AMD and NVidia.

Zhs's post gave some clue as to how to reproduce it effectively - it seems that the software renderer must be in use, you must quit from the menu to the endoom screen, and try to close the endoom screen with the big red X at the top of the window.

As far as I can tell, what happens is, it's calling the Vulkan destructors after Vulkan has already been destroyed. I don't really know how to fix this, other than nulling it out, but I don't really know what needs to be nulled.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [4.5.0] Endoom crash

Post by Graf Zahl »

fixed.

The problem was that the software drawer wasn't taken down before the rest of the backend and got hung up on stale pointers.
Post Reply

Return to “Closed Bugs [GZDoom]”