Search Issue Tracker

Fixed

Fixed in 2021.3.33f1, 2022.3.15f1, 2023.2.2f1

Votes

4

Found in

2021.3.25f1

2022.2.19f1

2023.1.0b16

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|https://docs.unity3d.com/Manual/webgl-debugging.html|smart-link]

Comments (1)

  1. devluz

    May 25, 2023 05:22

    It appears I run into the same issue with AsyncGPUReadbackRequest.Request

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.