flipper: [Android] Flipper let app crash on startup
🐛 Bug Report
After refresh install app which use Flipper, app can run successfully. Then using app around, kill and re-open few times, the app can’t start again. The log like this
2021-10-06 16:31:05.047 18883-18883/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2021-10-06 16:31:05.047 18883-18883/? A/DEBUG: Build fingerprint: 'vsmart/coconut_open/coconut:10/QP1A.190711.020/V530A_OPN_U_B10_210524:user/release-keys'
2021-10-06 16:31:05.047 18883-18883/? A/DEBUG: Revision: '0'
2021-10-06 16:31:05.047 18883-18883/? A/DEBUG: ABI: 'arm64'
2021-10-06 16:31:05.048 18883-18883/? A/DEBUG: Timestamp: 2021-10-06 16:31:05+0700
2021-10-06 16:31:05.048 18883-18883/? A/DEBUG: pid: 18765, tid: 18863, name: FlipperConnecti >>> com.mhealth.manadr.dev <<<
2021-10-06 16:31:05.048 18883-18883/? A/DEBUG: uid: 10296
2021-10-06 16:31:05.048 18883-18883/? A/DEBUG: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
2021-10-06 16:31:05.048 18883-18883/? A/DEBUG: x0 0000000000000000 x1 00000000000049af x2 0000000000000006 x3 0000007e2c25d140
2021-10-06 16:31:05.048 18883-18883/? A/DEBUG: x4 00000000ebad808a x5 00000000ebad808a x6 00000000ebad808a x7 00000000ebad808b
2021-10-06 16:31:05.048 18883-18883/? A/DEBUG: x8 00000000000000f0 x9 0000007f3c3ee4e0 x10 0000000000000000 x11 0000000000000001
2021-10-06 16:31:05.048 18883-18883/? A/DEBUG: x12 0000000000000004 x13 0000000000000000 x14 0000000000000008 x15 0000000000000008
2021-10-06 16:31:05.048 18883-18883/? A/DEBUG: x16 0000007f3c4ba8c0 x17 0000007f3c498060 x18 0000007e2b4f6000 x19 00000000000000ac
2021-10-06 16:31:05.048 18883-18883/? A/DEBUG: x20 000000000000494d x21 00000000000000b2 x22 00000000000049af x23 00000000ffffffff
2021-10-06 16:31:05.048 18883-18883/? A/DEBUG: x24 0000007e2c25f020 x25 0000007e2aad3006 x26 0000000000000001 x27 0000000000000004
2021-10-06 16:31:05.048 18883-18883/? A/DEBUG: x28 0000007e2ac09f6c x29 0000007e2c25d1f0
2021-10-06 16:31:05.048 18883-18883/? A/DEBUG: sp 0000007e2c25d120 lr 0000007f3c44c170 pc 0000007f3c44c1a0
2021-10-06 16:31:05.051 18883-18883/? A/DEBUG: backtrace:
2021-10-06 16:31:05.051 18883-18883/? A/DEBUG: #00 pc 00000000000821a0 /apex/com.android.runtime/lib64/bionic/libc.so (abort+176) (BuildId: 2a5abdc9c768b33656f7aa8d9ce5cf54)
2021-10-06 16:31:05.051 18883-18883/? A/DEBUG: #01 pc 00000000000af7e4 /data/app/com.mhealth.manadr.dev-tJSDI37od0MW3tmFp4dkJA==/lib/arm64/libc++_shared.so (BuildId: 31abebc1b564add54fe43b52ce69acac326be4fe)
2021-10-06 16:31:05.051 18883-18883/? A/DEBUG: #02 pc 00000000000aedc8 /data/app/com.mhealth.manadr.dev-tJSDI37od0MW3tmFp4dkJA==/lib/arm64/libc++_shared.so (BuildId: 31abebc1b564add54fe43b52ce69acac326be4fe)
2021-10-06 16:31:05.051 18883-18883/? A/DEBUG: #03 pc 00000000000aebf8 /data/app/com.mhealth.manadr.dev-tJSDI37od0MW3tmFp4dkJA==/lib/arm64/libc++_shared.so (__gxx_personality_v0+200) (BuildId: 31abebc1b564add54fe43b52ce69acac326be4fe)
2021-10-06 16:31:05.051 18883-18883/? A/DEBUG: #04 pc 00000000004e0988 /data/app/com.mhealth.manadr.dev-tJSDI37od0MW3tmFp4dkJA==/lib/arm64/libflipper.so (BuildId: 04e09336c7558c428f26a99698d5d54588e2d72c)
If I clear app data, app can re-run successfully.
To Reproduce
Just setup Android App using Flipper
Environment
Android 10 Flipper Desktop : 0.113.0 Flipper Plugin on Android : 0.113.0 Desktop OS : endeavouros-2021.08.27-x86_64
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 26
- Comments: 40 (15 by maintainers)
Commits related to this issue
- Keep Flipper 0.99.0, version 0.125.0 has some weird C++ shit crashing the app on start see https://github.com/facebook/flipper/issues/2948 — committed to LedgerHQ/ledger-live by ofreyssinet-ledger 2 years ago
- Keep Flipper 0.99.0, version 0.125.0 has some weird C++ shit crashing the app on start see https://github.com/facebook/flipper/issues/2948 — committed to LedgerHQ/ledger-live by ofreyssinet-ledger 2 years ago
- Keep Flipper 0.99.0, version 0.125.0 has some weird C++ shit crashing the app on start see https://github.com/facebook/flipper/issues/2948 — committed to LedgerHQ/ledger-live by ofreyssinet-ledger 2 years ago
- (squashed) Apply RN 0.68.2 diff https://react-native-community.github.io/upgrade-helper/?from=0.67.3&to=0.68.2 Fix manifest (activity with intent filter should explicitly set android:exported) Kee... — committed to LedgerHQ/ledger-live by ofreyssinet-ledger 2 years ago
- (squashed) Apply RN 0.68.2 diff https://react-native-community.github.io/upgrade-helper/?from=0.67.3&to=0.68.2 Fix manifest (activity with intent filter should explicitly set android:exported) Kee... — committed to LedgerHQ/ledger-live by ofreyssinet-ledger 2 years ago
- (squashed) Apply RN 0.68.2 diff https://react-native-community.github.io/upgrade-helper/?from=0.67.3&to=0.68.2 Fix manifest (activity with intent filter should explicitly set android:exported) Kee... — committed to LedgerHQ/ledger-live by ofreyssinet-ledger 2 years ago
- (squashed) Apply RN 0.68.2 diff https://react-native-community.github.io/upgrade-helper/?from=0.67.3&to=0.68.2 Fix manifest (activity with intent filter should explicitly set android:exported) Kee... — committed to LedgerHQ/ledger-live by ofreyssinet-ledger 2 years ago
@passy This crash happens on my colleague’s Linux box too. So I guess many devs also face this. Anyway, this bug only happens if you start Flipper while app is opening, but not all times.
I’m able to reproduce this locally. Not entirely sure what the problem is at the moment, but will continue to investigate.
I got the same crash here as @rock-tran. I think @ligol’s trace is a different issue.
My trace has an Abort message which might be helpful:
Abort message: 'terminating with uncaught exception of type folly::AsyncSocketException: AsyncSocketException: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed, type = SSL error'Also, is it trying to send crash data to dropbox?
Thanks @rock-tran for the workaround of clearing app data
We are still investigating the issue, this issue is the same as reported here: https://github.com/facebook/flipper/issues/3026
For the time being, this works:
If the crash is found, either uninstall/install the app or delete the following directory from within the application sandbox:
files/sonar.No last time i tried with latest version it still crash but i need to investigate because we have other library using NDK that may not be build with latest NDK.
Hello we currently run on the same issue on our apps, after upgrading flipper to lastest version we got a native crash on boot each time. Last flipper version working was 0.105.0
Here are the log when it crash:
@grit96 in that case, don’t use NDK r21. Use NDK r23. That should address the issue.