Search Issue Tracker
Won't Fix
Won't Fix in 2023.1.X
Votes
0
Found in
2020.3.41f1
2021.3.12f1
2022.1.21f1
2022.2.0b13
2023.1.0a17
Issue ID
UUM-18855
Regression
No
Unity Editor freezes when Task is run faster than every 1000ms
Reproduction steps:
1. Open the user’s attached project
2. Enter the Play Mode
3. In the Simulator view, click “Start”
4. In the upper-right corner, under “SPAWN TIME”, change 1 to 0.99
Expected result: Cubes are spawned faster
Actual result: Unity Editor freezes
Reproducible with: 2020.3.41f1, 2021.3.12f1, 2022.1.21f1, 2022.2.0b13, 2023.1.0a17
Reproducible on: Windows 11 Pro 21H2
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
- Font character thickness does not adjust properly in UI Toolkit text when changing Bold Weight in Font Asset
- Multiple "[...] is inaccessible due to its protection level" errors are thrown when opening project with Unity Version Control installed
- Sorting icons are tiny and misaligned in Import Activity window
- The Undo system does not record HideFlags.HideInHierarchy changes
- [Linux] Bug Reporter window is in Light mode when the Editor theme is Dark mode
Resolution Note:
The issues is with the user code (int)_uiSpawnTime * 1000 results in a wait time of 0.
`await Task.Delay(0)` will be executed synchronously and control of the main thread will never be release. `Math.Max((int) (_uiSpawnTime * 1000), 1)` should solve the issue.
Resolution Note (2023.1.X):
The issues is with the user code (int)_uiSpawnTime * 1000 results in a wait time of 0.
`await Task.Delay(0)` will be executed synchronously and control of the main thread will never be release. `Math.Max((int) (_uiSpawnTime * 1000), 1)` should solve the issue.