Crash when using non-existing texture as sky

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
RaveYard
Posts: 200
Joined: Fri Apr 12, 2013 10:51 am

Crash when using non-existing texture as sky

Post by RaveYard »

I tested this both on GZDoom 4.7 latest commit + GZDoom 4.5pre with Vulkan backends. It is a doom software renderer only bug tho.

Spawning this fella will cause the game to crash when any part of sky is visible.

Supposedly any kind of non-existing texture will do.

Code: Select all

Class SkyChangingZombieman : Zombieman
{
    Override Void PostBeginPlay()
    {
        Super.PostBeginPlay();
        Level.ChangeSky(TexMan.CheckForTexture("<FWATER1>",TexMan.Type_Any), TexMan.CheckForTexture("FWATER1",TexMan.Type_Any));
    }
}
Credit for code and discovery goes to: inkoalawetrust
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3210
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain
Contact:

Re: Crash when using non-existing texture as sky

Post by drfrag »

It was not a software renderer bug, it was the same as the one in the legacy branch.
I've made a PR: https://github.com/coelckers/gzdoom/pull/1400
User avatar
Rachael
Posts: 13967
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Crash when using non-existing texture as sky

Post by Rachael »

pr merged thanks
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3210
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain
Contact:

Re: Crash when using non-existing texture as sky

Post by drfrag »

Not at all.
Post Reply

Return to “Closed Bugs [GZDoom]”