Search Issue Tracker
Active
Under Consideration for 2021.3.X, 2022.3.X, 6000.0.X, 6000.1.X, 6000.2.X, 6000.3.X
Votes
3
Found in
2021.3.45f1
2022.3.51f1
6000.0.25f1
6000.1.0a2
6000.2.0a1
6000.3.0a1
Issue ID
UUM-86352
Regression
No
Garbage Collector memory leak when allocating and deallocating memory in Web builds
How to reproduce:
1. Open the attached “webgl-gc-bug,zip” project
2. Open the “SampleScene”
3. Build and Run the project using the WebGL/Web platform
4. In the built project, click the “Allocate” button 5 times
5. Click the “Clear” button
6. Click the “GC” button
7. Observe the result
Expected result: “monoUsedHeapSize” shows a value of 2 (same as the starting value)
Actual result: “monoUsedHeapSize” shows a higher value, such as 32 or 62
Reproducible in: 2021.3.45f1, 2022.3.51f1, 6000.0.25f1, 6000.1.0a2
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Note: Only reproducible in WebGL/Web build
Comments (1)
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
- [UI Builder] Viewport's gizmos for Margin and Padding disappear when dragging to modify the value and the cursor leaves the Spacing section
- "Multiplayer Center" window does not reflect changes made in "Other Packages" section
- Crash on D3DKMTOpenResource when capturing with RenderDoc while GPU Skinning is set to GPU(Batched)
- Editing and saving Curve changes in UI Builder window throws multiple errors in the Console
- [UI Builder] Value is not selected when left clicking on Spacing/Border Widget values
Astro75
Apr 29, 2025 09:08
Link to github repo that reproduces this issue: https://github.com/astro75/unity-webgl-gc-bug
Link to forum discussion: https://discussions.unity.com/t/unity-web-gc-bug/1559486