I see lots of ANRs because of AdMob (com.google.android.gms.policy_ads_fdr_dynamite) in Google Play Console. The Google play service version is 23.0.0.
Is there anything I can do to resolve or work around this issue? Thanks.
I analyzed hundreds of the ANR report, I found the ANR seems happen often when main thread is waiting for something from a background worker thread.
This is what the worker thread usually look like:
com.google.android.gms.ads.identifier.b.run(:com.google.android.gms.policy_ads_fdr_dynamite@244410211@244410203017.691591528.691591528:7)","[thread='AdWorker(ClientDefault) #1' group='main' prio=5 tid=225 status=WAITING]
jdk.internal.misc.Unsafe.park(Unsafe.java:-2)
java.util.concurrent.locks.LockSupport.park(LockSupport.java:341)
java.util.concurrent.SynchronousQueue$TransferStack$SNode.block(SynchronousQueue.java:288)
java.util.concurrent.ForkJoinPool.unmanagedBlock(ForkJoinPool.java:3466)
java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3437)
java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:397)
java.util.concurrent.SynchronousQueue.take(SynchronousQueue.java:886)
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1071)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1131)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
And the main thread usually look like this:
android.os.HandlerThread.run(HandlerThread.java:67)","[thread='main' group='main' prio=5 tid=2 status=WAITING]
java.lang.Object.wait(Object.java:-2)
java.lang.Object.wait(Object.java:405)
java.lang.Object.wait(Object.java:543)
android.opengl.GLSurfaceView$GLThread.onPause(GLSurfaceView.java:1733)
android.opengl.GLSurfaceView.onPause(GLSurfaceView.java:579)
com.someApp.core.GameActivity.onPause(GameActivity.java:228)
android.app.Activity.performPause(Activity.java:8549)
android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1589)
android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5228)
android.app.ActivityThread.performPauseActivity(ActivityThread.java:5189)
android.app.ActivityThread.handlePauseActivity(ActivityThread.java:5141)
android.app.servertransaction.PauseActivityItem.execute(PauseActivityItem.java:47)
android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:178)
android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:99)
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2423)
android.os.Handler.dispatchMessage(Handler.java:106)
android.os.Looper.loopOnce(Looper.java:201)
android.os.Looper.loop(Looper.java:288)
android.app.ActivityThread.main(ActivityThread.java:8115)
java.lang.reflect.Method.invoke(Method.java:-2)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:703)
BW,
Davis
1/13/25
![]() |
Mobile Ads SDK Team |
You can provide the following details via reply privately to the author option or this link
Hi,
I will check with the wider team and will reach out to you once we have an update on this. Meanwhile, your patience is highly appreciated.
![]() |
Mobile Ads SDK Team |
[2025-03-24 08:24:14Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vGvkh:ref" (ADR-00284353)