-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS memory leaks when render WebP images #738
Comments
Hi, We've been dealing with a memory leaks reports from sentry related with Have you considered to upgrade |
Of course, There is an issue SDWebImage/SDWebImageWebPCoder#46 |
有解决办法吗?同求 |
No yet. I think you can put +1 here |
How are you guys even getting WebP to work? I'm on 8.3.4 and I can't even load WebP images. |
I used to use FastImage to support webp. But it takes up too much memory. How to solve it |
FastImage memory leak issue when loading webp images, any fixes or alternative for this? |
@amalmohann any evidence? Profiler results? |
@Stafox i was testing this in iPhone 12. my phone got heated up and after a while it closed with memory exception. Once removed the package everything went back to normal and haven't had any issue since. But now the image loading is very slow. |
maybe problem with you unoptimized flatlist or whatever you use. So, debug it and share iOS profiler results to see what exactly leaks. Information about number of images on screen also can be helpful. Otherwise do not expect that it can be fixed without steps of reproduce. |
I have a similar problem with Flatlist and infinite scroll, the ram increase while scrolling, and then the app crashed. |
Maybe I solved it by updating the graphics library used on iOS, just update the following file found in the react-native-fast-image library with the new versions, and run the pod update command on the iOS folder
|
I have the same problem, the FFFastImageView is not being released, does anyone know how to fix it? |
Describe the bug
I use the library to render WebP images inside FlatList. Number of images about 100.
Have see memory leaks like described here #622 and here #560
Looks like issue connected with [SDWebImage/SDWebImageWebPCoder] (discussion here)(https://github.com/SDWebImage/SDWebImageWebPCoder).
To Reproduce
Render WebP images inside your application.
Expected behavior
No memory leaks while WebP images are rendering.
Dependency versions
The text was updated successfully, but these errors were encountered: