godotengine / godot

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

Importing meshes hangs forever #77240

Closed KevinErath closed 1 year ago

KevinErath commented 1 year ago

Godot version

4.0.x / 4.1

System information

Windows 11, Ubuntu

Issue description

I am currently using Godot-MagicaVoxel-Importer-with-Extensions to import Magica Voxel files. It does work, when i add a single file. Which results in a imported mesh file. But as soon as i add several files it just hangs and never finishes the import.

image

I described the issue in the bugtracker for the extension here, as i first thought it was related to the plugin itself. But i further investigated and found out that it may be instead an issue of godot itself. In the plugin i replaced to import code and instead simply created an Empty ArrayMesh and passed it to the RsourceSaver. It also never finishes the import. I tryed the same with Godot 3.5 which works without any issue.

Steps to reproduce

The import will never end. It seems like the first few files will be imported and then all other files will be created in the.import file but will all have a size of zero.

Minimal reproduction project

To reproduce the issue, you can use the Godot-MagicaVoxel-Importer-with-Extensions. You can also replace the _import Method with above implementation.

KevinErath commented 1 year ago

Never mind, i found my issue instead of ArrayMesh i used MeshInstance3D which i passed to ResourceSaver.... Also the plugin has two importers for .vox with same priority which also causes the import process to not working correctly.

Above description can't reproduce the issue. Sorry. The Plugin still doesn't work, but it may be related to the plugin instead.. Sorry, for opening an issue.