Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2020.3.X, 2021.1.X, 2021.2.X
Votes
0
Found in
2019.4
2020.3
2021.1
2021.2
2021.2.0b6
2022.1
Issue ID
1362505
Regression
No
Memory leak occurs in Player as SharedGeometryBuffers mismatches memory labels for NEW and DELETE
How to reproduce:
1. Open the attached project "URP_template_2021.zip"
2. When using 2021.2.0b1 and above, go to Edit > Project Settings > Memory Settings > Players > Main Allocators > Shared Bucket Allocator, and set Bucket Allocator Block Count to 1 MB
3. In File > Build Settings, make sure that Scenes/Startup, Scenes/SampleScene, and Scenes/Empty are added to Scenes In Build, and Development Build and Autoconnect Profiler are enabled
4. Build and Run
5. In Editor, open Window > Analysis > Profiler, and make sure that the Memory module is chosen and view is set to Detailed
6. In the Profiler tab, click the Take Sample button
7. In the snapshot, check the value for Other > Objects
8. Repeat steps 6-7
Expected results: the value stays the same
Actual results: the value increases
Reproducible with: 2019.4.29f1, 2020.3.18f1, 2021.1.20f1, 2021.2.0b11, 2022.1.0a7
Not reproducible with: 2019.4.30f1
Notes:
- The issue is reproducible on Windows Standalone builds
- The issue occurs because m_GeometryBuffers in Mesh is allocated as kMemSerialization, and deallocated as kMemGeometry
Comments (1)
-
SLGSimon
Dec 08, 2021 13:13
Is this an actual memory leak, or just a reporting issue?
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0a10
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.1f1
Resolution Note (fix version 2021.1):
Fixed in: 2021.1.26f1
Resolution Note (fix version 2020.3):
Fixed in: 2020.3.24f1