How to reproduce:
1. Open “memoryLeak“ project
2. Navigate to File → Build and Run
3. In Player press space (keyboard)
4. Navigate to Window → Analysis → Memory Profiler
5. In the Memory Profiler window press “Capture New Snapshot“
6. Select the Player window
7. Press space twice
8. Repeat step 3
9. Observe the Total Memory of the Snapshots in the Memory Profiler
Expected result: No significant difference in memory
Actual result: More memory is allocated in the second Screenshot
Reproducible with: 2022.3.28f1 (3.0.8), 6000.0.0f1 (uGUI 2.0.0)
Not reproducible with: 2022.3.28f1 (3.2.0-pre.1)
Could not test with: 2021.3.38f1 (full memory is not captured)
Reproducible on: Windows 10, Windows 11
Not reproducible on: No other environment tested
Notes:
- Make sure that the Memory Profiles is connected to the Player
- Regression happened at the TextMeshPro package version 3.2.0-pre.1 (refer to internal notes)