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
- UI Overlay Image gets darker on each Camera when multiple Cameras are used
- Assertion failed on expression: 'scriptedImporterClass == SCRIPTING_NULL error when opening the standalone profiler window
- Disabled assets in Import Unity Package window aren't tracked but count as being selected by user
- [Windows] Crash on GetManagerFromContext when video is playing and creating High Definition 3D Projects after FMOD failed to switch back to normal output Error appeared
- GC Alloc produced when adding items to MultiColumnListView with Auto Assign Binding
Add comment