question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Memory leak using gif?

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
EmilAlipievcommented, Dec 17, 2017

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

1reaction
EmilAlipievcommented, Dec 16, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found