Memory leak using gif?
See original GitHub issueI 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}"
/>
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (7 by maintainers)
Top Results From Across the Web
Memory-leak GIFs - Get the best GIF on GIPHY
Explore and share the best Memory-leak GIFs and most popular animated GIFs here on GIPHY. Find Funny GIFs, Cute GIFs, Reaction GIFs and...
Read more >Memory Leak when displaying animated GIF images #87
Open an animated GIF. pqiv image.gif · After the first animation cycle, memory usage stops increasing. · Memory usage continually increases.
Read more >how to avoid memory leakage from an animated GIF
I'm receiving URLs from server which should be translated to GIFs, These GIFs should animate whenever the user clicks on them or when...
Read more >Gif consumes lot of memory in iOS that leads app to crash with ...
Gif consumes lot of memory in iOS that leads app to crash with OOM : Swift. Gifs are very popular type of media...
Read more >Gif Animation Library - Still having memory leaks
Gif Animation Library - Still having memory leaks ... I am using the gif library from 01010101's github account, which seems to be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub 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.