-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Users getting stuck on Splash Screen -> Fatal Exception: java.lang.UnsatisfiedLinkError #59501
Comments
This issue is a fork of the following issue> #37566 |
@chinmaygarde from #37566
/cc @blasten for app bundle advice. |
@mxa0079 A few questions:
Have you set up special split rules in |
Apologies @blasten - I meant V 1.12 I'll check with the team regarding the |
@mxa0079: I spent a lot more time on this and while I still think incomplete app bundle installs are the underlying cause, I haven't able to induce this error. We'll wait to see if @blasten has any ideas but in the meantime, I need some help with more information:
This is just a sanity check to ensure that the .so is in the APK. Also, you mentioned in the previous issue that you had reports from production from users with this issue. Would it be possible to reach out to even one of them for more information? Specifically, the following information would be useful:
Not sure if reaching out to a user is possible but just wanted to jot down information that would be super useful in this investigation. |
Hi @chinmaygarde
|
Also, I'd like to point out that we have observed cases were users were running into this issue, installed an update on the app and the issue got solved. We have also had cases were users were not running into this issue, installed an update and then ran into the issue. This makes me think that something is going wrong during the installation process. Regarding the sanity check, we will be glad to ensure that libflutter.so is in the |
@chinmaygarde spot on. That's my understanding too. @mxa0079 Would you be able to share the application id? My email is egarciad@google.com. |
Hi @blasten
|
Thanks. Would you be able to inspect the AAB files |
Sure, we inspected the ABB file, and yes there is the libflutter.so file (files: base-x86_64.apk, base-armeabi_v7a.apk, base-arm64_v8a.apk) |
I found a similar issue in Crashlytics :
which occurred on the Nexus 5S (x86) In my case I am using bundles, and I see that if I build the app using this command: in the generated bundle, I have 4 folders in the lib folder inside that bundle: in in the x86 folder, in my case, I have only one file: so I don't see libflutter.so in this x86 folder Then I found that if I build apk with this command: at this point I am not sure how to create an app bundle with option to exclude x86 completelty from the generated bundle, and have only x86_64, arm64-v8a and armeabi-v7a. so currently creating apk files via this command I hope that this workaround will help someone as well. |
@perepechin You are running into this issue instead. The solution is to to specify the architectures up-front as you said, or, use the |
@mxa0079 has there been any progress on this issue? |
Hello @blasten, We are currently working and exchanging logs with the App Bundle team. I will update the issue once we have relevant results to share. Thanks, Mau |
Removing the "waiting for customer response" tag so it doesn't get auto-closed. Looks like this is assigned internally. |
Hi, If we exclude x86 ,then how can we install it in x86 devices? |
You cannot. |
@mxa0079 any updates? |
There have been no progress updates on the internal issue either. I'll reach out separately. |
The internal issue update indicates that there is still some trouble figuring out a reproducible test case for this. |
#59501 (comment) is the correct answer. We don't support running on Android in x86(-32). See https://flutter.dev/docs/resources/faq#what-devices-and-os-versions-does-flutter-run-on. If you bring in 32-bit x86 native .so into your app via gradle, there will be undefined behaviors. Some devices will do arm emulation from the armv7 .so but will often turn emulation off as soon as one x86 .so appears (at which point it will fail to find a x86/libflutter.so and crash). |
@xster This is a different issue than the one I linked. See the followup to my original comment in the linked thread. |
We're linking the same thing no? (with 1Δ in indirection) |
Yes. The first link describes the original issue, the followup explains why this one is slightly different. |
|
Oops, @chinmaygarde just pointed out that I crossed threads in my last comment which was incorrect. I incorrectly responded to #59501 (comment) which despite logs similarities is an entirely different issue. The original question was on (based on our analysis) Play Store not fulfilling all the native libraries on the way down as uploaded initially in the AAB. The unrelated comment I was responding to was on us not supporting x86. We're leaving this closed however since the original issue was not actionable by Flutter either and is likely an issue in the Play Store b/159618489. |
@xster What should we do as a workaround? Only upload the APK's created using As for me if I use Also, is there a public Google issue we can track for this issue with the Playstore? |
Can anybody tell me whats the solution? |
@mxa0079 any update ? |
Since this issue is closed, nobody will care about these comments. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Internal track: b/159618489
Versions of flutter were we have seen this issue:
Steps to Reproduce
$(FlutterToolPath)/flutter build appbundle --build-name=$(version_name) --build-number=$(build_number)
fastlane supply --track internal --aab ../build/app/outputs/bundle/release/app.aab
Expected results:
All users should be able to access the application.
Actual results:
A number of users are getting stuck on the splash screen of the application.
We believe this is being caused by the following exception being reported by Crashlytics on FlutterLoader.Java
We believe that Crashlytics is under-counting this problem because according to the official data there are 160 users affected:
but given that we have more than 1 million users, and we have many reports in our close circle, we fear that the actual number of users affected is MUCH higher
Logs
We see two different reports related to this issue on Crashlytics. One occurring on
FlutterLoader.java line 120
and the other onFlutterLoader.java line 122
Full stack trace for
FlutterLoader.java line 120
:Full stack trace for
FlutterLoader.java line 122
:Details of the machine running the CI Build: https://github.com/microsoft/azure-pipelines-image-generation/blob/master/images/macos/macos-10.14-Readme.md
Note: we have seen what it appears to be a sharp increase in the occurrence of this issue since migrating to 1.17 specially in the exception thrown on line 120:
Here are the stats for the exception thrown on line 122:
The text was updated successfully, but these errors were encountered: