Godot crashes when saving storage file after using importer.
axedaddy opened this issue · 1 comments
Terrain3D version
v0.9.1
System information
Godot v4.2.1.stable.mono - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA RTX A2000 (NVIDIA; 31.0.15.5123) - 12th Gen Intel(R) Core(TM) i7-12700 (20 Threads)
Is the issue reproducable in the demo?
Not applicable
Issue description
Godot crashes when saving storage as .res. I'm not seeing this issue with smaller .exr files, this larger one causes the issue. The terrain successfully load's and I can navigate around it in the editor, only when saving storage as a .res does it then crash. Saving as .tres is OK, albeit slow.
note my .exr is 117MB - I'm not able to attach it here due to size limitations.
Steps to reproduce
- New godot project.
- open importer.tscn
- Add my .exr
- run import
core/variant/variant_utility.cpp:1091 - Terrain3DStorage::import_images: (7168, 12288) image will not fit at (0, 0, 0). Try (-3584, -6144) to center - set import position x=-3584, z=-6144
- run import
- save storage as, name as .res (see screen shot)
After about 5sec Godot closes.
Logs
Note: I did attempt to enable logging. No log file in appdata/roaming/godot, but I have attached a screen shot of the console.
I can provide the .exr on request (117MB).
Duplicate #159
You can import the terrain at runtime without saving. Or use a smaller terrain, eg segments in different scenes. Or wait until Godot fixes the bug.
In the future, crashes that haven't been reported yet should always be tested against the latest nightly build.