Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors parsing glTF files from glTF-Sample-Models, and SceneTree dock fails to display #47819

Open
norrath-hero-cn opened this issue Apr 12, 2021 · 7 comments

Comments

@norrath-hero-cn
Copy link

Godot version:

Godot 3.3.rc8.official

OS/device including version:

OS: Windows 10 Home 20H2 VER 19042.906
GPU: GTX 960
GeForce Game Ready Driver: 465.89

Issue description:

  1. So many ERR_PARSE_ERROR message
    ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
    At: editor/import/editor_scene_importer_gltf.cpp:98

  2. SceneTree can't display properly
    image

Steps to reproduce:

  1. download gltf test models from https://github.com/KhronosGroup/glTF-Sample-Models
  2. create a project in Godot 3.3.rc8.official
  3. extract glTF-Sample-Models-master.zip in to project folder
  4. wait for editor to imports models
  5. open FlightHelmet/gltf/FlightHelmet.gltf

Minimal reproduction project:

Too huge to upload(4.34GB), just recreate by the steps above please

@akien-mga akien-mga changed the title SceneTree can't display Errors parsing glTF for FlightHelmet.glb, and SceneTree dock fails to display Apr 12, 2021
@akien-mga akien-mga added this to the 3.3 milestone Apr 12, 2021
@akien-mga
Copy link
Member

I can't reproduce either issue here when importing FlightHelmet from https://github.com/KhronosGroup/glTF-Sample-Models:

Screenshot_20210412_094852

I'm only importing this model and not the whole repo. I suspect your issue might be a disk space or RAM issue. Are you by any chance running low on disk space or RAM while importing this humongous repo?

@akien-mga
Copy link
Member

akien-mga commented Apr 12, 2021

Actually when importing the whole glTF-Sample-Models repo I do get some error spam and import issues (though no empty scene tree).

Every focus change triggers a chain reimport of some models which seem to fail importing.

Example of the error spam:
ERROR: get_dependencies: Cannot open file 'res://.import/2CylinderEngine.glb-503b65f73c65301e57186751fa6f657a.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: get_dependencies: Cannot open file 'res://.import/2CylinderEngine.glb-503b65f73c65301e57186751fa6f657a.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: get_dependencies: Cannot open file 'res://.import/Avocado.glb-a27aacf620d63396430c76757dc3599f.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: get_dependencies: Cannot open file 'res://.import/BarramundiFish.glb-76d61fc3f3009f4171a106e538443c02.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: get_dependencies: Cannot open file 'res://.import/Box.glb-e28f0926b52f89da22330b8c729373e5.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: get_dependencies: Cannot open file 'res://.import/BoxAnimated.glb-6512aed87104c5e3218c1071ce3f5938.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: get_dependencies: Cannot open file 'res://.import/BoxSemantics.glb-75ab4a6e5a235ca8263b816ca4b566ce.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: get_dependencies: Cannot open file 'res://.import/BoxTextured.glb-ae633cdf75ff4aa4a19a1235453d4a2e.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: get_dependencies: Cannot open file 'res://.import/BoxWithoutIndices.glb-10275bc17065cbc5bc8a588fe3aadf91.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: get_dependencies: Cannot open file 'res://.import/BrainStem.glb-d6bc218ec5732321bc3fbb94d352888e.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: get_dependencies: Cannot open file 'res://.import/Buggy.glb-1c9c871754bca370d6a9f798661dd41e.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: get_dependencies: Cannot open file 'res://.import/CesiumMan.glb-631eb4905d459460b3e62f8902111a08.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: get_dependencies: Cannot open file 'res://.import/CesiumMilkTruck.glb-568125ab1d7ae50c29d9f1d28150637b.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: get_dependencies: Cannot open file 'res://.import/Duck.glb-34032a7051c955d6ac2ddff211b182d1.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: get_dependencies: Cannot open file 'res://.import/GearboxAssy.glb-a81b05245775b69d9b019a6386615301.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: get_dependencies: Cannot open file 'res://.import/Monster.glb-2f1d81d8c65c6d86895ab379d0d40f4b.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: get_dependencies: Cannot open file 'res://.import/ReciprocatingSaw.glb-1e9e79ebb01282b18fa704ed5287a092.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: get_dependencies: Cannot open file 'res://.import/RiggedFigure.glb-e95d266f19297895bdc62d822a8ff596.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: get_dependencies: Cannot open file 'res://.import/RiggedSimple.glb-85f7a250745936ffb96d216c7766ff93.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: get_dependencies: Cannot open file 'res://.import/SmilingFace.glb-06ebfb3cae203143a230aecd5ee068a3.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: get_dependencies: Cannot open file 'res://.import/VC.glb-83d33dc2d36fdf350268f1991bc4d695.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: get_dependencies: Cannot open file 'res://.import/WalkingLady.glb-98864f196fd8dd62ae82d1e9cf4eab65.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
   At: editor/import/editor_scene_importer_gltf.cpp:98.
