Search Issue Tracker
Fixed in 2021.2.X
Votes
0
Found in
2019.4
2020.2
2020.2.2f1
2021.1
Issue ID
1310288
Regression
Yes
IProgress<>.Report() raises infinite callback when a struct with a NaN constant is passed
How to reproduce:
1. Open the user's attached project
2. In the top bar menu select Tests > Test Editor
3. Click on the 'Test BAD' button in the Test Editor window
Expected result: Only one callback gets raised, "BAD : Start ...", "BAD : ... END", "ReceiveProgress | value:NaN" messages get logged in the Console
Actual result: Editor becomes unresponsive, an infinite number of callbacks are raised (messages don't get logged in the Console)
Reproducible with: 2019.4.19f1, 2020.2.3f1, 2021.1.0b5
Not reproducible with: 2018.4.31f1, 2021.2.0a1, 2021.2.0a3
Notes:
- The issue doesn't reproduce with the .NET Console Application
- The issue doesn't reproduce when the struct is not used
- The issue is also reproducible when other data types are used instead of float (e.g. double.NaN)
- Callbacks get logged in the Editor.log file
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
- Player settings icons are not retrieved when using "PlayerSettings.GetIcons" method on PS4, PS5, Xbox
- Changes of MaterialPropertyBlock via Script reset when Sprite Renderer.Color is changed in animation
- Frame Debugger flickers when a Shader Graph Window is open
- [Linux] Poor performance in the Editor when processing input events in "OnGUI" function
- [HDRP] Water displacement fades when camera move far in worldspace.
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0a1