xamarin/Xamarin.Forms

[UWP] Listview memory leak

Open

#3,065 opened on Jun 18, 2018

View on GitHub
 (22 comments) (6 reactions) (0 assignees)C# (1,926 forks)batch import
a/listviewe/6 :clock6:help wantedin-progressm/high impact :black_large_square:p/1p/UWPpartner/cat 😻t/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description

using a large data set as ItmesSource of xamarin forms listview produce a memory leak in UWP and when I tried the same behavior in native uwp I didn't able to produce the issue

Steps to Reproduce

  1. add a listview with a complex view cell (nested grids, images, frame and labels)
  2. bind an observableCollection of 3000 item to it
  3. hold the scroll by the mouse and move the mouse up and down quickly
  4. check the memory allocation in windows task manager during list view scrolling or watch the visual studio diagnostic tool memory allocation

Expected Behavior

ListView should work properly in uwp

Actual Behavior

ListView produce a memory leak and performance issues in uwp

Basic Information

  • Platform Target Frameworks:
    • UWP: 16299
  • Nuget Packages: I can produce this with forms 2.5 , 3 , 3 pre4 and the last nightly build 3.1.0.506097

Reproduction Link

xamarin forms https://1drv.ms/u/s!AoIY8oQvWbhGgTFicmMFLddURVgJ uwp without xamarin https://1drv.ms/u/s!AoIY8oQvWbhGgTDaokspB4l3RVk1

also we appreciate if you could release a service release with all the listView issues that fixed in 3 and 3.1 for 2.5 as we have apps target 2.5 and we can't update to 3 because we want to support the earlier version of windows

Contributor guide