-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
com.android.installreferrer
is called in the main thread which leads to ANR
#1039
Comments
Can you give me script attack for apk??? |
Hi guys! Information about it you can find in officially documentation |
same issue |
Summary: Fix issue #1039 , we'll need to end the connection to avoid leaks and performance problems. https://developer.android.com/google/play/installreferrer/library#closing-connection Reviewed By: wx0165927473 Differential Revision: D44238528 fbshipit-source-id: 868b108305c2aa964c91c2456309e45fd06e0070
same issue |
Issue is not fixed, we observe exact the same issue on FBSDK 16.0.1 |
29af39e This commit most likely does not fix this issue as it is simply closing it but other parts of the system can still be slow on the binder call. The issue is triggered by the call: referrerClient.installReferrer on line 41 in https://github.com/facebook/facebook-android-sdk/blob/main/facebook-core/src/main/java/com/facebook/internal/InstallReferrerUtil.kt If you look at the source, it's a bit tricky to follow because it is obfuscated, for InstallReferrerClientImpl you will find it does the following: From the ANR dashboard: So this ends up being called on the main thread because onInstallReferrerSetupFinished callback happens on the main thread. I'm not an Android or Kotlin developer so unfortunately I have no easy fixes here, but this referrerClient.installReferrer call should probably be async. |
Any updates on this? Getting exactly the same ANR on Play Console, not so rare. Using Unity SDK 15.1.0. |
Having the same issue. Any updates here ? |
Having the same issue any update on this ? |
We're on 16.2.0 and we're still seeing the same issue. Is there an update on when this will be fixed? |
Same issue here. Come on folks, please fix this! |
Same issue: "main" tid=1 Native |
same issue |
Any fix for this, we are also experiencing similar issue |
Also same here +1 |
at android.os.BinderProxy.transact (BinderProxy.java:571) Same Issue here, |
Same here.We've encountered the same ANR issue on Google Play Console. Does anyone have a solution for this? |
Also having the same issue here. It would be great if this was fixed, as it currently accounts for 30% of our ANRs. |
I am also facing similar ANR in my application. SS attached for log. I get this on google play console. This is increasing ANR rates. we want to decrease ANR. Please suggest solution. I am using Facebook SDK in my app for logging only. implementation("com.facebook.android:facebook-android-sdk:17.0.0") |
Hello. We are also getting the same issue.. main (native):tid=1 systid=23898 Anyone used endConnection and fix the issue ? facebook version: 16.0.0 |
same issue. please consider use thread or executor just like other sdk do |
same issue, please fix |
Same issue. This ANR is our biggest offender in the Google Play Console and is causing our application to cross the bad behaviour threshold. This is likely causing thousands of apps to cross the bad behaviour threshold. |
Same here, stacktrace exactly the same as this one
|
Checklist before submitting a bug report
Java version
8
Android version
api 23+
Android SDK version
12.1
Installation platform & version
Gradle
Package
Other / I don't know
Goals
According to our investigations
com.android.installreferrer
can block the callers thread for a long time which in case of main thread leads to ANR. We callcom.android.installreferrer
from the background thread, it is safer and works just fine. Looks like fb sdk calls it from the main thread and we have a bunch of ANR reports that shows this case. Please consider movingcom.android.installreferrer
to the background thread. ThanksExpected results
com.android.installreferrer
is used in the background thread, no ANRsActual results
com.android.installreferrer
is used in the main thread, ANRsSteps to reproduce
No response
Code samples & details
Edit: added a stacktrace
The text was updated successfully, but these errors were encountered: