You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting Lightmap Size Hint really high (like 9000x9000) make integer overflow and size becoming negative value... using that in memset.. crashes the editor.
Inside core/io/image.cpp:1608Image::_get_dst_image_size function, see the calculation of s (bw * bh * pixsize).
May be we should limit the Lightmap Size with some MAX value.
solek1312
changed the title
Vulkan: Godot always crashes when baking lightmaps
Vulkan: Godot crashes when baking lightmaps with large lightmap size
Dec 31, 2022
Setting Lightmap Size Hint really high (like 9000x9000) make integer overflow and size becoming negative value... using that in memset.. crashes the editor. Inside core/io/image.cpp:1608Image::_get_dst_image_size function, see the calculation of s (bw * bh * pixsize).
May be we should limit the Lightmap Size with some MAX value.
Sorry, haven't even noticed, just clicked "Unwrap UV2 for Lightmap/AO" and didn't notice it set the size to a huge value. It works With a manually-entered value
solek1312
changed the title
Vulkan: Godot crashes when baking lightmaps with large lightmap size
Vulkan: Godot crashes when baking lightmaps with large lightmap size it sets after unwrapping lightmap UVs
Dec 31, 2022
Godot version
4.0 Beta 10
System information
Linux Mint 21, Vulkan, Intel Iris Xe (Intel i5-1135G7)
Issue description
Godot sets unreasonably large "Lightmap Size Hint" values to imported after making lightmap UVs, which crashes the editor when baking lightmaps.
Steps to reproduce
Minimal reproduction project
TestLightmap.zip
The text was updated successfully, but these errors were encountered: