AppLovin / AppLovin-MAX-SDK-Android

Other
210 stars 95 forks source link

safedk ANR #640

Closed gzjaychen closed 1 month ago

gzjaychen commented 3 months ago

MAX SDK Version

12.3.1

Device/Platform Info

Android

Current Behavior

ANR occur

Expected Behavior

No response

How to Reproduce

I received several anr reports form GP Console. Is a serious problem in my app.

Additional Info

stacktrace.log stacktrace2.log

Thread 1 "main" tid=1 Blocked 01 at com.safedk.android.analytics.brandsafety.InterstitialFinder.b (SourceFile:1075) The main thread is blocked here, waiting, and trying to acquire the lock 0x0a431326 held by thread 2 (com.safedk.android.analytics.brandsafety.InterstitialFinder)

Thread 2 "AppLovinSdk:communicator" tid=2 Native ... 31 at com.safedk.android.analytics.brandsafety.b.a (SourceFile:158) Lock 0x0a431326 (com.safedk.android.analytics.brandsafety.InterstitialFinder) has this thread to get here. This causes ANR because the main thread is blocked and cannot attempt to acquire the same lock.

lishun001 commented 3 months ago

I also encountered the same problem, is there any solution?

lishun001 commented 3 months ago

anr_ap

Lorenzo45 commented 2 months ago

@gzjaychen we just released Ad Review 5.2.0 which should have a fix for this ANR. Can you try this version and let us know if it resolves the issue for you? Thanks

lishun001 commented 2 months ago

@gzjaychen we just released Ad Review 5.2.0 which should have a fix for this ANR. Can you try this version and let us know if it resolves the issue for you? Thanks

What is Ad Review? How do I upgrade?

gzjaychen commented 2 months ago

lishun001

Your project's buildscript dependencies classpath ("com.applovin.quality:AppLovinQualityServiceGradlePlugin:5.2.0")

Lorenzo45 commented 2 months ago

Note that the Ad Review SDK is optional and if you do not wish to use it you may remove the SDK to avoid these ANRs.