Search Issue Tracker
Fixed
Fixed in 2.9.8, 3.0.0-pre.8
Votes
0
Found in [Package]
2.9.7
3.0.0-pre.7
Issue ID
CMCL-1508
Regression
Yes
NaN input position error is flooded in Play Mode when CinemachineCollider generates a damped value
Reproduction steps:
1. Open the “NaNPosition“ project
2. Open the “Sample” scene
3. Enter Play Mode and observe the Console
Expected result: No errors
Actual result: “transform.position assign attempt for 'Main Camera' is not valid. Input position is { NaN, NaN, NaN }.” error is flooded
Reproduced in: 2.9.2 (2021.3.30f1), 2.9.7 (2022.3.8f1), 3.0.0-pre.7 (2023.1.11f1, 2023.2.0b7, 2023.3.0a2)
Not reproduced in: 2.9.1 (2021.3.30f1)
Reproduced on: MacOS 13.4.1 (Intel)
Not reproduced on: No other environment tested
Note: Not reproduced in Player
Full error:
transform.position assign attempt for 'Main Camera' is not valid. Input position is { NaN, NaN, NaN }.
UnityEngine.Transform:set_position (UnityEngine.Vector3)
Cinemachine.CinemachineBrain:PushStateToUnityCamera (Cinemachine.CameraState&) (at ./Library/PackageCache/com.unity.cinemachine@2.9.7/Runtime/Behaviours/CinemachineBrain.cs:966)
Cinemachine.CinemachineBrain:ProcessActiveCamera (single) (at ./Library/PackageCache/com.unity.cinemachine@2.9.7/Runtime/Behaviours/CinemachineBrain.cs:744)
Cinemachine.CinemachineBrain:ManualUpdate () (at ./Library/PackageCache/com.unity.cinemachine@2.9.7/Runtime/Behaviours/CinemachineBrain.cs:447)
Cinemachine.CinemachineBrain:LateUpdate () (at ./Library/PackageCache/com.unity.cinemachine@2.9.7/Runtime/Behaviours/CinemachineBrain.cs:402)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Add comment