fbx file doesn't import #43095

Closed
opened 2015-01-01 19:34:34 +01:00 by Jorge Ortega · 11 comments

System Information
windows 8.1, nvidia quadro 600, nvidia GTX-660TI

Blender Version
Blender 2.73 testbuild 1 hash: d7e4944

Short description of error
Blender doesn't import fbx file

Exact steps for others to reproduce the error
Try to import the attached fbx file. Blender shows this error message:

Traceback (most recent call last):

File "D:\Desktop_now\blender-2.73-testbuild1-win64\2.72\scripts\addons\io_scene_fbx\__init__.py", line 221, in execute
  return import_fbx.load(self, context, **keywords)
File "D:\Desktop_now\blender-2.73-testbuild1-win64\2.72\scripts\addons\io_scene_fbx\import_fbx.py", line 2075, in load
  _(); del _
File "D:\Desktop_now\blender-2.73-testbuild1-win64\2.72\scripts\addons\io_scene_fbx\import_fbx.py", line 2074, in _
  fbx_item[1] = blen_read_geom(fbx_tmpl, fbx_obj, settings)
File "D:\Desktop_now\blender-2.73-testbuild1-win64\2.72\scripts\addons\io_scene_fbx\import_fbx.py", line 984, in blen_read_geom
  blen_read_geom_layer_color(fbx_obj, mesh)
File "D:\Desktop_now\blender-2.73-testbuild1-win64\2.72\scripts\addons\io_scene_fbx\import_fbx.py", line 851, in blen_read_geom_layer_color
4, 3, layer_id,
File "D:\Desktop_now\blender-2.73-testbuild1-win64\2.72\scripts\addons\io_scene_fbx\import_fbx.py", line 760, in blen_read_geom_array_mapped_polyloop
  fbx_layer_data[(j * stride): (j * stride) + item_size])

ValueError: bpy_struct: item.attr = val: sequences of dimension 0 should contain 3 items, not 0

location: :-1

location: :-1

The file was produced in AutoCAD, exported to fbx and converted to fbx 2013 (a.k.a. 7.0 that Blender supports) using FBX converter 2013.3

test3.zip

**System Information** windows 8.1, nvidia quadro 600, nvidia GTX-660TI **Blender Version** Blender 2.73 testbuild 1 hash: d7e4944 **Short description of error** Blender doesn't import fbx file **Exact steps for others to reproduce the error** Try to import the attached fbx file. Blender shows this error message: Traceback (most recent call last): ``` File "D:\Desktop_now\blender-2.73-testbuild1-win64\2.72\scripts\addons\io_scene_fbx\__init__.py", line 221, in execute return import_fbx.load(self, context, **keywords) File "D:\Desktop_now\blender-2.73-testbuild1-win64\2.72\scripts\addons\io_scene_fbx\import_fbx.py", line 2075, in load _(); del _ File "D:\Desktop_now\blender-2.73-testbuild1-win64\2.72\scripts\addons\io_scene_fbx\import_fbx.py", line 2074, in _ fbx_item[1] = blen_read_geom(fbx_tmpl, fbx_obj, settings) File "D:\Desktop_now\blender-2.73-testbuild1-win64\2.72\scripts\addons\io_scene_fbx\import_fbx.py", line 984, in blen_read_geom blen_read_geom_layer_color(fbx_obj, mesh) File "D:\Desktop_now\blender-2.73-testbuild1-win64\2.72\scripts\addons\io_scene_fbx\import_fbx.py", line 851, in blen_read_geom_layer_color ``` 4, 3, layer_id, ``` File "D:\Desktop_now\blender-2.73-testbuild1-win64\2.72\scripts\addons\io_scene_fbx\import_fbx.py", line 760, in blen_read_geom_array_mapped_polyloop fbx_layer_data[(j * stride): (j * stride) + item_size]) ``` ValueError: bpy_struct: item.attr = val: sequences of dimension 0 should contain 3 items, not 0 location: <unknown location>:-1 location: <unknown location>:-1 The file was produced in AutoCAD, exported to fbx and converted to fbx 2013 (a.k.a. 7.0 that Blender supports) using FBX converter 2013.3 [test3.zip](https://archive.blender.org/developer/F134593/test3.zip)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @jortega

Added subscriber: @jortega
Bastien Montagne self-assigned this 2015-01-01 21:23:13 +01:00

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Ok, so same cause as for your collada report - vcol data in that FBX file is truncated somehow… We could add a bunch of checking code in FBX importer to protect us against such case, but this would be very verbose, and to just avoid a mere python exception in invalid file case, not worth it imho.

So thanks for the report, but considering there is no bug here, we simply cannot handle nicely all possible case of data corruption.

Ok, so same cause as for your collada report - vcol data in that FBX file is truncated somehow… We **could** add a bunch of checking code in FBX importer to protect us against such case, but this would be very verbose, and to just avoid a mere python exception in invalid file case, not worth it imho. So thanks for the report, but considering there is no bug here, we simply cannot handle nicely all possible case of data corruption.
Author

No data corruption. File imports OK in Autocad 2015, 2014, maya and 3ds, and is copy verbatim of the original file base (AutoCAD ACIS solids), i just send a tiny little part of the file, and just checked the geometry is OK.

But dealing with propietary formats is always hard, so i have to agree with you in that you can't handle all corner cases propietary code and formats do all the time.

Thanks for your time, and happy new year.

No data corruption. File imports OK in Autocad 2015, 2014, maya and 3ds, and is copy verbatim of the original file base (AutoCAD ACIS solids), i just send a tiny little part of the file, and just checked the geometry is OK. But dealing with propietary formats is always hard, so i have to agree with you in that you can't handle all corner cases propietary code and formats do all the time. Thanks for your time, and happy new year.
Author

Removed subscriber: @jortega

Removed subscriber: @jortega

Changed status from 'Archived' to: 'Open'

Changed status from 'Archived' to: 'Open'

Reopening, I think there is actually an issue in our importer code here… checking on it right now.

Reopening, I think there is actually an issue in our importer code here… checking on it right now.

This issue was referenced by 08846e0aab

This issue was referenced by 08846e0aab9a8e870e1c2d6cb9a7a0fa147dbb23

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Closed by commit 08846e0aab.

Closed by commit 08846e0aab.
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#43095
No description provided.