Closed jcostello closed 7 months ago
Confirmed on current master at 9d1cbab1c432b6f1d66ec939445bec68b6af519e, looks like yet another integer overflow issue, this time in:
The lightmapper tries to create a 16384 x 16384 FORMAT_RGBAH image, but the returned size
value is too big for 32 bit int and has overflowed to -2147483648
. The following memset()
then blows up, trying to write to invalid memory.
Lowering the LightmapGI Max Texture Size
seems to help, but at least on current master it leads to some other errors, might be because of recent big rendering changes.
In general, we should try to move away from using 32 bit signed ints in data structures like these.
Thanks for the report! Consolidating in https://github.com/godotengine/godot/issues/54679.
@Calinou no problem. Its the same issue?
Tested versions
Godot Engine v4.3.dev.custom_build [9d1cbab1c]
System information
Ubuntu with Nvidia 2060
Issue description
Baking a large scene with lot of meshes crashes when baking LightmapGI
Steps to reproduce
Use MRP
Bake lightmap as it is
Minimal reproduction project (MRP)
https://www.dropbox.com/scl/fi/owgcqzu68346pfvuubts3/MRP.zip?rlkey=oxyacpf62hb2f3n0xbup6wlcj&dl=0