-
Notifications
You must be signed in to change notification settings - Fork 959
Exiting Flipper causes app to crash #3026
Comments
My debug log is different:
So does not appear to be the same error, but it can be fixed in the same way: reinstall app or clear app data When the app restarts, if Flipper is running, things are ok. But if Flipper is not running, the app fails on startup. |
tldr; when Flipper is exited while the app is still running, it updates certificate files in the "files/sonar" directory that prevent the app from starting unless Flipper is also running. I had some time to debug this issue and I wanted to report on the results. This is based on using the latest SDK (0.119.0) and the corresponding version of Flipper (commit 6bf3a4f - from today) I used the sample app (by building it from the current commit) Here is what I found:
At that point it calls an NDK method which I was able to step into using the NDK debugger but did not get any useful info from. Here's the "files/sonar" directory: I compared the files from when the app was working and when it wasn't. It appears that when Flipper exits while the app is still running it updates the following files: app.csr The problem appears to be in NDK code so I was unable to get any more detail. The problem appears for both physical devices and emulators. For me, this problem started appearing at some point after version 0.91.0. |
Thanks for the detailed report @bizzguy! We're a bit in the dark still where it is coming from, but we can reproduce it consistently as well. |
@bizzguy here's a potential workaround to address the crash. Downgrade the NDK version located in build.gradle found in the project root folder from R23 to R21. It should look something like this:
Please ensure that NDK21 is available in your system. We are still working on the actual solution. |
For me the issue was not there with 0.119.0 and is still present in 0.136.0 App crashes during start if flipper is not running. Maybe the following logs are helpfull:
|
I'm also having a crash on shutdown of Flipper, and after trying to start the app again, it crashes immediately. Uninstalling/reinstalling the app lets it start again. Here's the full stacktrace for me:
|
Hi all, since the issue was reported, we added NDK parity between Flipper and its dependencies. At the moment, NDK r23 is used. Please ensure your apps are using the same. That should address this issue. |
@lblasa My
I believe that is the latest available version of the NDK. I did a full |
Hi @aardvarkk that looks correct. Could you please try to also delete the .cxx folders? And finally, could you please share again the backtrace and logcat logs? |
@lblasa I'm not sure which Here's the latest backtrace from the ADB logs:
|
@lblasa I think perhaps you're referring to the After that, every time I start it I get a crash. The only way to fix it that I can find is to completely delete the app, then run |
This seems related so I'll post it here. Currently, I see this whenever I run Flipper at all, I think with the same crash. I can confirm that Version 0.118.0 works. The steps are quite straightforward:
|
I am also seeing this within our android application, using clientsdk 0.150.0 and desktop app 0.150.0 on windows. Our application is using ndk 21. This only happens for us when we close the desktop app but leave the android application running. After this, any attempt to relaunch the app results in the app crashing, unless we first launch the flipper app. |
As an update, I just tested this with the app on ndk 23 and we are getting the same crash. @lblasa any updates on this one? |
I also tried NDK 23, 24, and 25. It always crashes after closing clipper and relaunching. deleting the |
Any news? |
🐛 Bug Report
After exiting Flipper the connected app will crash
To Reproduce
This behavior can be repeated
Environment
Physical Device: Galaxy S9
Android version: 10
Flipper version: 118 (117 also had same problem)
The text was updated successfully, but these errors were encountered: