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
- [Linux] Cannot reorder GameObjects in the Hierarchy when the AI Assistant package is installed
- [iOS] Text Input field stops receiving changes when the "Cancel" button is used on the soft keyboard
- [WebGPU] URP RenderGraph RenderPass doesn't clear textures
- Query Builder items display raw code style names instead of human readable labels in search field
- “+” button does nothing and has no functionality when clicked in Human Template "Bone Template" list
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.