A lot of ANRs from admob ads

1,654 views
Skip to first unread message

rooi...@gmail.com

unread,
Mar 29, 2021, 6:34:00 AM3/29/21
to Google Mobile Ads SDK Developers
Hello,

We are displaying admob ads in our Unity Android game, through ironsoure mediation (ironsource SDK version 7.0.4.1, and admob adapter 4.3.22. I'm not sure about the actual underlying admob SDK the adapter is using)

We see a lot of ANRs after our last update. We made two big changes, one was the addition of banner ads, and the other one was upgrading Unity from 2018 to 2020.3.
I'm not sure what is the problem, but maybe the google team has an idea.
We are having an unacceptable rate of 1.5% of ANR.

a few stack traces of ANRs are included below:

ANR title: Input dispatching timed out (Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over 500.0ms ago. Wait queue length: 14. Wait queue head age: 10970.4ms.)

ANR "Main" stack trace: "main" prio=5 tid=1 WaitingForGcToComplete

  #00  pc 000000000008023c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
  #00  pc 000000000014bf34  /apex/com.android.runtime/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+148)
  #00  pc 0000000000242a68  /apex/com.android.runtime/lib64/libart.so (art::gc::Heap::WaitForGcToCompleteLocked(art::gc::GcCause, art::Thread*)+444)
  #00  pc 000000000024f0c0  /apex/com.android.runtime/lib64/libart.so (art::gc::Heap::WaitForGcToComplete(art::gc::GcCause, art::Thread*)+412)
  #00  pc 000000000024b998  /apex/com.android.runtime/lib64/libart.so (art::gc::Heap::AllocateInternalWithGc(art::Thread*, art::gc::AllocatorType, bool, unsigned long, unsigned long*, unsigned long*, unsigned long*, art::ObjPtr<art::mirror::Class>*)+148)
  #00  pc 000000000057af50  /apex/com.android.runtime/lib64/libart.so (artAllocObjectFromCodeInitializedRegionTLAB+376)
  #00  pc 000000000013f078  /apex/com.android.runtime/lib64/libart.so (art_quick_alloc_object_initialized_region_tlab+104)
  #00  pc 000000000202a360  /memfd:/jit-cache (com.google.android.gms.ads.omid.library.processor.e.b+576)
  #00  pc 000000000202b148  /memfd:/jit-cache (com.google.android.gms.ads.omid.library.walking.i.a+984)
  #00  pc 000000000202a798  /memfd:/jit-cache (com.google.android.gms.ads.omid.library.processor.e.b+1656)
  #00  pc 000000000202b148  /memfd:/jit-cache (com.google.android.gms.ads.omid.library.walking.i.a+984)
  #00  pc 000000000202a798  /memfd:/jit-cache (com.google.android.gms.ads.omid.library.processor.e.b+1656)
  #00  pc 000000000202b148  /memfd:/jit-cache (com.google.android.gms.ads.omid.library.walking.i.a+984)
  #00  pc 000000000202a798  /memfd:/jit-cache (com.google.android.gms.ads.omid.library.processor.e.b+1656)
  #00  pc 000000000202b148  /memfd:/jit-cache (com.google.android.gms.ads.omid.library.walking.i.a+984)
  #00  pc 000000000202a798  /memfd:/jit-cache (com.google.android.gms.ads.omid.library.processor.e.b+1656)
  #00  pc 000000000202b148  /memfd:/jit-cache (com.google.android.gms.ads.omid.library.walking.i.a+984)
  #00  pc 000000000202a798  /memfd:/jit-cache (com.google.android.gms.ads.omid.library.processor.e.b+1656)
  #00  pc 000000000202b148  /memfd:/jit-cache (com.google.android.gms.ads.omid.library.walking.i.a+984)
  #00  pc 000000000202bd58  /memfd:/jit-cache (com.google.android.gms.ads.omid.library.processor.d.b+2376)
  #00  pc 0000000002020d90  /memfd:/jit-cache (com.google.android.gms.ads.omid.library.walking.e.run+4416)
  at com.google.android.gms.ads.omid.library.processor.e.b (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649:3)
  at com.google.android.gms.ads.omid.library.walking.i.d (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649)
  at com.google.android.gms.ads.omid.library.walking.i.a (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649:11)
  at com.google.android.gms.ads.omid.library.processor.e.b (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649:6)
  at com.google.android.gms.ads.omid.library.walking.i.d (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649)
  at com.google.android.gms.ads.omid.library.walking.i.a (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649:11)
  at com.google.android.gms.ads.omid.library.processor.e.b (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649:6)
  at com.google.android.gms.ads.omid.library.walking.i.d (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649)
  at com.google.android.gms.ads.omid.library.walking.i.a (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649:11)
  at com.google.android.gms.ads.omid.library.processor.e.b (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649:6)
  at com.google.android.gms.ads.omid.library.walking.i.d (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649)
  at com.google.android.gms.ads.omid.library.walking.i.a (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649:11)
  at com.google.android.gms.ads.omid.library.processor.e.b (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649:6)
  at com.google.android.gms.ads.omid.library.walking.i.d (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649)
  at com.google.android.gms.ads.omid.library.walking.i.a (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649:11)
  at com.google.android.gms.ads.omid.library.processor.e.b (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649:6)
  at com.google.android.gms.ads.omid.library.walking.i.d (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649)
  at com.google.android.gms.ads.omid.library.walking.i.a (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649:11)
  at com.google.android.gms.ads.omid.library.processor.d.b (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649:13)
  at com.google.android.gms.ads.omid.library.walking.i.d (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649)
  at com.google.android.gms.ads.omid.library.walking.e.run (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649:27)
  at android.os.Handler.handleCallback (Handler.java:883)
  at android.os.Handler.dispatchMessage (Handler.java:100)
  at android.os.Looper.loop (Looper.java:237)
  at android.app.ActivityThread.main (ActivityThread.java:7948)
  at java.lang.reflect.Method.invoke (Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1075)





ANR title: Input dispatching timed out (Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over 500.0ms ago. Wait queue length: 3. Wait queue head age: 12117.6ms.)

ANR "Main" stack trace: "main" prio=5 tid=1 Native

  #00  pc 000000000008023c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
  #00  pc 000000000014bf34  /apex/com.android.runtime/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+148)
  #00  pc 0000000000589c08  /apex/com.android.runtime/lib64/libart.so (art::GoToRunnable(art::Thread*) (.llvm.9019713675660286469)+440)
  #00  pc 0000000000589a0c  /apex/com.android.runtime/lib64/libart.so (art::JniMethodEnd(unsigned int, art::Thread*)+28)
  at android.os.BinderProxy.transactNative (Native method)
  at android.os.BinderProxy.transact (BinderProxy.java:575)
  at android.hardware.display.IDisplayManager$Stub$Proxy.getDisplayInfo (IDisplayManager.java:1498)
  at android.hardware.display.DisplayManagerGlobal.getDisplayInfo (DisplayManagerGlobal.java:186)
  at android.view.Display.updateDisplayInfoLocked (Display.java:1214)
  at android.view.Display.updateDisplayInfoLocked (Display.java:1209)
  at android.view.Display.getRealSize (Display.java:1125)
  at com.google.android.gms.ads.omid.library.utils.a.i (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649:2)
  at com.google.android.gms.ads.omid.library.walking.e.run (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649:24)
  at android.os.Handler.handleCallback (Handler.java:883)
  at android.os.Handler.dispatchMessage (Handler.java:100)
  at android.os.Looper.loop (Looper.java:237)
  at android.app.ActivityThread.main (ActivityThread.java:7948)
  at java.lang.reflect.Method.invoke (Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1075)





ANR title: Input dispatching timed out (Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over 500.0ms ago. Wait queue length: 4. Wait queue head age: 11018.5ms.)

ANR "Main" stack trace: "main" prio=5 tid=1 WaitingForGcToComplete

  #00  pc 000000000008023c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
  #00  pc 000000000014bf34  /apex/com.android.runtime/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+148)
  #00  pc 0000000000242a68  /apex/com.android.runtime/lib64/libart.so (art::gc::Heap::WaitForGcToCompleteLocked(art::gc::GcCause, art::Thread*)+444)
  #00  pc 000000000024f0c0  /apex/com.android.runtime/lib64/libart.so (art::gc::Heap::WaitForGcToComplete(art::gc::GcCause, art::Thread*)+412)
  #00  pc 000000000024b998  /apex/com.android.runtime/lib64/libart.so (art::gc::Heap::AllocateInternalWithGc(art::Thread*, art::gc::AllocatorType, bool, unsigned long, unsigned long*, unsigned long*, unsigned long*, art::ObjPtr<art::mirror::Class>*)+148)
  #00  pc 000000000057b40c  /apex/com.android.runtime/lib64/libart.so (artAllocArrayFromCodeResolvedRegionTLAB+540)
  #00  pc 000000000013f684  /apex/com.android.runtime/lib64/libart.so (art_quick_alloc_array_resolved32_region_tlab+132)
  at java.util.HashMap.resize (HashMap.java:703)
  at java.util.HashMap.putVal (HashMap.java:628)
  at java.util.HashMap.put (HashMap.java:611)
  at java.util.HashSet.add (HashSet.java:219)
  at java.util.AbstractCollection.addAll (AbstractCollection.java:344)
  at java.util.HashSet.<init> (HashSet.java:119)
  at com.google.android.gms.ads.omid.library.walking.async.a.<init> (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649)
  at com.google.android.gms.ads.omid.library.walking.async.e.<init> (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649)
  at com.google.android.gms.ads.omid.library.walking.e.run (com.google.android.gms.policy_ads_fdr_dynamite@210402101@210402101057.356914649.356914649:25)
  at android.os.Handler.handleCallback (Handler.java:883)
  at android.os.Handler.dispatchMessage (Handler.java:100)
  at android.os.Looper.loop (Looper.java:237)
  at android.app.ActivityThread.main (ActivityThread.java:7948)
  at java.lang.reflect.Method.invoke (Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1075)

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 29, 2021, 11:19:27 AM3/29/21
to rooi...@gmail.com, google-adm...@googlegroups.com
Hi Paiman,

Thank you for bringing this issue to our attention. Wanted to let you know that my team is already looking into this issue. As such I have taken the information that you have given and passed it along to our team. Once we are able to hear back from them. We will be certain to let you know what they say.

Regards,
Google Logo
William Pescherine
Mobile Ads SDK Teams 
 


ref:_00D1U1174p._5004Q2Eo02Q:ref

Jim Sonntag

unread,
Mar 29, 2021, 11:37:27 AM3/29/21
to Mobile Ads SDK Forum Advisor Prod, google-adm...@googlegroups.com, rooi...@gmail.com
All I know is I can barely make and
Recieve phone calls, & I cantdown load anything, games odd interview with
A vampire , I hope you got my gist..
   I just wantevery thing my sister is 
Paying 4 I don't like it when people Rob 
People, Plase just make it right please..

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/Gbg_-000000000000000000000000000000000000000000000QQQL7O00Q0V0QiEzQYma1tlvM58GAg%40sfdc.net.

rooi...@gmail.com

unread,
May 1, 2021, 9:00:20 PM5/1/21
to Google Mobile Ads SDK Developers

Any update on this?
We are still having this issue.

Mobile Ads SDK Forum Advisor Prod

unread,
May 3, 2021, 12:49:44 AM5/3/21
to rooi...@gmail.com, google-adm...@googlegroups.com
Hi there,

I'm afraid that this is still under investigation. Rest assured that the team is actively working on this. We'll let you know the soonest we have our findings.

Regards,
Google Logo
Teejay Wennie Pimentel
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2Eo02Q:ref

rooi...@gmail.com

unread,
May 31, 2021, 6:29:42 AM5/31/21
to Google Mobile Ads SDK Developers

We've noticed a huge amount of ANRs are happening on Motorola devices, specially moto e5.
Also happens on another Motorola device, and an LG device, but this device above is mostly getting the ANRs.

Mobile Ads SDK Forum Advisor Prod

unread,
Jun 2, 2021, 4:20:27 AM6/2/21
to rooi...@gmail.com, google-adm...@googlegroups.com

Hi there,

The previous response didn’t get posted from our support queue to this forum thread, so I am posting the response again.

"Thank you for reaching out to us and giving us additional information on this anr concern.

I work with Teejay and William and will be assisting you on this. I already bring your additional information to the rest of the team. This is still under investigation and we will back to you once we have an update."

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2Eo02Q:ref

mastef ‎

unread,
Jan 6, 2022, 2:12:03 AM1/6/22
to Google Mobile Ads SDK Developers
Similar issue after updating to Unity 2020.3 and possibly admob to 20.x 

We are not using banner ads. We are using reward and interstitial ads.

The most affected devices are Realme C11 ( 17% ANR rate! ), Vivo 1906 ( 10% ANR rate ), and also motorola devices.

Mihec Pezdirc

unread,
Jan 6, 2022, 10:33:59 AM1/6/22
to Google Mobile Ads SDK Developers
Hi,
we have the same issues. Basically if we don't run any ads, our ANR rate is close to 0. With ads it's above 1.4%. I don't want to just complain, but can you guys check everything that can be causing this. IO operations on main thread, large messages in IPC or Parcels. Deadlocks or live locks. Any excessive work on main thread...

From reading this group this has been a constant problem that no one seems to care about. We care, because it affects our users and probably our ratings on Google Play, maybe even rankings if this is taken into account on google play store.
If you search for ANR in this group, it's obvious there is a problem everyone has.

Best,
Mihec

Mobile Ads SDK Forum Advisor

unread,
Jan 7, 2022, 4:51:18 AM1/7/22
to mihec....@outfit7.com, google-adm...@googlegroups.com
Hi Mihec,

I understand the inconvenience of the current issue that you're having. Rest assured that the team is actively working on this. We would ask for your patience during this time.

Regards,
Google Logo
Teejay Wennie Pimentel
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2Eo02Q:ref

Mobile Ads SDK Forum Advisor

unread,
Nov 14, 2022, 2:01:21 AM11/14/22
to mihec....@outfit7.com, google-adm...@googlegroups.com

Hello all,

 

Michael here from Mobile Ads SDK support team. I just want to get back here to confirm if you are still experiencing the issue? If so, we would need you to provide the Crashlytics crash logs to determine the impact of this.

 

You may send the requested information privately via "Reply To Author" button.

 

Regards,

Google Logo
Michael Angelo
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2Eo02Q:ref
Reply all
Reply to author
Forward
0 new messages