ERROR: get_multiple_md5: Condition "!f" is true. Continuing.
   At: core/os/file_access.cpp:671.
ERROR: get_dependencies: Cannot open file 'res://.import/WalkingLady.glb-98864f196fd8dd62ae82d1e9cf4eab65.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
   At: editor/import/editor_scene_importer_gltf.cpp:98.
ERROR: get_multiple_md5: Condition "!f" is true. Continuing.
   At: core/os/file_access.cpp:671.
ERROR: get_dependencies: Cannot open file 'res://.import/VC.glb-83d33dc2d36fdf350268f1991bc4d695.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
   At: editor/import/editor_scene_importer_gltf.cpp:98.
ERROR: get_multiple_md5: Condition "!f" is true. Continuing.
   At: core/os/file_access.cpp:671.
ERROR: get_dependencies: Cannot open file 'res://.import/SmilingFace.glb-06ebfb3cae203143a230aecd5ee068a3.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
   At: editor/import/editor_scene_importer_gltf.cpp:98.
ERROR: get_multiple_md5: Condition "!f" is true. Continuing.
   At: core/os/file_access.cpp:671.
ERROR: get_dependencies: Cannot open file 'res://.import/RiggedSimple.glb-85f7a250745936ffb96d216c7766ff93.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
   At: editor/import/editor_scene_importer_gltf.cpp:98.
ERROR: get_multiple_md5: Condition "!f" is true. Continuing.
   At: core/os/file_access.cpp:671.
ERROR: get_dependencies: Cannot open file 'res://.import/RiggedFigure.glb-e95d266f19297895bdc62d822a8ff596.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
   At: editor/import/editor_scene_importer_gltf.cpp:98.
ERROR: get_multiple_md5: Condition "!f" is true. Continuing.
   At: core/os/file_access.cpp:671.
ERROR: get_dependencies: Cannot open file 'res://.import/ReciprocatingSaw.glb-1e9e79ebb01282b18fa704ed5287a092.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
   At: editor/import/editor_scene_importer_gltf.cpp:98.
ERROR: get_multiple_md5: Condition "!f" is true. Continuing.
   At: core/os/file_access.cpp:671.
ERROR: get_dependencies: Cannot open file 'res://.import/Monster.glb-2f1d81d8c65c6d86895ab379d0d40f4b.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
   At: editor/import/editor_scene_importer_gltf.cpp:98.
ERROR: get_multiple_md5: Condition "!f" is true. Continuing.
   At: core/os/file_access.cpp:671.
ERROR: get_dependencies: Cannot open file 'res://.import/GearboxAssy.glb-a81b05245775b69d9b019a6386615301.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
   At: editor/import/editor_scene_importer_gltf.cpp:98.
ERROR: get_multiple_md5: Condition "!f" is true. Continuing.
   At: core/os/file_access.cpp:671.
ERROR: get_dependencies: Cannot open file 'res://.import/Duck.glb-34032a7051c955d6ac2ddff211b182d1.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
   At: editor/import/editor_scene_importer_gltf.cpp:98.
ERROR: get_multiple_md5: Condition "!f" is true. Continuing.
   At: core/os/file_access.cpp:671.
ERROR: get_dependencies: Cannot open file 'res://.import/CesiumMilkTruck.glb-568125ab1d7ae50c29d9f1d28150637b.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
   At: editor/import/editor_scene_importer_gltf.cpp:98.
ERROR: get_multiple_md5: Condition "!f" is true. Continuing.
   At: core/os/file_access.cpp:671.
ERROR: get_dependencies: Cannot open file 'res://.import/CesiumMan.glb-631eb4905d459460b3e62f8902111a08.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
   At: editor/import/editor_scene_importer_gltf.cpp:98.
ERROR: get_multiple_md5: Condition "!f" is true. Continuing.
   At: core/os/file_access.cpp:671.
ERROR: get_dependencies: Cannot open file 'res://.import/Buggy.glb-1c9c871754bca370d6a9f798661dd41e.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
   At: editor/import/editor_scene_importer_gltf.cpp:98.
ERROR: get_multiple_md5: Condition "!f" is true. Continuing.
   At: core/os/file_access.cpp:671.
ERROR: get_dependencies: Cannot open file 'res://.import/BrainStem.glb-d6bc218ec5732321bc3fbb94d352888e.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
   At: editor/import/editor_scene_importer_gltf.cpp:98.
