Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4.0f1
2018.4.0f1
2019.1.0a1
2019.1.0f2
2019.2.0a1
2019.3.0a1
Issue ID
1155936
Regression
No
Memory leaks and Editor crashes/freezes when code is stuck in for-loops with allocations.
How to reproduce:
1. Open attached project
2. Select Grid
3. Change it's Size value to 0.1
Reproducible with: 2017.4.27f1, 2018.4.1f1, 2019.1.3f1, 2019.2.0b2, 2019.3.0a3
Expected results: Gizmos should accept decimal values
Actual results: crash/freeze because of the memory leak
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
- “GetAllOverlapping failed…” error when clicking a GameObject during a custom picking pass in the Scene view for the second time
- “NullReferenceException” thrown when moving control points on a tree branch in Scene view
- [Linux] Player window unexpectedly resizes to monitor dimensions when calling "Screen.SetResolution" function with hardcoded resolution matching current display's width or height
- Color picker does not show the correct color when selecting color on the moving object
- “Asset X has no meta file, but it's in an immutable folder. The asset will be ignored.” errors are thrown when importing package with files not listed in package.json's "files" property
Resolution Note (2019.3.X):
Hi,
After a quick look at the code, the code gets stuck in the for-loops defined in OnDrawGizmos() when you start setting a decimal value starting with "0".
Be aware that OnDrawGizmos() is automatically called within the Editor while you are modifying properties in the inspector. I would suggest a 0 value check before entering in the loops.