Exporting my project as fbx ends in python traceback error. #90581

Closed
opened 2021-08-10 15:21:25 +02:00 by iMakeMehModels · 4 comments

System Information
Operating system: macOS Big Sur 11.5.1
Graphics card: Intel Iris Plus

Blender Version
Broken: 2.93.1
(example: 2.79b release)
(example: 2.80, edbf15d3c044, blender2.8, 2018-11-28, as found on the splash screen)
Worked: (optional)

Whenever I tried to export the model as a .fbx, it would give me an error at unknown location 1.

Error Message:
Python: Traceback (most recent call last):

File "/Applications/Blender.app/Contents/Resources/2.93/scripts/addons/io_scene_fbx/__init__.py", line 644, in execute
  return export_fbx_bin.save(self, context, **keywords)
File "/Applications/Blender.app/Contents/Resources/2.93/scripts/addons/io_scene_fbx/export_fbx_bin.py", line 3198, in save
  ret = save_single(operator, context.scene, depsgraph, filepath, **kwargs_mod)
File "/Applications/Blender.app/Contents/Resources/2.93/scripts/addons/io_scene_fbx/export_fbx_bin.py", line 3094, in save_single
  fbx_objects_elements(root, scene_data)
File "/Applications/Blender.app/Contents/Resources/2.93/scripts/addons/io_scene_fbx/export_fbx_bin.py", line 2894, in fbx_objects_elements
  fbx_data_mesh_elements(objects, me_obj, scene_data, done_meshes)
File "/Applications/Blender.app/Contents/Resources/2.93/scripts/addons/io_scene_fbx/export_fbx_bin.py", line 1174, in fbx_data_mesh_elements
  elem_data_single_int32_array(lay_uv, b"UVIndex", (uv2idx[uv_id] for uv_id in _uvtuples_gen(t_luv, t_lvidx)))
File "/Applications/Blender.app/Contents/Resources/2.93/scripts/addons/io_scene_fbx/fbx_utils.py", line 504, in elem_data_single_int32_array
  return _elem_data_single(elem, name, value, "add_int32_array")
File "/Applications/Blender.app/Contents/Resources/2.93/scripts/addons/io_scene_fbx/fbx_utils.py", line 451, in _elem_data_single
  getattr(sub_elem, func_name)(value)
File "/Applications/Blender.app/Contents/Resources/2.93/scripts/addons/io_scene_fbx/encode_bin.py", line 161, in add_int32_array
  data = array.array(data_types.ARRAY_INT32, data)
File "/Applications/Blender.app/Contents/Resources/2.93/scripts/addons/io_scene_fbx/export_fbx_bin.py", line 1174, in <genexpr>
  elem_data_single_int32_array(lay_uv, b"UVIndex", (uv2idx[uv_id] for uv_id in _uvtuples_gen(t_luv, t_lvidx)))

KeyError: ((nan, nan), 253)

location: :-1

To reproduce:
First, open the file in blender. Then, select it, and go to Edit > Export > FBX and click only selected and fbx units and apply transform.
shogun copy.blend

**System Information** Operating system: macOS Big Sur 11.5.1 Graphics card: Intel Iris Plus **Blender Version** Broken: 2.93.1 (example: 2.79b release) (example: 2.80, edbf15d3c044, blender2.8, 2018-11-28, as found on the splash screen) Worked: (optional) **Whenever I tried to export the model as a .fbx, it would give me an error at unknown location 1.** **Error Message:** Python: Traceback (most recent call last): ``` File "/Applications/Blender.app/Contents/Resources/2.93/scripts/addons/io_scene_fbx/__init__.py", line 644, in execute return export_fbx_bin.save(self, context, **keywords) File "/Applications/Blender.app/Contents/Resources/2.93/scripts/addons/io_scene_fbx/export_fbx_bin.py", line 3198, in save ret = save_single(operator, context.scene, depsgraph, filepath, **kwargs_mod) File "/Applications/Blender.app/Contents/Resources/2.93/scripts/addons/io_scene_fbx/export_fbx_bin.py", line 3094, in save_single fbx_objects_elements(root, scene_data) File "/Applications/Blender.app/Contents/Resources/2.93/scripts/addons/io_scene_fbx/export_fbx_bin.py", line 2894, in fbx_objects_elements fbx_data_mesh_elements(objects, me_obj, scene_data, done_meshes) File "/Applications/Blender.app/Contents/Resources/2.93/scripts/addons/io_scene_fbx/export_fbx_bin.py", line 1174, in fbx_data_mesh_elements elem_data_single_int32_array(lay_uv, b"UVIndex", (uv2idx[uv_id] for uv_id in _uvtuples_gen(t_luv, t_lvidx))) File "/Applications/Blender.app/Contents/Resources/2.93/scripts/addons/io_scene_fbx/fbx_utils.py", line 504, in elem_data_single_int32_array return _elem_data_single(elem, name, value, "add_int32_array") File "/Applications/Blender.app/Contents/Resources/2.93/scripts/addons/io_scene_fbx/fbx_utils.py", line 451, in _elem_data_single getattr(sub_elem, func_name)(value) File "/Applications/Blender.app/Contents/Resources/2.93/scripts/addons/io_scene_fbx/encode_bin.py", line 161, in add_int32_array data = array.array(data_types.ARRAY_INT32, data) File "/Applications/Blender.app/Contents/Resources/2.93/scripts/addons/io_scene_fbx/export_fbx_bin.py", line 1174, in <genexpr> elem_data_single_int32_array(lay_uv, b"UVIndex", (uv2idx[uv_id] for uv_id in _uvtuples_gen(t_luv, t_lvidx))) ``` KeyError: ((nan, nan), 253) location: <unknown location>:-1 **To reproduce:** **First, open the file in blender. Then, select it, and go to Edit > Export > FBX and click only selected and fbx units and apply transform.** [shogun copy.blend](https://archive.blender.org/developer/F10276516/shogun_copy.blend)
Author

Added subscriber: @iMakeMehModels

Added subscriber: @iMakeMehModels
Member

Closed as duplicate of blender/blender#79775

Closed as duplicate of blender/blender#79775
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Thanks for the report. Similar issue has been reported already: blender/blender#79775 (Something in Blender can generate invalid (Nan) values in UVMaps)

Will close this as duplicate

Thanks for the report. Similar issue has been reported already: blender/blender#79775 (Something in Blender can generate invalid (Nan) values in UVMaps) Will close this as duplicate
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#90581
No description provided.