Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] Memory Leak in CollectionView ? #15819

Open
govi2010 opened this issue Sep 16, 2023 · 2 comments
Open

[Bug] Memory Leak in CollectionView ? #15819

govi2010 opened this issue Sep 16, 2023 · 2 comments
Labels

Comments

@govi2010
Copy link

Hello Team,

I am new to xamarin. We are using Xamarin application with ReactiveUI implementation.
Screen: We have simple screen with button to show/hide the CollectionView and API call to bind the data to CollectionView.

image

Where ever I scroll the CollectionView or click on show/hide button. More memory is consumed by app.

So After using in for 2 hours or more it will be start giving ANR on android.

I am using Xamarin Profiler to check what's going on under the hood.

What I noticed is that there are 800 students returns from the server.
But on profiler I see 5000+ FileImageSource
I see 5000+ Dictionary<Xamarin.Forms.BindableProperty, Xamarin.Forms.BindableObject.BindablePropertyContex>
I see 5000+ System.Func<System.Reactive.Unit>
I see 5000+ Xamarin.Forms.WeakEventManager.Subcription[]
and Many more......

And this object get increased as I scroll or click on show/hide button.

@govi2010 govi2010 added s/unverified New report that has yet to be verified t/bug 🐛 labels Sep 16, 2023
@govi2010
Copy link
Author

DynamicDataExample.zip
Sample App

@akhanalcs
Copy link

Try .NET MAUI in .NET 8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants