FBX import error #76160

Closed
opened 2020-04-27 21:40:45 +02:00 by Ben Olayinka · 4 comments

System Information
Operating system: Mac OS Catalina 10.15.4
Graphics card: Intel Iris Plus Graphics 640 1536 MB

Blender Version
Broken: Version 2.82 (2.82 2020-02-12)

Short description of error
Getting this stack trace when I try to import FBX (file attached)

Traceback (most recent call last):
  File "/Applications/Blender.app/Contents/Resources/2.82/scripts/addons/io_scene_fbx/__init__.py", line 217, in execute
    if import_fbx.load(self, context, filepath=path, **keywords) == {'FINISHED'}:
  File "/Applications/Blender.app/Contents/Resources/2.82/scripts/addons/io_scene_fbx/import_fbx.py", line 2561, in load
    _(); del _
  File "/Applications/Blender.app/Contents/Resources/2.82/scripts/addons/io_scene_fbx/import_fbx.py", line 2560, in _
    fbx_item[1] = blen_read_geom(fbx_tmpl, fbx_obj, settings)
  File "/Applications/Blender.app/Contents/Resources/2.82/scripts/addons/io_scene_fbx/import_fbx.py", line 1302, in blen_read_geom
    ok_normals = blen_read_geom_layer_normal(fbx_obj, mesh)
  File "/Applications/Blender.app/Contents/Resources/2.82/scripts/addons/io_scene_fbx/import_fbx.py", line 1186, in blen_read_geom_layer_normal
    fbx_layer_data, fbx_layer_index, fbx_layer_mapping, fbx_layer_ref, 3, 3, layer_id, xform, True):
  File "/Applications/Blender.app/Contents/Resources/2.82/scripts/addons/io_scene_fbx/import_fbx.py", line 959, in blen_read_geom_array_mapped_polyloop
    blen_read_geom_array_setattr(blen_read_geom_array_gen_direct(fbx_layer_data, stride),
  File "/Applications/Blender.app/Contents/Resources/2.82/scripts/addons/io_scene_fbx/import_fbx.py", line 820, in blen_read_geom_array_gen_direct
    fbx_data_len = len(fbx_data)
TypeError: object of type 'NoneType' has no len()

location: <unknown location>:-1

Exact steps for others to reproduce the error
Import attached FBX, all settings default

samurai_light.fbx

**System Information** Operating system: Mac OS Catalina 10.15.4 Graphics card: Intel Iris Plus Graphics 640 1536 MB **Blender Version** Broken: Version 2.82 (2.82 2020-02-12) **Short description of error** Getting this stack trace when I try to import FBX (file attached) ``` Traceback (most recent call last): File "/Applications/Blender.app/Contents/Resources/2.82/scripts/addons/io_scene_fbx/__init__.py", line 217, in execute if import_fbx.load(self, context, filepath=path, **keywords) == {'FINISHED'}: File "/Applications/Blender.app/Contents/Resources/2.82/scripts/addons/io_scene_fbx/import_fbx.py", line 2561, in load _(); del _ File "/Applications/Blender.app/Contents/Resources/2.82/scripts/addons/io_scene_fbx/import_fbx.py", line 2560, in _ fbx_item[1] = blen_read_geom(fbx_tmpl, fbx_obj, settings) File "/Applications/Blender.app/Contents/Resources/2.82/scripts/addons/io_scene_fbx/import_fbx.py", line 1302, in blen_read_geom ok_normals = blen_read_geom_layer_normal(fbx_obj, mesh) File "/Applications/Blender.app/Contents/Resources/2.82/scripts/addons/io_scene_fbx/import_fbx.py", line 1186, in blen_read_geom_layer_normal fbx_layer_data, fbx_layer_index, fbx_layer_mapping, fbx_layer_ref, 3, 3, layer_id, xform, True): File "/Applications/Blender.app/Contents/Resources/2.82/scripts/addons/io_scene_fbx/import_fbx.py", line 959, in blen_read_geom_array_mapped_polyloop blen_read_geom_array_setattr(blen_read_geom_array_gen_direct(fbx_layer_data, stride), File "/Applications/Blender.app/Contents/Resources/2.82/scripts/addons/io_scene_fbx/import_fbx.py", line 820, in blen_read_geom_array_gen_direct fbx_data_len = len(fbx_data) TypeError: object of type 'NoneType' has no len() location: <unknown location>:-1 ``` **Exact steps for others to reproduce the error** Import attached FBX, all settings default [samurai_light.fbx](https://archive.blender.org/developer/F8497991/samurai_light.fbx)
Author

Added subscriber: @benolayinka

Added subscriber: @benolayinka

Added subscriber: @rjg

Added subscriber: @rjg

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

Changed status from 'Needs Triage' to: 'Resolved'
Robert Guetzkow self-assigned this 2020-11-24 14:33:56 +01:00

The file is missing (custom) normal information. A check for this was added in 5e564f9304 which allows to import the file properly.

The file is missing (custom) normal information. A check for this was added in 5e564f9304 which allows to import the file properly.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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#76160
No description provided.