Search Issue Tracker
Fixed in 2021.3.33f1
Fixed in 2021.3.X, 2022.3.15f1, 2023.2.2f1, 6000.0.X
Votes
4
Found in
2021.3.25f1
2022.2.19f1
2023.1.0b16
6000.0.37f1
Issue ID
UUM-36066
Regression
No
AsyncGPUReadback.RequestIntoNativeArray causes memory leaks in WebGL Player
How to reproduce:
1. Open the “AsyncGPUReadback_Warning” project
2. Switch build to “WebGL” (File > Build Settings > “WebGL” > Switch Platform)
3. Build And Run (File > Build And Run)
4. In Player open the browser console
5. Click on the Button labeled “Render” 8-10 times
6. Observe the browser console
Expected result: no “JobTempAlloc“ warnings are logged to the browser console
Actual result: “JobTempAlloc“ warning is logged to the browser console
Reproduced with: 2021.3.25f1, 2022.2.19f1, 2023.1.0b16
Could not test with: 2020.3.48f1 (AsyncGPUReadback.RequestIntoNativeArray does not execute → “clientWaitSync” warnings are logged / “asynchronous readback” is not supported), 2023.2.0a14 (Player does not fully load)
Browser reproduced on: Firefox, Chrome, Edge
Reproduced on: Windows 11
Warning logged to the browser console:
{noformat}Internal: JobTempAlloc has allocations that are more than 4 frames old - this is not allowed and likely a leak{noformat}
Notes:
1. Not reproducible in Editor
2. Not reproducible in Windows Platform Player
3. The browser console can be opened by different shortcuts. These shortcuts are also different for each browser. The default shortcuts can be located here https://docs.unity3d.com/Manual/webgl-debugging.html
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
devluz
May 25, 2023 05:22
It appears I run into the same issue with AsyncGPUReadbackRequest.Request