FFImageLoading: Memory leak using gif?

I am using cachedimage withint listview datatemplate as below and when I profile, I am seeing cycles for LoadingPlaceholder using as gif as shown below? Does it mean that when we use gifs we have memory leak?

    <ffimageloading:CachedImage 	Aspect="AspectFit" WidthRequest="48" HeightRequest="48"    BackgroundColor="Transparent" Margin="5"  
                                        LoadingPlaceholder = "loading.gif" DownsampleToViewSize="True"  
                            CacheType="Disk" CacheDuration="30"  TransparencyEnabled = "false"   InputTransparent="True" ErrorPlaceholder="{Binding errorimageurl}"
                                              Source="{Binding imageurl}"
                            />

image

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

Ok i see that you changed the default behavior in this release. using FFImageLoading.Forms.CachedImage.FixedOnMeasureBehavior = false; fixed the size problem

@daniel-luberda yes, it works perfect. i tested with connection, slow connection, without connection all cases passed. only i found a small problem with the ErrorPlaceholder. If I have image inside grid without fix height weight using Aspect=“AspectFit”, Image is fitting fine inside grid but when no connection, ErrorPlaceholder doesnt fit, it appears very small.