React-native-fast-image: Crash due to memory issue iOS & Android

Created on 26 Feb 2019  ·  5Comments  ·  Source: DylanVann/react-native-fast-image

Hello,
I am heavily using Fast Image in my app since I have large lists (with 300+ elements) to render with an image on the every item.

I have noticed that on old devices for example iPhone 6, 5s etc. and a lot of Android phones the app crashes and in Xcode (for iPhones) the crash reported: Memory issue

If I remove fast image and use normal Image component the crash dissapear.

What should I do?
Is this due to a memory leak?

I have tried to follow this #371 which reports how to fix memory leaks but it does not work.

What should I do?

Best regards,
Marco

Most helpful comment

any news about this?
in Android, using this lib causing huge memory usage and crashes on low-android-versions devices!

All 5 comments

Hi @marf

My previous PR was only for iOS, I don't know if there is memory leaks on Android, and if there is I don't know what cause them neither.

Can I ask you to try to see if my new PR #433 at least fix the memory leak on iOS for you ?

I remember you said you couldn't compile #371 before, and I found out that there is a bug with npm & yarn. I put instruction about how to try my PR in the comment.

Please try it out and let me know.

I think I'm still getting crashes due to memory? The crashes are very few and these devices have less than 5% memory left on device.

Fatal Exception: NSInvalidArgumentException-[UIViewAnimationState url]: unrecognized selector sent to instance 0x110c428e0 Raw Text
--
0 | CoreFoundation | __exceptionPreprocess
4 | CoreFoundation | _CF_forwarding_prep_0
5 | FFFastImageView.m line 79-[FFFastImageView imageDidLoadObserver:]

@evanjmg

Fatal Exception: NSInvalidArgumentException-[UIViewAnimationState url]: unrecognized selector sent to instance 0x110c428e0 Raw Text

This isn't related to memory leak error. Most likely what you said here https://github.com/DylanVann/react-native-fast-image/pull/433#discussion_r272848702

any news about this?
in Android, using this lib causing huge memory usage and crashes on low-android-versions devices!

关于这个的任何消息?
安卓中,使用此lib中会导致大量内存使用并在低版本的Android的设备上崩溃!

is there any news

Was this page helpful?
0 / 5 - 0 ratings