[Fixed] Crash when using non-existing texture as sky

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Crash when using non-existing texture as sky

Postby RaveYard » Sat May 29, 2021 10:28 am

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 allExpand view
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
RaveYard
 
Joined: 12 Apr 2013

Re: Crash when using non-existing texture as sky

Postby drfrag » Sat May 29, 2021 12:52 pm

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
drfrag
Os voy a romper a pedazos!
Vintage GZDoom Developer
 
Joined: 23 Apr 2004
Location: Spain
Discord: drfrag#3555
Github ID: drfrag666

Re: Crash when using non-existing texture as sky

Postby Rachael » Sat May 29, 2021 1:08 pm

pr merged thanks
User avatar
Rachael
Admin
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Crash when using non-existing texture as sky

Postby drfrag » Sat May 29, 2021 1:34 pm

Not at all.
User avatar
drfrag
Os voy a romper a pedazos!
Vintage GZDoom Developer
 
Joined: 23 Apr 2004
Location: Spain
Discord: drfrag#3555
Github ID: drfrag666


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 1 guest