FBX TypeError: object of type NoneType has no len ()" #94669

Open
opened 2022-01-05 21:26:04 +01:00 by Jithu Pb · 32 comments

System Information
Operating system: Windows-11
Graphics card: Nvidia GeForce RTX 2080 Super

Blender Version: 2.93

Short description of error
I want to import into Blender a FBX file but a sign appears, it says "TypeError: object of type NoneType has no len ()".
I downloaded the file from mixamo
Exact steps for others to reproduce the error
I open import I choose the FBX file and it appears the sign with an error.

Belly Dance.fbx

Python: Traceback (most recent call last):

File "D:\blender\2.93\scripts\addons\io_scene_fbx\__init__.py", line 216, in execute
  if import_fbx.load(self, context, filepath=path, **keywords) == {'FINISHED'}:
File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 2597, in load
  _(); del _
File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 2596, in _
  fbx_item[1] = blen_read_geom(fbx_tmpl, fbx_obj, settings)
File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 1331, in blen_read_geom
  ok_crease = blen_read_geom_layer_edge_crease(fbx_obj, mesh)
File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 1184, in blen_read_geom_layer_edge_crease
  return blen_read_geom_array_mapped_edge(
File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 912, in blen_read_geom_array_mapped_edge
  blen_read_geom_array_setattr(blen_read_geom_array_gen_direct(fbx_layer_data, stride),
File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 847, 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```
System Information Operating system: Windows-11 Graphics card: Nvidia GeForce RTX 2080 Super Blender Version: 2.93 **Short description of error** I want to import into Blender a FBX file but a sign appears, it says "TypeError: object of type NoneType has no len ()". I downloaded the file from mixamo Exact steps for others to reproduce the error I open import I choose the FBX file and it appears the sign with an error. [Belly Dance.fbx](https://archive.blender.org/developer/F12790509/Belly_Dance.fbx) ``` Python: Traceback (most recent call last): File "D:\blender\2.93\scripts\addons\io_scene_fbx\__init__.py", line 216, in execute if import_fbx.load(self, context, filepath=path, **keywords) == {'FINISHED'}: File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 2597, in load _(); del _ File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 2596, in _ fbx_item[1] = blen_read_geom(fbx_tmpl, fbx_obj, settings) File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 1331, in blen_read_geom ok_crease = blen_read_geom_layer_edge_crease(fbx_obj, mesh) File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 1184, in blen_read_geom_layer_edge_crease return blen_read_geom_array_mapped_edge( File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 912, in blen_read_geom_array_mapped_edge blen_read_geom_array_setattr(blen_read_geom_array_gen_direct(fbx_layer_data, stride), File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 847, 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```
Jithu Pb self-assigned this 2022-01-05 21:26:04 +01:00
Author

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

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

Added subscriber: @whatsinaname

Added subscriber: @whatsinaname

blender/blender#103925 was marked as duplicate of this issue

blender/blender#103925 was marked as duplicate of this issue

#100744 was marked as duplicate of this issue

#100744 was marked as duplicate of this issue

#98984 was marked as duplicate of this issue

#98984 was marked as duplicate of this issue

blender/blender#97224 was marked as duplicate of this issue

blender/blender#97224 was marked as duplicate of this issue

blender/blender#95124 was marked as duplicate of this issue

blender/blender#95124 was marked as duplicate of this issue
Member

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

Changed status from 'Needs User Info' to: 'Needs Triage'
Jithu Pb was unassigned by Philipp Oeser 2022-01-05 23:01:28 +01:00

Added subscriber: @iss

Added subscriber: @iss

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

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

I can't reproduce this issue. Can you check if this happens with latest alpha build from https://builder.blender.org/download/daily/?

I can't reproduce this issue. Can you check if this happens with latest alpha build from https://builder.blender.org/download/daily/?
Author

Let me check

Let me check
Author

Python: Traceback (most recent call last):

File "D:\blender\2.93\scripts\addons\io_scene_fbx\__init__.py", line 216, in execute
  if import_fbx.load(self, context, filepath=path, **keywords) == {'FINISHED'}:
File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 2597, in load
  _(); del _
File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 2596, in _
  fbx_item[1] = blen_read_geom(fbx_tmpl, fbx_obj, settings)
File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 1331, in blen_read_geom
  ok_crease = blen_read_geom_layer_edge_crease(fbx_obj, mesh)
File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 1184, in blen_read_geom_layer_edge_crease
  return blen_read_geom_array_mapped_edge(
File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 912, in blen_read_geom_array_mapped_edge
  blen_read_geom_array_setattr(blen_read_geom_array_gen_direct(fbx_layer_data, stride),
File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 847, in blen_read_geom_array_gen_direct
  fbx_data_len = len(fbx_data)

TypeError: object of type 'NoneType' has no len()

location: :-1

this the error i get while uploading those files

Python: Traceback (most recent call last): ``` File "D:\blender\2.93\scripts\addons\io_scene_fbx\__init__.py", line 216, in execute if import_fbx.load(self, context, filepath=path, **keywords) == {'FINISHED'}: File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 2597, in load _(); del _ File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 2596, in _ fbx_item[1] = blen_read_geom(fbx_tmpl, fbx_obj, settings) File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 1331, in blen_read_geom ok_crease = blen_read_geom_layer_edge_crease(fbx_obj, mesh) File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 1184, in blen_read_geom_layer_edge_crease return blen_read_geom_array_mapped_edge( File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 912, in blen_read_geom_array_mapped_edge blen_read_geom_array_setattr(blen_read_geom_array_gen_direct(fbx_layer_data, stride), File "D:\blender\2.93\scripts\addons\io_scene_fbx\import_fbx.py", line 847, 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 this the error i get while uploading those files

But you are either still checking with 2.93 version as evidenced by path in trace or somehow 3.1 version is using old scripts. Can you re-check that?

But you are either still checking with 2.93 version as evidenced by path in trace or somehow 3.1 version is using old scripts. Can you re-check that?
Author

i tried 3.1 ,same error keep appearing

i tried 3.1 ,same error keep appearing

I have checked again and can reproduce the issue. was looking at Dancing.fbx file only which works correctly.

I have checked again and can reproduce the issue. was looking at `Dancing.fbx` file only which works correctly.

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

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

Added subscriber: @Lamisam7

Added subscriber: @Lamisam7

Hi I also have this problem!

Python: Traceback (most recent call last):

File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\addons\io_scene_fbx\__init__.py", line 216, in execute
  if import_fbx.load(self, context, filepath=path, **keywords) == {'FINISHED'}:
File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\addons\io_scene_fbx\import_fbx.py", line 2600, in load
  _(); del _
File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\addons\io_scene_fbx\import_fbx.py", line 2599, in _
  fbx_item[1] = blen_read_geom(fbx_tmpl, fbx_obj, settings)
File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\addons\io_scene_fbx\import_fbx.py", line 1333, in blen_read_geom
  ok_crease = blen_read_geom_layer_edge_crease(fbx_obj, mesh)
File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\addons\io_scene_fbx\import_fbx.py", line 1186, in blen_read_geom_layer_edge_crease
  return blen_read_geom_array_mapped_edge(
File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\addons\io_scene_fbx\import_fbx.py", line 914, in blen_read_geom_array_mapped_edge
  blen_read_geom_array_setattr(blen_read_geom_array_gen_direct(fbx_layer_data, stride),
File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\addons\io_scene_fbx\import_fbx.py", line 849, in blen_read_geom_array_gen_direct
  fbx_data_len = len(fbx_data)

TypeError: object of type 'NoneType' has no len()

location: :-1
Wave Hip Hop Dance(3).fbx

Hi I also have this problem! Python: Traceback (most recent call last): ``` File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\addons\io_scene_fbx\__init__.py", line 216, in execute if import_fbx.load(self, context, filepath=path, **keywords) == {'FINISHED'}: File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\addons\io_scene_fbx\import_fbx.py", line 2600, in load _(); del _ File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\addons\io_scene_fbx\import_fbx.py", line 2599, in _ fbx_item[1] = blen_read_geom(fbx_tmpl, fbx_obj, settings) File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\addons\io_scene_fbx\import_fbx.py", line 1333, in blen_read_geom ok_crease = blen_read_geom_layer_edge_crease(fbx_obj, mesh) File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\addons\io_scene_fbx\import_fbx.py", line 1186, in blen_read_geom_layer_edge_crease return blen_read_geom_array_mapped_edge( File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\addons\io_scene_fbx\import_fbx.py", line 914, in blen_read_geom_array_mapped_edge blen_read_geom_array_setattr(blen_read_geom_array_gen_direct(fbx_layer_data, stride), File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\addons\io_scene_fbx\import_fbx.py", line 849, 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 [Wave Hip Hop Dance(3).fbx](https://archive.blender.org/developer/F12814979/Wave_Hip_Hop_Dance_3_.fbx)
Member

Added subscribers: @3DGIRLL, @PratikPB2123

Added subscribers: @3DGIRLL, @PratikPB2123
Member

Added subscriber: @chiefwhosm

Added subscriber: @chiefwhosm

Added subscriber: @nanoSpawn

Added subscriber: @nanoSpawn

Only want to add that trying to convert the belly_dance.fbx file using the free Autodesk FBX Converter returns a txt with the following message:

Call to FbxImporter::Import() failed. Error: File is corrupted

So in this particular case, I'd attribute the problem to the source of the FBX, not the FBX importer.

Only want to add that trying to convert the belly_dance.fbx file using the free Autodesk FBX Converter returns a txt with the following message: > Call to FbxImporter::Import() failed. Error: File is corrupted So in this particular case, I'd attribute the problem to the source of the FBX, not the FBX importer.

In #94669#1389604, @nanoSpawn wrote:
Only want to add that trying to convert the belly_dance.fbx file using the free Autodesk FBX Converter returns a txt with the following message:

Call to FbxImporter::Import() failed. Error: File is corrupted

So in this particular case, I'd attribute the problem to the source of the FBX, not the FBX importer.

In the case of my issue which was a duplicate so merged into this one, the fbx I attached imports fine into Unreal Engine, but not into Blender.

> In #94669#1389604, @nanoSpawn wrote: > Only want to add that trying to convert the belly_dance.fbx file using the free Autodesk FBX Converter returns a txt with the following message: > >> Call to FbxImporter::Import() failed. Error: File is corrupted > > So in this particular case, I'd attribute the problem to the source of the FBX, not the FBX importer. In the case of my issue which was a duplicate so merged into this one, the fbx I attached imports fine into Unreal Engine, but not into Blender.
Member

Added subscriber: @yigimet

Added subscriber: @yigimet

I still can't solve this problem. and there is no solution how to solve this...

I still can't solve this problem. and there is no solution how to solve this...

Added subscriber: @JaceBurgs

Added subscriber: @JaceBurgs

I'd Having the exact same issue and have tried this in ALL builds from 2.8 to 3.3 and get the same thing, No solution anywhere just a lot of talk and no action. is anything being done about it I'm beyond frustrated

I'd Having the exact same issue and have tried this in ALL builds from 2.8 to 3.3 and get the same thing, No solution anywhere just a lot of talk and no action. is anything being done about it I'm beyond frustrated

@yigimet @JaceBurgs
If you read carefully, the conclusion is that the fbx was defective. You cannot import defective FBX and Blender cannot import those.

Fix your files, double check with other software, be positively sure it's exclusively blender's fault.

Other software can be more relaxed letting in defective files, like UE, but Blender being an editor cannot really afford that.

@yigimet @JaceBurgs If you read carefully, the conclusion is that the fbx was defective. You cannot import defective FBX and Blender cannot import those. Fix your files, double check with other software, be positively sure it's exclusively blender's fault. Other software can be more relaxed letting in defective files, like UE, but Blender being an editor cannot really afford that.

In #94669#1441114, @nanoSpawn wrote:
@yigimet @JaceBurgs
If you read carefully, the conclusion is that the fbx was defective. You cannot import defective FBX and Blender cannot import those.

Fix your files, double check with other software, be positively sure it's exclusively blender's fault.

Other software can be more relaxed letting in defective files, like UE, but Blender being an editor cannot really afford that.

I have Tried this over the course of the entire day with approximately 17 diff fbx file some downloaded some created by myself. And I assure you they are not defective. The fbx loads into mixamo perfectly fine. And zbrush etc the only program having an issue is blender so yes... It's a blender issue

> In #94669#1441114, @nanoSpawn wrote: > @yigimet @JaceBurgs > If you read carefully, the conclusion is that the fbx was defective. You cannot import defective FBX and Blender cannot import those. > > Fix your files, double check with other software, be positively sure it's exclusively blender's fault. > > Other software can be more relaxed letting in defective files, like UE, but Blender being an editor cannot really afford that. I have Tried this over the course of the entire day with approximately 17 diff fbx file some downloaded some created by myself. And I assure you they are not defective. The fbx loads into mixamo perfectly fine. And zbrush etc the only program having an issue is blender so yes... It's a blender issue

If you read carefully, the conclusion is that the fbx was defective.

That was the conclusion for the first .fbx posted by the OP, however with each merge of error reports new .fbx files which are known to work in other applications (such as the one I submitted) have been added which show that there is a Blender issue here, even if you accept it as being less relaxed for file imports, if it imported with warnings that would be at least something.

> If you read carefully, the conclusion is that the fbx was defective. That was the conclusion for the first .fbx posted by the OP, however with each merge of error reports new .fbx files which are known to work in other applications (such as the one I [submitted) ](https://developer.blender.org/T98984) have been added which show that there is a Blender issue here, even if you accept it as being less relaxed for file imports, if it imported with warnings that would be at least something.
Member

Added subscriber: @adambekow

Added subscriber: @adambekow
Sign in to join this conversation.
No Milestone
No project
No Assignees
11 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#94669
No description provided.