mikedh / trimesh

Python library for loading and using triangular meshes.
https://trimesh.org
MIT License
2.87k stars 571 forks source link

Exceptions while Parsing JSON #1540

Open talhafarooq20 opened 2 years ago

talhafarooq20 commented 2 years ago

Trimesh Libaray is not handling some exceptions like keyerror, jsondecodeerror and indexerror while parsing .gltf files

talhafarooq20 commented 2 years ago

error1.txt

mikedh commented 2 years ago

Hey, if the header isn't valid JSON isn't the GLTF file invalid? I see a few errors where the file doesn't have the nodes keyword. Do other loaders load these files? I usually check trimesh behavior against https://gltf-viewer.donmccurdy.com/