Import .fbx bug #94605

Open
opened 2022-01-03 15:57:41 +01:00 by Adrien · 11 comments

System Information
Operating system: windows 10
Graphics card: GTX 1060

Blender Version
3.0

Short description of error
When I import a .fbx file into the software, I get an error message and the .fbx does not import

00Z_002_Pants.emd.fbx

**System Information** Operating system: windows 10 Graphics card: GTX 1060 **Blender Version** 3.0 **Short description of error** When I import a .fbx file into the software, I get an error message and the .fbx does not import [00Z_002_Pants.emd.fbx](https://archive.blender.org/developer/F12787180/00Z_002_Pants.emd.fbx)
Author

Added subscriber: @TheFlockers

Added subscriber: @TheFlockers
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Which error message?

Might be the same as #93541 (Blender 3.0 cannot import FBX (containing more than 8 UV layers)).
Please also check if this is still an issue for you in a fresh 3.1 build from https://builder.blender.org/download/daily/

Which error message? Might be the same as #93541 (Blender 3.0 cannot import FBX (containing more than 8 UV layers)). Please also check if this is still an issue for you in a fresh 3.1 build from https://builder.blender.org/download/daily/
Author

This error:error message.png

This error:![error message.png](https://archive.blender.org/developer/F12787106/error_message.png)
Member

Could you share the .FBX?

Could you share the .FBX?
Author

Yes, it's this .fbx: 00Z_002_Pants.emd.fbx

Yes, it's this .fbx: [00Z_002_Pants.emd.fbx](https://archive.blender.org/developer/F12787180/00Z_002_Pants.emd.fbx)
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

I can confirm. @lichtwerk , are you able to reproduce?

Python: Traceback (most recent call last):

File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx_init_.py", line 216, in execute
if import_fbx.load(self, context, filepath=path, **keywords) == {'FINISHED'}:
File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 2849, in load
_(); del _
File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 2843, in _
root_helper.build_hierarchy(fbx_tmpl, settings, scene, view_layer)
File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 2278, in build_hierarchy
child.build_hierarchy(fbx_tmpl, settings, scene, view_layer)
File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 2244, in build_hierarchy
child.build_skeleton(self, Matrix(), force_connect_children=settings.force_connect_children)
File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 2044, in build_skeleton
child_bone = child.build_skeleton(arm, bone_matrix, bone_size,
File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 2044, in build_skeleton
child_bone = child.build_skeleton(arm, bone_matrix, bone_size,
File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 2044, in build_skeleton
child_bone = child.build_skeleton(arm, bone_matrix, bone_size,
[Previous line repeated 1 more time]
File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 2047, in build_skeleton
child_connect(bone, child_bone, None, connect_ctx)
File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 1969, in child_connect
if similar_values_iter(par_bone.tail, child_head):
File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx\fbx_utils.py", line 268, in similar_values_iter
if (v1 != v2) and ((abs(v1 - v2) / max(abs(v1), abs(v2))) > e):

ZeroDivisionError: float division by zero```
I can confirm. @lichtwerk , are you able to reproduce? ```lines Python: Traceback (most recent call last): ``` File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx\__init__.py", line 216, in execute if import_fbx.load(self, context, filepath=path, **keywords) == {'FINISHED'}: File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 2849, in load _(); del _ File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 2843, in _ root_helper.build_hierarchy(fbx_tmpl, settings, scene, view_layer) File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 2278, in build_hierarchy child.build_hierarchy(fbx_tmpl, settings, scene, view_layer) File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 2244, in build_hierarchy child.build_skeleton(self, Matrix(), force_connect_children=settings.force_connect_children) File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 2044, in build_skeleton child_bone = child.build_skeleton(arm, bone_matrix, bone_size, File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 2044, in build_skeleton child_bone = child.build_skeleton(arm, bone_matrix, bone_size, File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 2044, in build_skeleton child_bone = child.build_skeleton(arm, bone_matrix, bone_size, [Previous line repeated 1 more time] File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 2047, in build_skeleton child_connect(bone, child_bone, None, connect_ctx) File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx\import_fbx.py", line 1969, in child_connect if similar_values_iter(par_bone.tail, child_head): File "C:\Users\Pratik\Desktop\BlenderOSP\build_windows_Lite_x64_vc16_Release\bin\Debug\3.1\scripts\addons\io_scene_fbx\fbx_utils.py", line 268, in similar_values_iter if (v1 != v2) and ((abs(v1 - v2) / max(abs(v1), abs(v2))) > e): ``` ZeroDivisionError: float division by zero```
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#94605
No description provided.