Bug 60076 - Memory Leaked in ListView Xamarin.forms
Summary: Memory Leaked in ListView Xamarin.forms
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-10-10 06:49 UTC by Dhaval Patel
Modified: 2017-12-19 19:58 UTC (History)
4 users (show)

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

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 for Bug 60076 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Dhaval Patel 2017-10-10 06:49:59 UTC
We have created a ListView that is a child of Grid, below is the code Xaml Code.

<Grid Padding="10,10,10,10">
            <RowDefinition Height="*" />
            <RowDefinition Height="40" />

            ItemsSource="{Binding EmailWithList,Mode=TwoWay}" x:Name="EmailWithList" SelectedItem="{Binding SelectedEmailWith,Mode=TwoWay}">
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="30" />
                            <Label Text="{Binding Name}" FontSize="15" FontAttributes="Bold" HorizontalOptions="Start" VerticalOptions="Center" Style="{StaticResource formLabel}" />
                            <Image Source="{Binding ImageName}" Grid.Column="1">
                                    <TapGestureRecognizer Command="{Binding Path=BindingContext.ImageSelectedEmailWithCommand, Source={x:Reference Name=EmailWithList}}"   CommandParameter="{Binding Value}"/>

        <ctrl:ZCButton ButtonType="Orange" Text="{i18n:TranslateExtension Text=Btn_Update}" Grid.Row="1" HorizontalOptions="FillAndExpand" Command="{Binding UpdateEmailWith}"/>

When we navigate this screen back and forth at some time application suddenly crashes. we have researched and found that it's because of memory leak in android.

Please help us out in this .
Comment 1 Paul DiPietro [MSFT] 2017-10-10 11:11:41 UTC
You have not specified a version. Have you tested your application with the latest 2.4.0 stable?
Comment 2 Dhaval Patel 2017-10-10 13:24:17 UTC
Hey Paul,

Thanks for your reply, today I have take latest version of Xamarin.forms 2.4.0 so will check it in android device and let you know.
Comment 3 Dominic 2017-10-23 15:10:41 UTC

i got the exact same Bug with iOS. Tested it on latest stable Version of Xamarin.Forms

The crash always occurs on GestureRecognizer Binding. Tryed it with Code and with XAML. Always crashingon binding.
Comment 4 Dhaval Patel 2017-10-25 12:39:48 UTC
Hello Paul,

I have checked with latest version of Xamarin.forms ( but still it will crash in android device.
Comment 5 Dhaval Patel 2017-11-30 08:23:48 UTC
Any Updated on this ?
Comment 6 Jon Goldberger [MSFT] 2017-12-19 19:58:08 UTC
Possibly a dupe of #43583 ?