Odd Crash w/ hw renderer, fog, and software lightmodes

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
Alper002
Posts: 5
Joined: Thu Nov 28, 2019 10:43 am

Odd Crash w/ hw renderer, fog, and software lightmodes

Post by Alper002 »

The crash seems to only happen using the hardware renderer (no matter the rendering API, I've tried opengl, vulkan, and softpoly2d), while also using build, software, or vanilla lightmodes.

In the attached wad I've compiled there are 3 extremely similar maps for Hexen replacing MAP08, MAP11, and MAP12.
MAP11 is a setup which crashes when settings are set in the way described. Trying to look into the next room causes the crash window to pop up.
MAP08 has only one difference and doesn't crash with those settings.
MAP12 is identical to MAP11, but is on a map whose MAPINFO isn't foggy, which seems to make it not crash.
I've been testing on 4.5.0.
Attachments
CrashReport.zip
A report of crashing on MAP11
(36.4 KiB) Downloaded 23 times
WeirdGeoCrash.wad
The wad file in question
(49.75 KiB) Downloaded 23 times
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: Odd Crash w/ hw renderer, fog, and software lightmodes

Post by _mental_ »

It crashes inside HWDrawInfo::SetFog() because cmap is null when it's called from HWWall::RenderTexturedWall() function.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3199
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain
Contact:

Re: Odd Crash w/ hw renderer, fog, and software lightmodes

Post by drfrag »

It's pretty much the same code as in the old renderer and the only difference i see it's in the call. Here the parameter is di->isFullbrightScene() and before it was FixedColormap != CM_DEFAULT.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3199
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain
Contact:

Re: Odd Crash w/ hw renderer, fog, and software lightmodes

Post by drfrag »

The map has the LEVEL_HASFADETABLE flag that's why it crashes. What about just adding null pointer checks?
https://github.com/drfrag666/gzdoom/com ... 9da4fc7104
User avatar
Rachael
Posts: 13958
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Odd Crash w/ hw renderer, fog, and software lightmodes

Post by Rachael »

That is unmergeable because you decided to use the widescreen files directly instead of a submodule.

Please rebase this on a usable branch.


Nevermind I got it cherry-picked.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3199
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain
Contact:

Re: Odd Crash w/ hw renderer, fog, and software lightmodes

Post by drfrag »

I was going to make a PR but i wanted to ask first.
Post Reply

Return to “Closed Bugs [GZDoom]”