Search Issue Tracker

Third Party Issue



Found in





Issue ID




"Assertion failed on expression: ..." and "Invalid AABB ..." errors spammed in the Console when entering Play Mode



Reproduction steps:
1. Open the attached “repro-project“
2. Open the “Assets/HDRP Anim Desert.unity“ scene
3. Enter Play Mode
4. Observe the Console

1. Create a new 3D (HDRP) project
2. Download and import the attached ”” and ““ into the Assets folder of the Project window
3. Open the “Assets/HDRP Anim Desert.unity“ scene
4. Enter Play Mode
5. Observe the Console

Expected result: No errors are thrown
Actual result: The Console is spammed with errors including “Invalid AABB a“, “Invalid AABB aabb“, and multiple instances of “Assertion failed on expression: ‘IsFinite(distanceForSort)'“, “Assertion failed on expression: ‘IsFinite(distanceAlongView)’“

Reproducible with: 2022.3.16f1, 2023.2.4f1, 2023.3.0a19
Not reproducible with: 2021.3.33f1

Reproduced on: Windows 10
Not reproducible on: No other environment tested

1. If the errors do not appear after entering Play Mode, keep reentering Play Mode until they do
2. Could not find the regression point due to the amount of time it takes to test the issue on one version

  1. Resolution Note:

    This is a third party issue where a scripts sets NaN as a position for a transform.

Comments (4)

  1. AetherMFP

    Mar 23, 2024 19:09

    Would be a nice small feature to add into Unity 6 and previous versions to tell u what script is causing Invalid AABB inAABB, as pin pointing it as seen in forms seems almost impossible.

  2. AetherMFP

    Mar 23, 2024 18:51

    I don't recall adding a third party asset that changes that even in a brand new project with different assets, unrelated but the assertionfailed is still causing it??

  3. wilgieseler

    Mar 22, 2024 19:51

    What third party assets? This is extremely difficult to fix because there is no stacktrace.

  4. AetherMFP

    Mar 15, 2024 23:44

    This still occurs in unity 6000

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.