UV mesh model does not want to export to FBX #109489

Closed
opened 2023-06-29 09:56:07 +02:00 by Oskar Szwajkowski · 3 comments

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.59

Blender Version
Broken: version: 3.6.0, branch: blender-v3.6-release, commit date: 2023-06-27 08:08, hash: c7fc78b81ecb
Worked: 3.5.1

Short description of error
Trying to export a model from uv to fbx and getting an error:
Python: Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\__init__.py", line 661, in execute return export_fbx_bin.save(self, context, **keywords) File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3519, in save ret = save_single(operator, context.scene, depsgraph, filepath, **kwargs_mod) File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3402, in save_single fbx_objects_elements(root, scene_data) File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3199, in fbx_objects_elements fbx_data_mesh_elements(objects, me_obj, scene_data, done_meshes) File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 1381, in fbx_data_mesh_elements raise RuntimeError("UV layer %s on %r has invalid UVs containing NaN values" % (uvlayer.name, me)) RuntimeError: UV layer UVMap on bpy.data.meshes['Plane.001'] has invalid UVs containing NaN values

Exact steps for others to reproduce the error

  • Select mesh
  • Export to FBX (Selected Object)
  • Export FBX
**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.59 **Blender Version** Broken: version: 3.6.0, branch: blender-v3.6-release, commit date: 2023-06-27 08:08, hash: `c7fc78b81ecb` Worked: 3.5.1 **Short description of error** Trying to export a model from uv to fbx and getting an error: `Python: Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\__init__.py", line 661, in execute return export_fbx_bin.save(self, context, **keywords) File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3519, in save ret = save_single(operator, context.scene, depsgraph, filepath, **kwargs_mod) File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3402, in save_single fbx_objects_elements(root, scene_data) File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 3199, in fbx_objects_elements fbx_data_mesh_elements(objects, me_obj, scene_data, done_meshes) File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\addons\io_scene_fbx\export_fbx_bin.py", line 1381, in fbx_data_mesh_elements raise RuntimeError("UV layer %s on %r has invalid UVs containing NaN values" % (uvlayer.name, me)) RuntimeError: UV layer UVMap on bpy.data.meshes['Plane.001'] has invalid UVs containing NaN values ` **Exact steps for others to reproduce the error** - Select mesh - Export to FBX (Selected Object) - Export FBX
Oskar Szwajkowski added the
Status
Needs Triage
Type
Report
Priority
Normal
labels 2023-06-29 09:56:08 +02:00
Member

hi, thanks for the report. Error raises due to corrupted mesh. Run Mesh.validate , this will fix the invalid geometry.
Not a bug, closing

hi, thanks for the report. Error raises due to corrupted mesh. Run [Mesh.validate](https://docs.blender.org/api/master/bpy.types.Mesh.html#bpy.types.Mesh.validate) , this will fix the invalid geometry. Not a bug, closing
Blender Bot added
Status
Archived
and removed
Status
Needs Triage
labels 2023-06-29 12:18:27 +02:00
Member

Specifically, running bpy.data.meshes['Plane'].validate() in the Python Console in Blender while in Object Mode will fix the invalid UVs (it's not the same mesh name as is in the error because you're applying modifiers when exporting, which created a new mesh with the modifiers applied as part of the export process).

This is the part of your mesh with invalid NaN UVs:
image

If you're able to reproduce creating these invalid NaN UVs (starting from a mesh that does not have any, so exports as FBX without errors) with only Blender's tools, please create a new report with instructions on how to reproduce creating these invalid NaN UVs. Alternatively, if an addon created these invalid NaN UVs, please report it to the author of that addon instead.

Specifically, running `bpy.data.meshes['Plane'].validate()` in the Python Console in Blender while in Object Mode will fix the invalid UVs (it's not the same mesh name as is in the error because you're applying modifiers when exporting, which created a new mesh with the modifiers applied as part of the export process). This is the part of your mesh with invalid NaN UVs: ![image](/attachments/795cad34-8eb8-4c1e-a8c7-d8cb9258fd8b) If you're able to reproduce creating these invalid NaN UVs (starting from a mesh that does not have any, so exports as FBX without errors) with only Blender's tools, please create a new report with instructions on how to reproduce creating these invalid NaN UVs. Alternatively, if an addon created these invalid NaN UVs, please report it to the author of that addon instead.
468 KiB

@Mysteryem thank you for screen! 👍

@Mysteryem thank you for screen! 👍
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
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#109489
No description provided.