godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.33k stars 21.24k forks source link

[4.2] Headless import leads to invalid geometry in GDQuest TPS demo #91363

Open akien-mga opened 6 months ago

akien-mga commented 6 months ago

Tested versions

System information

Fedora Linux 40 (KDE Plasma) - Wayland - Vulkan (Forward+) - dedicated AMD Radeon RX 7600M XT (RADV NAVI33) () - AMD Ryzen 7 7840HS w/ Radeon 780M Graphics (16 Threads)

Issue description

When importing the GDQuest TPS demo (https://github.com/gdquest-demos/godot-4-3d-third-person-controller) with 4.2.2.stable in --headless mode (godot --import --headless -v), the tree meshes seem to be broken:

image Import logs: import-headless.log

When importing without --headless, the trees are correct (godot --import -v):

Screenshot_20240430_155514 Import logs: import-vulkan.log

The main difference between the import logs is this error:

ERROR: Parameter "m" is null.
   at: mesh_get_surface_count (servers/rendering/dummy/storage/mesh_storage.h:114)

Steps to reproduce

Minimal reproduction project (MRP)

I'll see if I can extract a scene, but for now it's just: https://github.com/gdquest-demos/godot-4-3d-third-person-controller

clayjohn commented 6 months ago

I just tested and confirmed that cherrypicking https://github.com/godotengine/godot/pull/88210 fixes this issue (actually what I did was revert https://github.com/godotengine/godot/pull/88210 and confirm that doing so introduces the issue into master)

fire commented 6 months ago

Is all the steps completed to close this? Do we need to cherry pick?

akien-mga commented 6 months ago

I will cherrypick the PR.

TitanNano commented 3 months ago

@akien-mga I somehow remembered this as having been cherry-picked into one of the 4.2 patch releases. It looks like it was planned but ultimately slipped through. I am not sure if there are still plans to create another 4.2 patch release, but I think the final decision should be recorded here.

akien-mga commented 3 months ago

It still has cherrypick:4.2 label, so it's in the queue. But yeah there's been other priorities until now so not much work done on the 4.2.x release.