Search Issue Tracker
Fixed
Fixed in 6000.0.47f1, 6000.1.0b15, 6000.2.0a9
Votes
0
Found in
6000.0.45f1
6000.1.0b13
6000.2.0a8
Issue ID
UUM-101626
Regression
No
Awaitable.NextFrameAsync causes GC Alloc 0.7 KB when using CancellationToken
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/TestAwaitableAlloc.unity” Scene
3. Enter the Play Mode
4. Click the Button with the text "NextFrameAsync"
5. Click the Button with text “NextFrameAsyncCancellationToken“
6. Open Profiler window (Window > Analysis > Profiler)
7. In Profiler’s Hierarchy, go to “PlayerLoop > Update.ScriptRunDelayedDynamicFrameRate > CoroutinesDelayedCalls >Awaitable.OnUpdate() [Invoke] > GC.Alloc”
8. Observe the GC Alloc
Expected result: GC Alloc is 0 KB
Actual result: GC Alloc is 0.7 KB
Reproducible with: 6000.0.45f1, 6000.1.0b13, 6000.2.0a8
Could not test with: 2022.3.60f1 (Assets\Scenes\TestAwaitableAlloc.cs(29,15): error CS0246: The type or namespace name 'Awaitable' could not be found)
Reproducible on:
Play Mode
Windows Standalone Player
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Note:
- Discussions thread https://discussions.unity.com/t/does-awaitable-nextframeasync-cause-large-allocations-with-cancellationtoken/1620767
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- ScrollView clips content when under an ancestor that has a filter set
- "Retrieving array element that was out of bounds" error thrown when attempting to remove a column from a Multi-Column List View
- Multi-Column List View horizontal scroll resets to left most position when scrolling vertically
- Floating License is lost for concurrent jobs
- Warning "Failed to insert item" is logged when Assigning Project to Organization's Project in the Project Settings
Add comment