Error exporting in FBX format. #78840

Closed
opened 2020-07-11 20:16:10 +02:00 by As · 17 comments

Operating system: Windows 10 64bit
Graphics card: GTX 1050ti

Broken: all version blender.

Steps to reproduce

uv_error.blend

  • Open file
  • Export FBX

UV unwrapping the mesh properly (or just Smart UV project) fixes the issue.

Traceback (most recent call last):
File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.83\scripts\addons\io_scene_fbx\__init__.py", line 634, in execute
return export_fbx_bin.save(self, context, **keywords)
File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.83\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3198, in save
ret = save_single(operator, context.scene, depsgraph, filepath, **kwargs_mod)
File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.83\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3094, in save_single
fbx_objects_elements(root, scene_data)
File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.83\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 "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.83\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 "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.83\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 "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.83\scripts\addons\io_scene_fbx\fbx_utils.py", line 451, in _elem_data_single
getattr(sub_elem, func_name)(value)
File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.83\scripts\addons\io_scene_fbx\encode_bin.py", line 161, in add_int32_array
data = array.array(data_types.ARRAY_INT32, data)
File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.83\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), 490)

location: <unknown location>:-1
Operating system: Windows 10 64bit Graphics card: GTX 1050ti Broken: all version blender. **Steps to reproduce** [uv_error.blend](https://archive.blender.org/developer/F8713279/uv_error.blend) - Open file - Export FBX UV unwrapping the mesh properly (or just Smart UV project) fixes the issue. ``` Traceback (most recent call last): File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.83\scripts\addons\io_scene_fbx\__init__.py", line 634, in execute return export_fbx_bin.save(self, context, **keywords) File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.83\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3198, in save ret = save_single(operator, context.scene, depsgraph, filepath, **kwargs_mod) File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.83\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3094, in save_single fbx_objects_elements(root, scene_data) File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.83\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 "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.83\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 "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.83\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 "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.83\scripts\addons\io_scene_fbx\fbx_utils.py", line 451, in _elem_data_single getattr(sub_elem, func_name)(value) File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.83\scripts\addons\io_scene_fbx\encode_bin.py", line 161, in add_int32_array data = array.array(data_types.ARRAY_INT32, data) File "D:\Program Files (x86)\Steam\steamapps\common\Blender\2.83\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), 490) location: <unknown location>:-1 ```
Author

Added subscriber: @HandsomeSerj

Added subscriber: @HandsomeSerj

Added subscriber: @iss

Added subscriber: @iss

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

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

Please upload sample file.

Please upload sample file.
Author

Removed subscriber: @HandsomeSerj

Removed subscriber: @HandsomeSerj
Author

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

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

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

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

Please upload sample file. I can not confirm this without sample file

Please upload sample file. I can not confirm this without sample file

Added subscriber: @filibis

Added subscriber: @filibis

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

I just got this bug as well. Here is a simple file: uv_error.blend
UV unwrapping the mesh properly (or just Smart UV project) fixes the issue.

This error occurs in both 2.83.2 and 2.90 versions.

I just got this bug as well. Here is a simple file: [uv_error.blend](https://archive.blender.org/developer/F8713279/uv_error.blend) UV unwrapping the mesh properly (or just Smart UV project) fixes the issue. This error occurs in both 2.83.2 and 2.90 versions.

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

Added subscriber: @mont29

Added subscriber: @mont29

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

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

This is not an FBX issue, UVs should never have invalid values like nan (means 'not a number', and is used to materialize invalid ones, like e.g. the result of 1/0...).

So unless you can provide us with a way to reproduce such data corruption in Blender, we cannot do anything here.

This is not an FBX issue, UVs should **never** have invalid values like `nan` (means 'not a number', and is used to materialize invalid ones, like e.g. the result of `1/0`...). So unless you can provide us with a way to reproduce such data corruption in Blender, we cannot do anything here.

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

Changed status from 'Needs User Info' to: 'Archived'
Bastien Montagne self-assigned this 2020-08-03 12:27:40 +02:00

More than a week without answers, closing.

More than a week without answers, closing.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 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#78840
No description provided.