-
-
Notifications
You must be signed in to change notification settings - Fork 530
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] Memory leak leading to intermittent crashing #687
Comments
At the end of your comment, you placed a stack trace that shows going into |
Yea I was confused about that as well. The Could it be that its getting overloaded from somewhere else? |
I am not sure, maybe you changed it not so long ago and these logs are from the older version of your app? |
Did you manage to spot out what was the issue @jmkmay? Also, can I help you any more with this, and if not, can I close this issue then? |
is it resolved? |
@1Ajay most probably it was caused by not specifying |
I will close this issue since it seems there is nothing I can help with more. Feel free to comment here if you have any questions. |
I will leave this comment for future readers. Currently experiencing the same issue. Multiple crashes in Appcenter with the same stack trace. The |
Apologies for not replying to earlier comments. This was never resolved and we ended up just deploying app without |
We would need to have a reproduction to be able to find a solution for this problem. These stack traces are not enough since the behavior they show should be avoided by applying |
Any updates on this, I am still facing the same issue
as @d3vhound said |
Any news about fix? |
I believe this has been discussed here: #843 |
Unfortunately it doesn't have solution |
What is your exact concern about this behavior? Does it lead to crash in your case too @UserSty ? |
Just leak |
Then I think there is no more to be done unfortunately, as mentioned here: #843 (comment). |
It looks like a memory leak in
MainActivity
related to the ScreenFragmentonDestroy
function is causing app crashes.We have a Tab Navigator with a nested Auth Stack Navigator for login flows. We are using
react-native-screens
withenableScreens()
at the top ofApp.tsx
outside of the root component.When we turn off
enableScreens()
the memory leak goes away. But this causes exceptionally poor performance on Android 8 and lower-end devices.LeakCanary report:
MainTabNavigator.tsx
Auth Stack Navigator
MainActivity.java
The memory dump occurs when you navigate to the Auth Stack. App doesn't seem to crash, however.
Crashes are reported when user is redirected to Auth Stack when trying to place an order while not logged in. These crashes are intermittent and cannot be reliably induced.
Cheers,
Jon
EDIT:
App Center Diagnostics shows this stack trace occuring multiple times, for only Android users:
The text was updated successfully, but these errors were encountered: