-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[Android] should i call Fresco.shutDown() in reactActivity.onDestroy() #8518
Comments
This could be related to #8677. In theory, you should not need to do anything manually. |
Have to clear Fresco stuff as well in
|
This should have been fixed with recent React Native versions. RN was re-initializing Fresco which lead to these issues. |
Thanks @oprisnik & @norman-kapschefsky , I will do more tests with latest version. |
Hi @JuanbingTeam I'll be closing this issue since there has been several updated versions of RN. |
thank you, yes ,this has been fixed~ |
I tried the following steps:
I found the memory keep increasing , and finally it lead to an OOM Exception.
With the help of AndroidStudio Monitor View, i found too many bitmaps were cached.
I tried to call Fresco.shutdown() manually in onDestroy, it seems better.
`@Override
protected void onDestroy() {
super.onDestroy();
Fresco.shutDown(); // call shutdown manually
if (mReactInstanceManager != null) {
mReactInstanceManager.destroy();
}
}`
Here are my questions:
Thanks guys....
The text was updated successfully, but these errors were encountered: