SalesforceMobileSDK-Android v10.2.0 crashing on Android 11 devices
Closed this issue · 10 comments
The SalesforceMobileSDK-Android v10.2.0 is crashing on Android 11 devices.
Here are the required details:
- Version of Mobile SDK Used: 10.2.0
- Issue found in Native App or Hybrid App: Native App
- OS Version: Android 11
- Device: Samsung Galaxy M52 5G
- Steps to reproduce:
a, Open App, see a login screen;
b, Input username and password;
c, Click on Allow - Actual behaviour: App crashes after clicking on allow button
- Expected Behavior: App goes to the landing screen after clicking on allow
- Error Log:
main (waiting):tid=1 systid=24265
at sun.misc.Unsafe.park(Unsafe.java)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:450)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at android.os.AsyncTask.get(AsyncTask.java:618)
at com.salesforce.androidsdk.ui.LoginActivity.onCreate(LoginActivity.java:114)
at android.app.Activity.performCreate(Activity.java:8363)
at android.app.Activity.performCreate(Activity.java:8341)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3894)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4078)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2423)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:233)
at android.os.Looper.loop(Looper.java:334)
at android.app.ActivityThread.main(ActivityThread.java:8348)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:582)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1065)
Hi @ankur-datamatics, thank you for posting here as it much preferred over stackexchage.
Are there any additional logs or details about your configuration that may be relevant? I don't see much of to go off of in the provided stack trace.
We have many customers using Android 11+ but this is the first report of this crash (seemingly from the account not being created).
Hi @brandonpage ,
We are using the native SalesforceMobileSDK-Android solely for the purpose of login into our Android App and facing some issues with v10.2.0 of the SDK.
Upon further inspection, it has been observed that SalesforceMobileSDK-Android v10.2.0 is crashing on multiple occasions for multiple users(ranging from Android 9 to Android 13).
PFA the logs for the same procured from Firebase Crashlytics.
SFDC_CRASH_LOGS.txt
Hi @brandonpage, we are still facing the crash issue on the official Android Versions. The majority of crashes are happening in All the Oppo, Vivo and Oneplus OEM devices having Android versions 11-13.
Here is the list of devices:-
MOTO G60 | 12
ONE PLUS | 11
Oppo Reno 5 pro | 12
Vivo S1 pro | 12
POCO X3 | 13
Vivo T1 5G | 12
Vivo Y33T | 12
ONE PLUS 9R | 13
Also, so far we have not encountered any crashes on Samsung and Xiaomi devices.
@jayaprakash Thanks for the reply but this is already unchecked in our case.
For status, this issue is being researched. Stay tuned for more details and feel free to share any additional technical details. Thanks!
Hi @ankur-datamatics and to others who are monitoring this conversation, we posted some more thorough debugging steps on the thread on Salesforce Trailhead: https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000JfyGYSAZ .
Hi @gkotula,
We are looking into this and will provide an update as soon as possible.
Closing the issue for lack of updates from the customer. Please re-open an issue or post to the trailblazer community if you are still having problems.
Hi @wmathurin,
we are facing this issue on few devices for SDK 10.2.0.
devices and version info:
OEM and device: MI POCO F1
OS: Android 10 and Android 12
SDK version: 10.2.0
react native version: 0.70.10
What is happening:
After pressing on Allow button in web view, App is getting backgrounded and when we tried to open the app from app switcher it shows the login page again. when open again by pressing app icon it works as expected and user is logged in.
Please suggest a fix or workaround as it is critical for us.