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
- Assets are created in the Package folders when creating assets via custom buttons in the Inspector window or other windows
- “Select” windows are named differently on Windows and macOS
- [Windows] No minimum “Select” window size
- Enabling “Editor Extension Authoring” in UI Builder doesn’t dirty the document and saving with shortcut doesn’t persist the state
- WebRequest.Create() function fails with "URI prefix is not recognized" errors when the project is built for Linux Standalone or Windows Dedicated Server
devluz
May 25, 2023 05:22
It appears I run into the same issue with AsyncGPUReadbackRequest.Request