Skip to content

Baking LightmapGI with shadowmasks can crash Godot after transparency support was added #101391

@GustJc

Description

@GustJc

Tested versions

-Reproducible in latest master v4.4.dev.gh [24d7451]

System information

Windows 10 - Godot 4.4dev - Vulkan (Foward+) - Nvidea 1070

Issue description

Trying to bake the LightmapGI with shadowmasks can get stuck and crash Godot in some circunstances.

Using the latest master (v4.4.dev.gh [24d7451]) and trying to bake the lightmapGI using the testproject from (#85653 (comment)) crashes Godot.
With a lot of "Couldn't map PC to fn name" errors.

shadowmap_bug.mp4

Here is the start of the crash:
(On Windows 10, Foward+, Nvidea 1070)

shadowmask

It appears this started happening since adding transparency support to the lightmapGI (#99538)

As found out by #85653 (comment)

@Geometror EDIT: Tested some some PR's and is crashing since #99538 (Transparency PR). Something broke between Dec 12 and Dec 19.

EDIT2: It seems like if I insist and try again it manage to bake, but taking double the time and the computer becomes unresponsive in the process.

Steps to reproduce

I didn't figure out the MRP yet, but you can
use the test project from #85653 (comment)
(Used to work until the transparency to GI was added)
(direct download link)

  • Try to bake the LIghtmapGI

Expected: LightmapGI baked
Results: Goes until about 50% then Godot gets stuck and crashes.

Minimal reproduction project (MRP)

Use the test project from #85653 (comment)
(direct download link)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Very Bad

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions