Bug 42329 - ListView in Frame and FormsAppCompatActivity Memory Leak
Summary: ListView in Frame and FormsAppCompatActivity Memory Leak
Status: VERIFIED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.3.1
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-07-01 19:02 UTC by Jacob Biehl
Modified: 2016-08-12 15:03 UTC (History)
6 users (show)

Tags: Android ac
Is this bug a regression?: ---
Last known good build:


Attachments
sample projects demonstrating leak (115.01 KB, application/x-zip-compressed)
2016-07-01 19:02 UTC, Jacob Biehl
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Jacob Biehl 2016-07-01 19:02:06 UTC
Created attachment 16553 [details]
sample projects demonstrating leak

Similar to bug 40955, there seems to be a memory leak when a listview is embedded in a frame using FormsAppCompatActivity.

Attached are two projects(following from 40955) that have, in the XAML a listview embedded in a frame on the ToDoList.xaml markup.  The Contacts page is the same as ToDoList, but without <Frame><ListView/></Frame>.  Contacts is garbage collected, ToDoList is not.

The same configuration using FormsApplicationActivity creates correct behavior (ToDoList is garbage collected).

Using XF 2.3.1
Xamarin 4.1
VS 2015 U3
Comment 1 Samantha Houts [MSFT] 2016-08-02 21:34:46 UTC
Should be fixed in 2.3.2-pre1. Thank you!
Comment 2 Parmendra Kumar 2016-08-12 15:03:37 UTC
I have checked this issue with Xamarin.Forms 2.3.2-pre1 and Its working fine.

Hence closing this issue.


Thanks.