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
- [Dragon Crashers] Build fails in U6
- [Dragon Crashers] 4 Shader error messages on import
- [Dragon Crashers] Readme text is white on light grey
- Cursor stays in front of the first character when entering text in the TextMeshPro field
- Searching in Hierarchy causes unwanted component calls
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.