Search Issue Tracker

Third Party Issue

Votes

0

Found in

2021.3.29f1

2022.3.6f1

2023.1.6f1

2023.2.0b2

Issue ID

UUM-44768

Regression

No

GizmoManager.DrawGizmos never finishes loading when opening Scene

--

-

Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/OpenMe.unity” Scene

Expected result: The Editor opens the Scene and allows to continue work
Actual result: GizmoManager.DrawGizmos never finishes loading

Reproducible with: 2021.3.29f1, 2022.3.6f1, 2023.1.6f1, 2023.2.0b2

Reproduces on: Windows 10 Enterprise 21H2

Notes:
- Project has a Gizmo function to draw a trajectory using the spell system, which calls this during an OnDrawGizmos. This would hang if Time.deltaTime is 0

  1. Resolution Note:

    The fault is an infinite while loop in the project code, which assumes that Time.deltaTime > 0. On the first frame, deltaTime will be 0 as there is no previous frame to calculate delta against.

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.