Skip to content
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

ANR while initialising the Branch SDK #1046

Open
himanshuoyo opened this issue Feb 22, 2023 · 0 comments
Open

ANR while initialising the Branch SDK #1046

himanshuoyo opened this issue Feb 22, 2023 · 0 comments

Comments

@himanshuoyo
Copy link

Describe the bug

Getting ANR in Branch SDK initialisation.ANR Traces below:

at java.lang.Object.wait (Object.java) at android.app.SharedPreferencesImpl.awaitLoadedLocked (SharedPreferencesImpl.java:260) at android.app.SharedPreferencesImpl.edit (SharedPreferencesImpl.java:349) at io.branch.referral.ServerRequestQueue.<init> (ServerRequestQueue.java:69) at io.branch.referral.ServerRequestQueue.getInstance (ServerRequestQueue.java:46) at io.branch.referral.Branch.<init> (Branch.java:425) at io.branch.referral.Branch.initInstance (Branch.java:794) at io.branch.referral.Branch.getBranchInstance (Branch.java:610) at io.branch.referral.Branch.getAutoInstance (Branch.java:695) at com.oyo.consumer.ExternalSdkInitializerWrapper.initExternalSDK (ExternalSdkInitializerWrapper.kt:88) at com.oyo.consumer.ExternalSdkInitializer.init (ExternalSdkInitializer.kt:29) at com.oyo.consumer.AppController.onCreate (AppController.java:89) at android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1154) at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6226) at android.app.ActivityThread.access$1300 (ActivityThread.java:237) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1878) at android.os.Handler.dispatchMessage (Handler.java:106) at android.os.Looper.loop (Looper.java:224) at android.app.ActivityThread.main (ActivityThread.java:7081) at java.lang.reflect.Method.invoke (Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:604) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:928)

Steps to reproduce

Got this ANR in Play store vitals

Expected behavior

ANR should not occur

SDK Version

3.1.0

Make and Model

Red Note 10

OS

12

Additional Information/Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant