daniel-luberda / DLToolkit.Forms.Controls

Xamarin.Forms Custom Controls
Apache License 2.0
393 stars 182 forks source link

Heavy lags when connected with debugger to Android on VS2019 16.9.2 and newer #297

Open Sebastian1989101 opened 3 years ago

Sebastian1989101 commented 3 years ago

When using VS2019 16.9.2 on Windows, the app becomes unusable as long as FlowListView is in it. Every page that uses this control lags as hell when the debugger is connected. As soon as there is no debug connection, I use a older VS2019 Version or removing FLV, I have no lags at all.

There was a similar known issue with SkiaSharp which is solved in the latest version there. Maybe it's kinda the same problem. See: https://github.com/mono/SkiaSharp/issues/998

Sebastian1989101 commented 3 years ago

Seems like this comes from a memory leak in ListViewCachingStrategy.RecycleElement.

Duanyll commented 2 years ago

The issue still exists. It keeps creating thousands of views which can be observed from the live tree:

image

However there are only 12 items on screen.