Search Issue Tracker

Won't Fix

Votes

27

Found in

2022.3.28f1

6000.0.1f1

Issue ID

UUM-72241

Regression

No

MultiColumnListView causes a memory leak when repeatedly shown and hidden

--

-

Reproduction steps:
1. Open the attached "MCListViewTest" project
2. Open the "Assets/Scenes/SampleScene" scene
3. Enter the Play mode
4. Open the Task Manager
5. Observe the Unity Editor memory usage
6. In the Game view, click on the left "Show / Hide" button 20 times
7. Observe the Unity Editor memory usage in the Task Manager

Expected Result: Memory usage has not increased
Actual Result: Memory usage has increased a lot

Reproducible with: 2022.3.28f1, 6000.0.1f1
Could not test with: 2021.3.38f1 (MultiColumnListView feature does not exist)

Reproducible on: Windows 11 Pro
Not reproducible on: No other environments tested

  1. Resolution Note:

    Changing the columns visibility requires a rebuild of the list which will result in allocations. This is unavoidable. We have improved the performance so less rebuilding is done per frame but there will always need to be at least 1.
    Memory will be decreased when the .Net garbage collector runs.

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.