Python exception while importing glb #91217
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#91217
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71
Blender Version
Broken: version: 2.93.1, branch: master, commit date: 2021-06-22 05:57, hash:
blender/blender@1b8d33b18c
Worked: unknown (not 2.82)
Short description of error
Here is the stacktrace:
Exact steps for others to reproduce the error
Unfortunatly, I can not provide the file I tried to import.
Added subscriber: @Ping
Added subscriber: @scurest
The .glb might be invalid. Try it in one of these.
glTF Validator: https://github.khronos.org/glTF-Validator/
glTF Viewer: https://gltf-viewer.donmccurdy.com/
Added subscriber: @lichtwerk
Changed status from 'Needs Triage' to: 'Needs User Info'
Without this, it is very unlikely this will be reproduced.
Will set to Needs Information from User until some sharable .glb can be provided that show this issue.
Ok, I have Unresolved references in the file. Isn't it possible to ignore those references in the importer ?
Think so, could you still share a minimal example .blend (or multiple if neccessary -- references are linked libraries here?)?
@lichtwerk "Unresolved reference" is the error the glTF validator gives for invalid glTF files that do stuff like this
This is a bug in the software the created the .glb.
Yes, this is exactly the problem (in a glb file not in json but the problem is the same) but I don't need the unresolved meshes and it will be great to get the file opened by discarding those parts. I can try to produce a file having this problem to submit it but it probably will be easier for me to provide a patch of the code.
I don't think the importer should try to handle this, whatever program produced the .glb should get fixed instead.
@Ping You can probably throw this quick hack onto it to get this one .glb file to work if you want to though.
Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'
Added subscriber: @JulienDuroure
Thx for the info reg. Unresolved Reference.
True, sometimes it might make sense to handle this more gracefully though (see recent 4e30cfd306})
Will leave up to @JulienDuroure to decide.
@scurest (scurest) Thanks a not.
But I still think it's a good choice for a sofware to get rid of errors in user inputs if possible rather than only show a stacktrace.
Thanks again
I agree that importer can't handle all errors raised by invalid file.
But because there is, for this particular issue, a quick check that can be performed to avoid traceback, it is worth adding it
Proposed PR: https://github.com/KhronosGroup/glTF-Blender-IO/pull/1464
This issue was referenced by
4d562682c0
Changed status from 'Needs Developer To Reproduce' to: 'Resolved'