Full error message text:
Triangle mesh contains invalid values (NaNs). They will be removed internally to ensure the scene renders without potential crashes.
Scene node with the problem: <object name>
Explanation
This error occurs when an object’s geometry contains invalid data — specifically when its vertices, normals, or texture coordinates (UVWs) include NaN (Not a Number) values, infinite, or near-infinite values.
To prevent crashes or rendering issues, Corona automatically replaces these problematic values with safe defaults:
Vertices with invalid positions are reset to (0, 0, 0) — the center of the object’s local space.
Problematic UVWs are set to (0, 0, 0).
Invalid normals are set to (0, 0, 1) — pointing along the object’s local Z-axis.
Important Note
Although these corrections prevent rendering crashes and artifacts such as NaN pixels (black spots in the rendered image), they may cause the affected objects to render incorrectly. This is because the adjusted data no longer accurately represents the original model.
However, without these automatic fixes, the rendering process would likely fail completely or produce unstable results.
Recommended Action
To resolve this issue:
Identify the object mentioned in the error message.
Check its geometry for:
Corrupted or degenerate vertices
Problematic modifiers or imported meshes
Incorrect UVs or normals
Rebuild, re-export, or clean up the mesh as needed before re-rendering.