android-branch-deep-linking-attribution
android-branch-deep-linking-attribution copied to clipboard
Crash ConcurrentModificationException from Branch
Describe the bug
We have gotten around ~300 crashes with the following stack trace.
Exception java.lang.RuntimeException: Unable to resume activity {com.superbalist.android/com.superbalist.android.view.onboarding.OnboardingActivity}: java.util.ConcurrentModificationException
at android.app.ActivityThread.performResumeActivity (ActivityThread.java:4854)
at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:4891)
at android.app.servertransaction.ResumeActivityItem.execute (ResumeActivityItem.java:52)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:176)
at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2290)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:246)
at android.app.ActivityThread.main (ActivityThread.java:8469)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:596)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1130)
Caused by java.util.ConcurrentModificationException:
at android.util.ArrayMap.put (ArrayMap.java:620)
at android.os.BaseBundle.putBoolean (BaseBundle.java:611)
at android.content.Intent.putExtra (Intent.java:9813)
at io.branch.referral.Branch.extractAppLink (Branch.java:2908)
at io.branch.referral.Branch.readAndStripParam (Branch.java:1006)
at io.branch.referral.Branch.onIntentReady (Branch.java:2013)
at io.branch.referral.BranchActivityLifecycleObserver.onActivityResumed (BranchActivityLifecycleObserver.java:65)
at android.app.Application.dispatchActivityResumed (Application.java:455)
at android.app.Activity.dispatchActivityResumed (Activity.java:1412)
at android.app.Activity.onResume (Activity.java:1944)
at androidx.fragment.app.FragmentActivity.onResume (FragmentActivity.java:434)
at com.superbalist.android.view.base.BaseActivityMain.onResume (BaseActivityMain.java:218)
at com.superbalist.android.view.onboarding.OnboardingActivity.onResume (OnboardingActivity.java:114)
at android.app.Instrumentation.callActivityOnResume (Instrumentation.java:1456)
at android.app.Activity.performResume (Activity.java:8332)
at android.app.ActivityThread.performResumeActivity (ActivityThread.java:4844)
SDK Version
5.2.7
Make and Model
Multiple Devices
OS
8.0, 10, 11, 12, 13