FBX Import crashes due to parentship circle (RecursionError) #73790
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#73790
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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
Graphics card: NVIDIA GeForce GTX 1080 Ti
Blender Version
version: 2.81 (sub 16), branch: master, commit date: 2019-12-04 11:32, hash: f1aa4d18d49d, type: Release
build date: 2019-12-04, 14:30:40
Description of error
First of all, sorry for the long post. I thought it may help to quickly track down the issue when I attach some more information of what is going on. To the bug:
It seems like the some parent <-> child relationships get changed during import, which in my case results in an parentship circle and a crash due to recursion depth exceeded:
Jumped into io_scene_fbx/import.fbx and called the FbxImportHelperNode::PrintInfo method before collect_armature_meshes get's called.
This is the hierarchy it spits out (for the fbx attached):
This is the exact hierarchy as expected.
Since the error occoured in get_world_matrix_as_parent : 1857, I added two print instructions to see what the child <-> parent relationship at that point is:
Turns out, at some point rep_inf_ep3trooperis no longer parented to DummyRoot, but root_a_spine (Log output):
Which of course results in a parentship circle.
Went back to the collect_armature_meshes method and removed the #70244 fix (maybe the fix introduced this?). Import was successfull, but no amature and no mesh imported...
Tried something else, commented out m.parent = self in import_fbx.py : 1919, everything imports (yay!), but my animations are broken.
So I don't know where to go from here. Thought I should share my results, so that some developer can fix this properly (better than simply commenting out a line that's probably there for a reason).
Respective FBX file is attached. Note that it works just fine in Maya, Autodesk FBX Review and Unity.
Exact steps for others to reproduce the error
Import the fbx file attached{F8338792}
Added subscriber: @Ben1138
Added subscriber: @lichtwerk
Changed status from 'Needs Triage' to: 'Confirmed'
could be related to {#47344}? (in that the root bone is itself parented? not sure though...)