-
Notifications
You must be signed in to change notification settings - Fork 1.9k
ListView/CollectionView memory leak under Windows #9162
Copy link
Copy link
Closed
Labels
area-controls-collectionviewCollectionView, CarouselView, IndicatorViewCollectionView, CarouselView, IndicatorViewarea-controls-listviewListView and TableViewListView and TableViewfixed-in-7.0.100fixed-in-7.0.101fixed-in-7.0.81Look for this fix in 7.0.81!Look for this fix in 7.0.81!fixed-in-7.0.92Look for this fix in 7.0.92!Look for this fix in 7.0.92!fixed-in-8.0.0-preview.1.7762Look for this fix in 8.0.0-preview.1.7762!Look for this fix in 8.0.0-preview.1.7762!p/1Work that is important, and has been scheduled for release in this or an upcoming sprintWork that is important, and has been scheduled for release in this or an upcoming sprintperf/generalThe issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf)The issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf)platform/windowst/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
A simple repro (see link below) demonstrates a ListView/CollectionView memory leak under Windows.
Each time the ItemSource gets updated with the exact same list, the app memory usage increases.
The repro is a simplification, normally the ListView/CollectionView gets filled through a binding. However the repro still demonstrates the same problem.
See this video for a demonstration:
ListviewMemoryTester.mp4
I'm a VS Community user so do not have access to the Xamarin Profiler to see if the problem also exists in Android and iOS.
Steps to Reproduce
- Open the app from the repro in VS: https://github.com/hbraasch/ListViewMemoryTester.git
- Set the platform to [Windows] and run
- Click on the refresh button in the toolbar, see how the memory usage increases
- Click on the [Click to launch [CollectionView] page] button, which launches the page based on a CollectionView
- Click on the refresh button in the toolbar, see how the memory usage also increases
Version with bug
6.0.408 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
net6.0-windows10.0.19041.0
Did you find any workaround?
No
Relevant log output
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-controls-collectionviewCollectionView, CarouselView, IndicatorViewCollectionView, CarouselView, IndicatorViewarea-controls-listviewListView and TableViewListView and TableViewfixed-in-7.0.100fixed-in-7.0.101fixed-in-7.0.81Look for this fix in 7.0.81!Look for this fix in 7.0.81!fixed-in-7.0.92Look for this fix in 7.0.92!Look for this fix in 7.0.92!fixed-in-8.0.0-preview.1.7762Look for this fix in 8.0.0-preview.1.7762!Look for this fix in 8.0.0-preview.1.7762!p/1Work that is important, and has been scheduled for release in this or an upcoming sprintWork that is important, and has been scheduled for release in this or an upcoming sprintperf/generalThe issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf)The issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf)platform/windowst/bugSomething isn't workingSomething isn't working