Skip to content

Exporting a project from headless mode prints an error when VoxelGIData is present in the project #109145

@Calinou

Description

@Calinou

Tested versions

  • Reproducible in: 4.5.beta 2d113cc

System information

Godot v4.5.beta (2d113cc) - Fedora Linux 42 (KDE Plasma Desktop Edition) on X11 - X11 display driver, Multi-window, 1 monitor - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 5090 (nvidia; 575.64.03) - AMD Ryzen 9 9950X3D 16-Core Processor (32 threads) - 62.33 GiB memory

Issue description

Exporting a project from headless mode prints an error when VoxelGIData is present in the project:

ERROR: Expected Image data size of 2048x64x1 (Lum8 without mipmaps) = 131072 bytes, got 0 bytes instead.
   at: initialize_data (core/io/image.cpp:2230)
WARNING: png_image_write_to_memory: invalid argument
     at: check_error (drivers/png/png_driver_common.cpp:55)
ERROR: Condition "compressed_size <= png_size_estimate" is true. Returning: FAILED
   at: image_to_png (drivers/png/png_driver_common.cpp:186)
ERROR: Can't convert image to PNG.
   at: save_image_to_buffer (drivers/png/resource_saver_png.cpp:71)
ERROR: Condition "df_png.is_empty()" is true. Returning: Dictionary()
   at: _get_data (scene/3d/voxel_gi.cpp:81)

Despite this error being printed, the exported VoxelGIData is bit-for-bit identical across all export types (from headless or non-headless, towards a dedicated server build or a standard build):

e2488b37e9310e68617af05b6c532d3e  out_linux/test.VoxelGI_data.res
e2488b37e9310e68617af05b6c532d3e  out_linux_headless/test.VoxelGI_data.res
e2488b37e9310e68617af05b6c532d3e  out_linux_server/test.VoxelGI_data.res
e2488b37e9310e68617af05b6c532d3e  out_linux_server_headless/test.VoxelGI_data.res

Steps to reproduce

  • Export a project that contains a VoxelGIData resource.

Minimal reproduction project (MRP)

test_project.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    For team assessment

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions