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
- Audio Mixer does not change volume when lowering volume on an Audio Mixer loaded from AssetBundles
- Error “Value cannot be null. Parameter name: key UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)” thrown and Addressables build fails when "Include in Build" is disabled and using Addressables For Android package
- “error CS0433: The type 'CodeBinaryOperatorType' exists in both 'System.CodeDom and 'System" compilation errors are thrown when opening a specific project
- Metal Vertex Shader warning is being thrown when creating a VR Template Project
- Asset database warning is thrown when declaring font variable in the USS text file
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.