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.
Odd Crash w/ hw renderer, fog, and software lightmodes
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.
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.
Odd Crash w/ hw renderer, fog, and software lightmodes
- 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
Re: Odd Crash w/ hw renderer, fog, and software lightmodes
It crashes inside HWDrawInfo::SetFog() because cmap is null when it's called from HWWall::RenderTexturedWall() function.
- 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
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.
- 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
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
https://github.com/drfrag666/gzdoom/com ... 9da4fc7104
Re: Odd Crash w/ hw renderer, fog, and software lightmodes
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.
Please rebase this on a usable branch.
Nevermind I got it cherry-picked.
- 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
I was going to make a PR but i wanted to ask first.