Crash when switching to hardware accelerated in Hexen

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
Lippeth
Posts: 293
Joined: Wed Apr 24, 2013 1:41 am
Location: Lost Angeles

Crash when switching to hardware accelerated in Hexen

Post by Lippeth »

In the latest dev build (gzdoom-x64-g4.6pre-195-g55ce0510c) when switching from Doom Software Renderer to Hardware Accelerated while in-game, the engine crashes in Hexen unless switching while still in the main menu, before anything is loaded. It only seems to happen with Hexen though. I tried to figure out if any of the rendering options I had set were causing it, but it crashed no matter what, with Vulkan, OpenGL and SoftPoly. I hope this is enough info!
Spoiler: Video
User avatar
Rachael
Posts: 13527
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Crash when switching to hardware accelerated in Hexen

Post by Rachael »

Adding nullptr checks fixed the problem partially, but not completely.

I suspect that the GL nodes are not loaded properly when the renderer is switched.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3141
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain
Contact:

Re: Crash when switching to hardware accelerated in Hexen

Post by drfrag »

It's something about polyobjects. It crashes here in HWWall::DoTexture:

Code: Select all

		// Add this wall to the render list
		sector_t * sec = sub ? sub->sector : seg->frontsector;
Seems sub gets some weird value somewhere (initializing it in HWWall doesn't work).
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49053
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Crash when switching to hardware accelerated in Hexen

Post by Graf Zahl »

fixed
Post Reply

Return to “Closed Bugs [GZDoom]”