Skip to content
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 issue #736

Open
wowjdd133 opened this issue Oct 21, 2020 · 6 comments
Open

ios memory issue #736

wowjdd133 opened this issue Oct 21, 2020 · 6 comments
Labels

Comments

@wowjdd133
Copy link

Describe the bug

A memory issue occurs in ios while loading up to 5 feed images in swipe format and 10 feeds at a time and loading up to 50 fast images. Even if you load up to 10 feeds each, a memory issue occurs and the app crashes.

Dependency versions

  • React Native version: 0.60.6
  • React version: 16.8.6
  • React Native Fast Image version: 8.3.2 or 8.1.2
@wowjdd133 wowjdd133 added the bug label Oct 21, 2020
@ahtokca
Copy link

ahtokca commented Jan 21, 2021

any news?

I got the issue as well. iPhone8 with 8.3.2
Memory consumption jumps very high and ios closes the app

@dandre-hound
Copy link

dandre-hound commented Jan 26, 2021

When profiling in instruments, I can see that the regular <Image /> component from RN deallocates itself when it scrolls offscreen in a flatlist, but <FastImage /> only deallocates itself 50% of the time. Unsure if this helps, but that's where our memory leaks are coming from. Unmounting the screen entirely seems to deallocate everything, but it's specifically in virtualized lists where we see large memory spikes.

Clearing the FastImage cache on low memory warning in the meantime has significantly lowered our out of memory crashes on ios and android.

@jcharbo
Copy link

jcharbo commented Feb 1, 2021

@dandre-hound can you please tell me how you cleared the cache on low memory?
thanks

@dandre-hound
Copy link

Yes @jcharbo, I just forked this repo and merged in this PR: #425

@akhilsanker
Copy link

hi @wowjdd133 ,

Any solution for this?

Thanks

@alexkendall
Copy link

When profiling in instruments, I can see that the regular <Image /> component from RN deallocates itself when it scrolls offscreen in a flatlist, but <FastImage /> only deallocates itself 50% of the time. Unsure if this helps, but that's where our memory leaks are coming from. Unmounting the screen entirely seems to deallocate everything, but it's specifically in virtualized lists where we see large memory spikes.

Clearing the FastImage cache on low memory warning in the meantime has significantly lowered our out of memory crashes on ios and android.

Super helpful. Thanks for that information. Trying something similarly now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants