xamarin/Xamarin.Forms

[Bug] GroupHeaderTemplate leaks Memory

Open

#6,761 opened on Jul 3, 2019

 (5 comments) (0 reactions) (0 assignees)C# (1,926 forks)batch import
a/listviewa/performancee/3 :clock3:help wantedin-progressp/iOS 🍎t/bug :bug:up-for-grabs

Repository metrics

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

Description

Description

When I repeat that I add items to ListView with GroupHeaderTemplate and clear items, GC.GetTotalMemory(true) is increasing.

Steps to Reproduce

  1. Create ListView with GroupHeaderTemplate
  2. Add items and clear items.
  3. Repeat "2.".

Expected Behavior

GC.GetTotalMemory(true) dosen't increase.

Actual Behavior

GC.GetTotalMemory(true) increases.

Basic Information

  • Version with issue: 4.1.0.555618
  • Last known good version: I don't know
  • IDE: Visual Studio 2019 Professional
  • Platform Target Frameworks:
    • iOS: 12.3.1
  • Nuget Packages:
  • Affected Devices: iPod touch 6

Screenshots

sorry for this isn't specified format MomentAppCrashes.mp4.zip

Reproduction Link

MemoryTest.zip

Contributor guide