facebook / facebook-android-sdk

Used to integrate Android apps with Facebook Platform.
https://developers.facebook.com/docs/android
Other
6.07k stars 3.64k forks source link

[ANR] in InstrumentUtility getInstrumentReportDir #1220

Open marcotta opened 6 months ago

marcotta commented 6 months ago

Checklist before submitting a bug report

Java version

openjdk version "20.0.1" 2023-04-18

Android version

API 33

Android SDK version

16.1.3

Installation platform & version

Gradle 7.2.0

Package

Other / I don't know

Goals

Exclude ANR InstrumentUtility.kt:331 com.facebook.internal.instrument.InstrumentUtility.getInstrumentReportDir

Expected results

Exclude ANR InstrumentUtility.kt:331 com.facebook.internal.instrument.InstrumentUtility.getInstrumentReportDir

Actual results

ANR InstrumentUtility.kt:331 com.facebook.internal.instrument.InstrumentUtility.getInstrumentReportDir

Steps to reproduce

Unfortunately I am unable to reproduce it locally and I have found reports on Crashlytics

Screenshot 2023-11-02 at 09 29 06

Code samples & details

main (native):tid=1 systid=16210 
#00 pc 0x870dc libc.so (syscall + 28) (BuildId: ae97b4676db8ce3f620ba6bf7932eba6)
#01 pc 0x23746c libart.so (art::ConditionVariable::WaitHoldingLocks + 140) (BuildId: 4cfdaa9e5146c43e20ae36ee1caf9b7f)
#02 pc 0x4682a8 libart.so (artJniMethodEnd + 336) (BuildId: 4cfdaa9e5146c43e20ae36ee1caf9b7f)
#03 pc 0x5c247c libart.so (art_jni_method_end + 12) (BuildId: 4cfdaa9e5146c43e20ae36ee1caf9b7f)
       at libcore.io.Linux.access(Native method)
       at libcore.io.ForwardingOs.access(ForwardingOs.java:128)
       at libcore.io.BlockGuardOs.access(BlockGuardOs.java:76)
       at libcore.io.ForwardingOs.access(ForwardingOs.java:128)
       at android.app.ActivityThread$AndroidOs.access(ActivityThread.java:8610)
       at java.io.UnixFileSystem.checkAccess(UnixFileSystem.java:313)
       at java.io.File.exists(File.java:813)
       at com.facebook.internal.instrument.InstrumentUtility.getInstrumentReportDir(InstrumentUtility.kt:331)
       at com.facebook.internal.instrument.InstrumentUtility.listExceptionReportFiles(InstrumentUtility.kt:203)
       at com.facebook.internal.instrument.crashreport.CrashHandler$Companion.sendExceptionReports(CrashHandler.kt:63)
       at com.facebook.internal.instrument.crashreport.CrashHandler$Companion.enable(CrashHandler.kt:43)
       at com.facebook.internal.instrument.InstrumentManager.start$lambda-0(InstrumentManager.kt:35)
       at com.facebook.internal.FeatureManager$checkFeature$1.onCompleted(FeatureManager.kt:30)
       at com.facebook.internal.FetchedAppGateKeepersManager.pollCallbacks$lambda-1(FetchedAppGateKeepersManager.kt:121)
       at android.os.Handler.handleCallback(Handler.java:942)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loopOnce(Looper.java:226)
       at android.os.Looper.loop(Looper.java:313)
       at android.app.ActivityThread.main(ActivityThread.java:8757)
       at java.lang.reflect.Method.invoke(Native method)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)