Search Issue Tracker
Won't Fix
Votes
0
Found in
5.6.2f1
Issue ID
923924
Regression
No
StaticBatchingUtility.Combine() leaks memory with combined mesh data
The combined mesh data is never getting freed, even though all GameObjects that were used to create the combined mesh have been removed from the scene.
To reproduce:
1. Download attached project "StaticBatchingMemoryLeakTest.zip" and open in Unity
2. Open "TestScene" Scene
3. Enter Play Mode
Expected Result: Memory stays stable
Actual Result: Memory continually increases
Note: You can see as the memory continually increases within the Detailed Memory Profiler: Scene Memory -> Mesh. To see memory usage increase faster, change the "Time Between Creates" on the TestScript GameObject to a lower value. In built players, the memory numbers goes up slower.
Note: This issue appears both on Windows and OSX.
Reproduced on Unity 5.6.2p1, 2017.1.0f1 and 2017.2.0b1
Could not check for regression on Unity 5.5 because scripts becomes corrupted
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
Add comment