ERROR: get_multiple_md5: Condition "!f" is true. Continuing.
   At: core/os/file_access.cpp:671.
ERROR: get_dependencies: Cannot open file 'res://.import/BoxWithoutIndices.glb-10275bc17065cbc5bc8a588fe3aadf91.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
   At: editor/import/editor_scene_importer_gltf.cpp:98.
ERROR: get_multiple_md5: Condition "!f" is true. Continuing.
   At: core/os/file_access.cpp:671.
ERROR: get_dependencies: Cannot open file 'res://.import/BoxTextured.glb-ae633cdf75ff4aa4a19a1235453d4a2e.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
   At: editor/import/editor_scene_importer_gltf.cpp:98.
ERROR: get_multiple_md5: Condition "!f" is true. Continuing.
   At: core/os/file_access.cpp:671.
ERROR: get_dependencies: Cannot open file 'res://.import/BoxSemantics.glb-75ab4a6e5a235ca8263b816ca4b566ce.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
   At: editor/import/editor_scene_importer_gltf.cpp:98.
ERROR: get_multiple_md5: Condition "!f" is true. Continuing.
   At: core/os/file_access.cpp:671.
ERROR: get_dependencies: Cannot open file 'res://.import/BoxAnimated.glb-6512aed87104c5e3218c1071ce3f5938.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
   At: editor/import/editor_scene_importer_gltf.cpp:98.
ERROR: get_multiple_md5: Condition "!f" is true. Continuing.
   At: core/os/file_access.cpp:671.
ERROR: get_dependencies: Cannot open file 'res://.import/Box.glb-e28f0926b52f89da22330b8c729373e5.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
   At: editor/import/editor_scene_importer_gltf.cpp:98.
ERROR: get_multiple_md5: Condition "!f" is true. Continuing.
   At: core/os/file_access.cpp:671.
ERROR: get_dependencies: Cannot open file 'res://.import/BarramundiFish.glb-76d61fc3f3009f4171a106e538443c02.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
   At: editor/import/editor_scene_importer_gltf.cpp:98.
ERROR: get_multiple_md5: Condition "!f" is true. Continuing.
   At: core/os/file_access.cpp:671.
ERROR: get_dependencies: Cannot open file 'res://.import/Avocado.glb-a27aacf620d63396430c76757dc3599f.scn'.
   At: core/io/resource_format_binary.cpp:1048.
ERROR: _parse_glb: Condition "chunk_type != 0x4E4F534A" is true. Returned: ERR_PARSE_ERROR
   At: editor/import/editor_scene_importer_gltf.cpp:98.
ERROR: get_multiple_md5: Condition "!f" is true. Continuing.
   At: core/os/file_access.cpp:671.
ERROR: get_dependencies: Cannot open file 'res://.import/2CylinderEngine.glb-503b65f73c65301e57186751fa6f657a.scn'.
   At: core/io/resource_format_binary.cpp:1048.

@akien-mga
Copy link
Member

Might not be a regression, I get similar issues in 3.2.3.

@akien-mga akien-mga modified the milestones: 3.3, 4.0 Apr 12, 2021
@akien-mga akien-mga changed the title Errors parsing glTF for FlightHelmet.glb, and SceneTree dock fails to display Errors parsing glTF files from glTF-Sample-Models, and SceneTree dock fails to display Apr 12, 2021
@akien-mga
Copy link
Member

I've opened dedicated issues for problems I could identify with specific models from glTF-Sample-Models:

I'll see if I find more, but I think those issues should supersede this one which could then be closed. What remains is the empty scene tree issue, but unless it's easily reproducible on a simpler project, I don't think it's worth spending time on until we can ensure that glTF-Sample-Models can be loaded without errors.

@norrath-hero-cn
Copy link
Author

I think it maybe some race conditions which can't easily reproduce with small number of models, maybe Godot editor are busy to scan folders to imports many models one by one while the user are try to open some models in the same time.

Perhaps use valgrind or gcc sanitizer on debug version of Godot can find something, I guest

@fire
Copy link
Member

fire commented Sep 23, 2022

Is there anything to be done here?

@lyuma
Copy link
Contributor

lyuma commented Feb 22, 2023

Some gltf sample models contain extensions not currently supported in Godot such as draco.

We should remember the hash or timestamp of models which failed to import and avoid reimporting models unless they are changed or the user manually reimports them or clears .godot

@lyuma lyuma modified the milestones: 4.0, 4.1 Feb 27, 2023
@YuriSizov YuriSizov modified the milestones: 4.1, 4.x Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants