Search Issue Tracker
By Design
Votes
0
Found in
2017.1.0f3
Issue ID
945178
Regression
No
Terrain mesh generated around moving camera increasingly allocates memory even if GameObject.Destroy() is used
Reproduction steps:
1. Download project "NavMeshApiDemoLarge.zip" and open in Unity
2. Chose scene "GenerationBug"
3. Select Window -> Profiler -> Memory
4. Enter Play mode
5. In Game view move forward (press "W" + shift) for 10 - 15 seconds
Expected: memory should be freed after GameObject.Destroy() is used (InfiniteTerrain.cs) when distance between mesh and player is further than 700
Actual: memory allocation increases and Game view becomes laggy or Unity crashes
Reproduced: 5.5.4p2; 5.6.3p2; 2017.1.0p5; 2017.2.0b9; 2017.3.0a6
Note: Unity crashes on versions 2017.1.0b2 - 2017.1.0f3 (Error.png) and after some time Meshes allocated memory becomes Unknown in Unity 5.5.4p2 (5.5.4p2 Unity.png)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Profiler connects to a different opened Editor project when more than one project is open and building for WebGL with Autoconnect Profiler enabled
- Creating and then deleting the "Integration Update: Rotation" block breaks and makes unusable VFX Graph
- “ArgumentNullException: Value cannot be null.” when deleting a newly created input action
- Undoing the creation of the "Button - TextMeshPro" GameObject only removes Canvas and EventSystem GameObjects
- NullReferenceException errors are thrown when entering the Play Mode when ShaderGraph window is focused
Add comment