-
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] Crash when reopen app from background after memory cleaned up #32717
Comments
Found out it was an issue related to
Apply the solution this error is no longer exists, the issue can be closed. |
This work around is already added when you use react native latest versions. It still does not help at least for me.
Did not work out for me. it was already there for react native version 0.64.2 which I am using currently |
I am also facing this problem and using RN: 0.64.2, But i am not seeing this code on mu MainActivity.java class,
Where are you referring it at? |
Im still facing this issue i have tried almost every thing |
Overriding onCreate is not a solution as this prevents deep linking from working. |
Description
Facing an issue, the app crash after the memory is cleaned up on Android, seems like the app will eventually crash if the user sends it to the background for a while after the android system recycles the memory usage.
here's the error msg
It crashed on
super.onCreate(savedInstanceState);
in MainActivity.java, I assume it is a react-native issue.Version
0.66.2
Output of
react-native info
System:
OS: macOS 11.5.1
CPU: (4) x64 Intel(R) Core(TM) i7-8700B CPU @ 3.20GHz
Memory: 136.54 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.22.6 - /var/folders/g2/xnd8hpjs50v433gfrybz2nxh0000gn/T/yarn--1638849014786-0.026624988105482972/node
Yarn: 1.22.11 - /var/folders/g2/xnd8hpjs50v433gfrybz2nxh0000gn/T/yarn--1638849014786-0.026624988105482972/yarn
npm: 6.14.15 - /usr/local/bin/npm
Watchman: 2021.08.30.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.2 - /Users/vagrant/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0
Android SDK:
API Levels: 15, 17, 19, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
Build Tools: 19.1.0, 21.1.2, 22.0.1, 23.0.3, 24.0.3, 25.0.3, 26.0.1, 26.0.2, 27.0.0, 27.0.1, 27.0.2, 27.0.3, 28.0.0, 28.0.1, 28.0.2, 28.0.3, 29.0.0, 29.0.1, 29.0.2, 29.0.3, 30.0.0, 30.0.1, 30.0.2, 30.0.3
System Images: android-26 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom
Android NDK: 21.4.7075529
IDEs:
Android Studio: Not Found
Xcode: 13.1/13A1030d - /usr/bin/xcodebuild
Languages:
Java: 11.0.11 - /Users/vagrant/.jenv/shims/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: ^0.66.2 => 0.66.2
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Snack, code example, screenshot, or link to a repository
No response
The text was updated successfully, but these errors were encountered: