Search Issue Tracker
Fixed
Fixed in 2021.3.45f1, 2022.3.49f1, 2023.3.0b10
Votes
2
Found in
2021.3.33f1
2022.3.16f1
2023.2.4f1
2023.3.0a19
Issue ID
UUM-59367
Regression
No
WebGL Player leaks memory when allocating delegate functions
How to reproduce:
1. Open the “WebGL_Player_EventLeak_Issue“ project
2. Open the “MemoryTest” scene
3. Make sure to switch the Platform to “WebGL” (File > Build Settings > “WebGL” > “Switch Platform”)
4. Build And Run
5. In the Player press the F key then wait for 2 seconds
6. Press the L key
7. Observe the “Average growth max used” text
Expected result: The average growth is around 0.11 Mb/Frame
Actual result: The average growth is around 0.38 Mb/Frame
Reproducible with: 2021.3.33f1, 2022.3.16f1, 2023.2.4f1, 2023.3.0a19
Reproduced on: Windows 11
Not reproduced on: No other environment tested
Browser reproduced on: Firefox, Edge, Chrome
Notes:
1. Not reproducible in the Editor
2. Not reproducible in the Windows Player
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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note (fix version 2023.3.0b10):
Fix by improving Web platform documentation to highlight the limitation that WebAssembly VMs cannot collect in the middle of executing C# code. Documentation has been updated here: https://docs.unity3d.com/2023.3/Documentation/Manual/webgl-memory.html.
Resolution Note (fix version 2021.3.45f1):
Issue is expected to happen, Documentation has been updated with additional information.
Link for 2021.3: https://docs.unity3d.com/2021.3/Documentation/Manual/webgl-memory.html