godotengine / godot

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

Importing a large 400mb gltf/glb file crashes at 99% #98519

Open zedrun00 opened 1 month ago

zedrun00 commented 1 month ago

Tested versions

4.4 dev3

System information

win10 21H2,Vulkan API 1.2.0

Issue description

B`}0_G%H8QZC3B3Q}UFUW{D

Godot Engine v4.4.dev3.official.f4af8201b - https://godotengine.org
libpng warning: iCCP: cHRM chunk does not match sRGB
Vulkan 1.3.242 - Forward+ - Using Device #0: NVIDIA - NVIDIA GeForce RTX 3080

ERROR: Basis [X: (1, 0, 0), Y: (0, 0, 0), Z: (0, 0, 1)] must be normalized in order to be casted to a Quaternion. Use get_rotation_quaternion() or call orthonormalized() if the Basis contains linearly independent vectors.
   at: (core/math/basis.cpp:725)
ERROR: FATAL: Index p_index = 620 is out of bounds (count = 620).
   at: operator[] (./core/templates/local_vector.h:177)

================================================================
CrashHandlerException: Program crashed with signal 4
Engine version: Godot Engine v4.4.dev3.official (f4af8201bac157b9d47e336203d3e8a8ef729de2)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] error(-1): no debug info in PE/COFF executable
[2] error(-1): no debug info in PE/COFF executable
[3] error(-1): no debug info in PE/COFF executable
[4] error(-1): no debug info in PE/COFF executable
[5] error(-1): no debug info in PE/COFF executable
[6] error(-1): no debug info in PE/COFF executable
[7] error(-1): no debug info in PE/COFF executable
[8] error(-1): no debug info in PE/COFF executable
[9] error(-1): no debug info in PE/COFF executable
[10] error(-1): no debug info in PE/COFF executable
[11] error(-1): no debug info in PE/COFF executable
[12] error(-1): no debug info in PE/COFF executable
[13] error(-1): no debug info in PE/COFF executable
[14] error(-1): no debug info in PE/COFF executable
[15] error(-1): no debug info in PE/COFF executable
[16] error(-1): no debug info in PE/COFF executable
[17] error(-1): no debug info in PE/COFF executable
[18] error(-1): no debug info in PE/COFF executable
[19] error(-1): no debug info in PE/COFF executable
[20] error(-1): no debug info in PE/COFF executable
[21] error(-1): no debug info in PE/COFF executable
[22] error(-1): no debug info in PE/COFF executable
[23] error(-1): no debug info in PE/COFF executable
[24] error(-1): no debug info in PE/COFF executable
[25] error(-1): no debug info in PE/COFF executable
[26] error(-1): no debug info in PE/COFF executable
[27] error(-1): no debug info in PE/COFF executable
-- END OF BACKTRACE --
================================================================

Steps to reproduce

  1. create new project
  2. importing glb file
  3. 99% crash

Minimal reproduction project (MRP)

issue page upload file max size 25MB. so, download file look at this.

fire commented 1 month ago

validator.txt

The glb file from Unreal Engine 5.4.4 is not a valid gltf file.

https://github.khronos.org/glTF-Validator/

fire commented 1 month ago

Blender 4.2.3 cannot open the glb either.

blender.txt

fire commented 1 month ago

Godot should fail to import the file and not crash.

zedrun00 commented 1 month ago

@fire

Blender 4.2.3 cannot open the glb either.

use Blender3.6 open file. I have tried importing Blender 4 exported glb files into godot Godot cannot be imported, but Blender 3.6 is normal (QO9P7}4373D (UXKCB7XTA

ps:

It looks like this can be imported UE glb -> import Blander3.6 -> export glb -> import godot image

fire commented 1 month ago

We cannot expect new developers to use a old blender version to import and the gltf file is invalid.

Can you try contacting Epic Games too?