Search Issue Tracker
Won't Fix
Votes
1
Found in [Package]
4.2.0
5.0.0-pre.1
Issue ID
FBX-437
Regression
No
FBX Exporter throws a KeyNotFoundException when exporting a high-polygon mesh
Reproduction steps:
# Open the attached “TempFBXExportRepro” project
# Open the “SampleScene” scene
# In the Hierarchy right-click on “DoesNotExport” GameObject
# In the context menu select “Export To FBX…”
Expected result: No errors in the Console
Actual result: Export is unsuccessful, error in the Console
Reproducible with: 4.2.0, 5.0.0-pre.1 (2020.3.42f1, 2021.3.15f1, 2022.1.24f1, 2022.2.1f1, 2023.1.0a22)
Reproduced on: Windows 10
Part of the error:
KeyNotFoundException: The given key '(NaN, NaN, NaN)' was not present in the dictionary.
System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <d6232873609549b8a045fa15811a5bd3>:0)
UnityEditor.Formats.Fbx.Exporter.ModelExporter.ExportMesh (UnityEditor.Formats.Fbx.Exporter.ModelExporter+MeshInfo meshInfo, Autodesk.Fbx.FbxNode fbxNode) (at Library/PackageCache/com.unity.formats.fbx@4.1.2/Editor/FbxExporter.cs:892)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The Scrollbar becomes unusable when adding Elements to the List
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
Resolution Note:
Closing this bug as first it is very old and unlikely to still be a problem.
Also, looking at the code, this looks like a faulty input mesh asset that contains NaN values.