flipper: Android App crash - React Native Flipper
🐛 Bug Report
Following the React Native guide in the repo, Main Activity invokes the ReactNativeFlipper class. After creating a client and setting up some plugins, the app consistently crashes after client.start() run. I tried to use the debugger but even a force step into client.start() crashes immediately.
Crashes with
A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x13 in tid 8831 (FlipperEventBas), pid 8540 (tion.androiddev)
To Reproduce
Flipper v0.127.0 ReactNativeFlipper.java from here
Environment
Flipper desktop Version 0.127.0 (50.0.0) Flipper SDk version 0.127.0 M1 Macbook
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 25
- Comments: 37 (4 by maintainers)
I ran this command and my issues were fixed:
adb shell run-as "com.example.yourapppackage" rm -rf files/sonarUninstalling the app and installing it again helped me, as stated here (not sure how often it’s needed)
Same here with Expo SDK 45
Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 11235 (FlipperEventBas), pid 11213 (ile.development)My error is slightly different: A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 16410 (FlipperEventBas), pid 16260
The error only happens when I open the app on the physical device (either running directly or running from android studio), works fine in the emulator.
This worked! @redbluenat can you please share how did you figure this out?
0.105.0 works for the time being 👍
Running into this for the first time; version doesn’t seem to matter. I tried
0.143.0,0.140.0,0.130.0,0.127.0,0.125.0, and0.115.0. Same-ish error from each:Edit: Got things working by downgrading to
0.105.0. Worth noting that the app would boot until I connected and then closed flipper. After the crash was triggered on every launch.Hi, I have a similar problem. I can use my app as long as the flipper desktop app is closed. But as soon as I open it the app crash. I have an Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 12545 (FlipperEventBas), pid 12518 (com.soraredata) error.
The adb shell run-as “com.example.yourapppackage” rm -rf files/sonar is not working for me
still having this problem
I had a closer look at this today, and it looks like the “crash” I’m seeing may not be related after all. It turns out that with 0.125, Flipper is trying to load
arm64/libflipper.sofirst before tryingarm64-v8a/libflipper.soon device. This causes aSIGILLwhich I mistook for a crash. If I just let it continue, it will actually recover and successfully launch. Interestingly, if I bump Flipper to latest 0.164, this no longer happens.In any case, sorry for the noise! 🙇♂️
It seems like it was fixed in
0.130.0. At least it works for me sfter update.Same issue here, this issue makes it hard to use Flipper. RN 0.70.1 and Flipper 0.166
To reproduce on a mac (short hand notes):
Note:
npm run androidwill not work. Requires uninstalling the app and running the commandAnother item to flag is a connection loop that starts happening when you refresh an android app from within Flipper (have not dug into this in depth)
I’m confused by this issue. I cannot get an Android app to run with any version of flipper newer than 0.105.0 and yet there have been many releases of Flipper since then. Is this not affecting all Android users? Are there a disproportionate number of iOS users so that this is not a high priority? It just seems weird. Why release a bunch of new features, etc. if half the users can’t use them? Is there some workaround that I am not aware of?
I’m sorry but a fix hasn’t been released, I will update once it is.
Same issue here. Tried forcing ndkVersion to 23 but no luck. I’ll wait for an official solution @lblasa . Thanks! Downgrading flipper solves the issue.
No worries! Maybe the info about updating to 0.164 will help somebody else.
Flipper has been working fine for us up until we introduced C++ code: https://github.com/microsoft/react-native-test-app/pull/1127
Like you said, we had to downgrade to 0.105 for things to start working again. Maybe this is related to how Flipper interacts with
libc++_shared.so?Seems related to this issue https://github.com/facebook/flipper/issues/3026
Hi @daxaxelrod many thanks for reporting this.
I can definitely see there’s an issue here: https://github.com/facebook/flipper/blob/main/react-native/ReactNativeFlipperExample/android/build.gradle
As the example is trying to use NDK r21, it should be r23. This will be fixed very soon.