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
- CollisionIgnore() resets all Colliders when resetting only one Collider
- URP Lens Flare is rendered in the wrong position when Render Graph Compatibility Mode is enabled and Render Scaling is not 0
- Editor crashes on DrvPresentBuffers when loading RenderDoc while using OpenGLES 3.0 or OpenGLES 2.0 Graphics API
- [Test Runner] Incorrect name under Window > Panel after project restart
- [iOS] Crash when using fallback fonts created at runtime
Add comment