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
- Some UXML Template Asset foldouts appear enabled when all fields inside are disabled
- URP Terrain Demo crash on burst_signal_handler after Generating lighting
- Project window button icons are poorly visible and their shades differ in Light theme
- GC.Alloc called by HDRenderPipeline.LensFlareMergeOcclusionDataDrivenPass() when playing the default HDRP Sample Template project
- Automatic LOD fails and SRP Batcher incompatibility occurs when using spline-based quad-topology meshes
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0a1