ANR rate has increased significantly after integrating AdMob SDK

1,994 views
Skip to first unread message

Paul

unread,
Feb 27, 2021, 2:34:49 AM2/27/21
to Google Mobile Ads SDK Developers

Hello,


After we integrated ironSource SDK we are tracking significant increase of ANR rate (https://prnt.sc/10872ft): we’ve added AdMob SDK in 48.aab - ANR rate has increased from 0.09% to 0.31%.


Currently we have most issues with Android 8.1 (https://prnt.sc/10874j5). Seems that especially with Huawei Y5 Lite (https://prnt.sc/10875f7) - it’s almost in every Android 8.1 ANR report.


Here’s the information from one of the ANR reports:

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: 56. Wait queue head age: 8506.0ms.)
com.unity3d.player.UnityPlayerActivity

Example of one of the “types” (there’re much more of them, if needed, I can send them all):

Type "main" prio=5 tid=1 Native

  #00  pc 0000000000018cc4  /system/lib/libc.so (syscall+28)

  #00  pc 00000000000b71cd  /system/lib/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+80)

  #00  pc 00000000003e0911  /system/lib/libart.so (art::GoToRunnable(art::Thread*)+300)

  #00  pc 00000000003e07b5  /system/lib/libart.so (art::JniMethodEnd(unsigned int, art::Thread*)+8)

  #00  pc 00000000001902b7  /system/framework/arm/boot-framework.oat (Java_android_os_MessageQueue_nativePollOnce__JI+102)

  at android.os.MessageQueue.nativePollOnce (Native method)

  at android.os.MessageQueue.next (MessageQueue.java:366)

  at android.os.Looper.loop (Looper.java:144)

  at android.app.ActivityThread.main (ActivityThread.java:6861)

  at java.lang.reflect.Method.invoke (Native method)

  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:450)

  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:936)


The increase of ANR ready has already started to negative impact the amount of organic traffic we get from Google Play.

Can you, please, help us to solve the issue?


Best regards,

Paul

Paul

unread,
Feb 27, 2021, 8:13:59 AM2/27/21
to Google Mobile Ads SDK Developers
A bit more information:
App engine: Unity3D
Unity3D version: 2020.1.3f1
ironSource SDK version: 7.0.4.1
AdMob Adapter version: 4.3.22

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 1, 2021, 2:25:29 AM3/1/21
to 3dmodel...@gmail.com, google-adm...@googlegroups.com
Hi Paul,

Could you kindly try updating your Unity Engine to one of the latest versions first (with Unity 2020.2.5 being the absolute latest at the moment), to see if this would alleviate the issue?

Regards,
Google Logo
Teejay Wennie Pimentel
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2DJY9X:ref

Paul

unread,
Mar 3, 2021, 4:17:31 AM3/3/21
to Google Mobile Ads SDK Developers
Hi Teejay,

Thanks for your reply!

We've updated Unity3D to version 2020.1.17f. Unfortunately, it didn't help. We can still detect\reproduce significant freezes\ANRs on Android 8.1 (Huawei Y5 lite).

FYI Unity3D 2020.1.17f is the latest stable version of Unity3D. We tried to upgrade to 2020.2.2, but it didn't work with our project and according to the information on Unity3D-forums, lots of developer come across the same issue and waiting for the update of this version.

Tell me, please, what else can we do to fix the issue?

Regards,

Paul.

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 3, 2021, 11:12:34 AM3/3/21
to 3dmodel...@gmail.com, google-adm...@googlegroups.com
Hi Paul,

I work with Teejay and will assist you. Do you have access to the traces of all the threads running? We would like to see the other stacktraces too.

Regards,

Google Logo
Aryeh Baker
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2DJY9X:ref

Paul

unread,
Mar 4, 2021, 3:00:56 AM3/4/21
to Google Mobile Ads SDK Developers

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 4, 2021, 4:56:42 AM3/4/21
to 3dmodel...@gmail.com, google-adm...@googlegroups.com
Hi Paul,

It would be a big help if you can provide other artifacts (Unity3D logs with the ANR, android manifest, gradle file) as well. You may upload this into your Google Drive, then provide to us a shareable link via Reply privately to author option or sending it directly to mobileads...@gmail.com.

Regards,
Google Logo
Teejay Wennie Pimentel
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2DJY9X:ref

Paul

unread,
Mar 4, 2021, 10:13:49 AM3/4/21
to Google Mobile Ads SDK Developers
Hi Teejay,

I've sent all the files to your email - unfortunately "Reply to Author" button is inactive in the forum.

Thanks a lot for your help!

Regards,
Paul.

On Thursday, March 4, 2021 at 11:56:42 AM UTC+2 mobileadssdkforumadvisor wrote:
Hi Paul,

It would be a big help if you can provide other artifacts (Unity3D logs with the ANR, android manifest, gradle file) as well. You may upload this into your Google Drive, then provide to us a shareable link via Reply privately to author option or sending it directly to mobileadstesting99@gmail.com.

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 4, 2021, 3:00:52 PM3/4/21
to 3dmodel...@gmail.com, google-adm...@googlegroups.com
Hi Paul,

Thank you for sending us the files. I was able to look at them, and will be adding them to this thread for my team to look at deeper. At the same time, I will be bringing this to them and see what we can find in them that might help us to see what is happening. Once we have feedback, we will be certain to pass it along to you.

Regards,
Google Logo
William Pescherine
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2DJY9X:ref

Paul

unread,
Mar 5, 2021, 3:03:43 AM3/5/21
to Google Mobile Ads SDK Developers
Hi William,

Thanks a lot! Looking forward to your feedback.

Regards,
Paul.

Ali Imran

unread,
Mar 5, 2021, 5:20:05 AM3/5/21
to Google Mobile Ads SDK Developers
Hello! We are also facing the same problem. We are using Admob and Unity Ads In Unity Engine. Most of the ANRs are related to Admob. Our games have crossed the Bad Behavior threshold (0.47%). I tried to call Load Ad function of admob on other Thread but it can only be called from Main Thread. And we are only showing ads if it is loaded.  I have talked to some other studio they are also facing ANRs issue a lot.


  #00  pc 000000000004bccc  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
  #00  pc 000000000004fb28  /apex/com.android.runtime/lib64/bionic/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+144)
  #00  pc 00000000000b71dc  /apex/com.android.runtime/lib64/bionic/libc.so (NonPI::MutexLockWithTimeout(pthread_mutex_internal_t*, bool, timespec const*)+668)
  #00  pc 0000000000756590  /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libunity.so (???)
  #00  pc 0000000000756558  /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libunity.so (???)
  #00  pc 00000000001fbcb8  /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libunity.so (???)
  #00  pc 0000000000304230  /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libunity.so (???)
  #00  pc 00000000001a5e70  /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libunity.so (???)
  #00  pc 00000000001a4120  /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libunity.so (???)
  #00  pc 00000000010d4da0  /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libil2cpp.so (???)
  #00  pc 00000000010da714  /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libil2cpp.so (???)
  #00  pc 00000000010d1478  /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libil2cpp.so (???)
  #00  pc 0000000001084424  /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libil2cpp.so (???)
  #00  pc 00000000010d979c  /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libil2cpp.so (???)
  #00  pc 00000000010d9644  /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libil2cpp.so (???)
  #00  pc 00000000010daf90  /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libil2cpp.so (???)
  #00  pc 00000000005ec5ac  /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libil2cpp.so (???)
  #00  pc 00000000006740a8  /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libil2cpp.so (???)
  #00  pc 000000000034c278  /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libunity.so (???)
  #00  pc 0000000000358800  /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libunity.so (???)
  #00  pc 000000000019cd90  /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/lib/arm64/libunity.so (???)
  #00  pc 0000000000022bc0  /data/app/~~xG7ZDiIxiKG6wTehNiXiNg==/com.dg.grand.cargo.helicopter.robot.transformation.games-J7cL8VFPhHkSqopEwcXcuQ==/oat/arm64/base.odex (Java_com_unity3d_player_ReflectionHelper_nativeProxyInvoke__JLjava_lang_String_2_3Ljava_lang_Object_2+208)
  at com.unity3d.player.ReflectionHelper.nativeProxyInvoke (Native method)
  at com.unity3d.player.ReflectionHelper.a (unavailable)
  at com.unity3d.player.ReflectionHelper$1.invoke (unavailable)
  at java.lang.reflect.Proxy.invoke (Proxy.java:1006)
  at com.google.android.gms.ads.initialization.OnInitializationCompleteListener.onInitializationComplete
  at com.google.android.gms.internal.ads.zzzd$zza.zze
  at com.google.android.gms.internal.ads.zzajf.zza
  at com.google.android.gms.internal.ads.zzgw.onTransact
  at android.os.Binder.transact (Binder.java:1079)
  at fy.bb (com.google.android.gms.policy_ads_fdr_dynamite@204890103@204890103057.353069505.353069505:2)
  at com.google.android.gms.ads.internal.initialization.f.e (com.google.android.gms.policy_ads_fdr_dynamite@204890103@204890103057.353069505.353069505)
  at com.google.android.gms.ads.nonagon.initialization.a.run (unavailable:2)
  at android.os.Handler.handleCallback (Handler.java:938)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at qg.a (com.google.android.gms.policy_ads_fdr_dynamite@204890103@204890103057.353069505.353069505)
  at com.google.android.gms.ads.internal.util.f.a (com.google.android.gms.policy_ads_fdr_dynamite@204890103@204890103057.353069505.353069505:1)
  at qg.dispatchMessage (com.google.android.gms.policy_ads_fdr_dynamite@204890103@204890103057.353069505.353069505)
  at android.os.Looper.loop (Looper.java:246)
  at android.app.ActivityThread.main (ActivityThread.java:8425)
  at java.lang.reflect.Method.invoke (Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:596)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1130)

Paul

unread,
Mar 10, 2021, 2:19:39 AM3/10/21
to Google Mobile Ads SDK Developers
Hello William, Teejay, Aryeh,

Tell me, please, are there any updates?

Thanks.

Paul.

Paul

unread,
Mar 15, 2021, 5:45:37 AM3/15/21
to Google Mobile Ads SDK Developers
Kind reminder :)

Google Mobile Ads SDK Developers

unread,
Mar 18, 2021, 11:58:27 AM3/18/21
to Google Mobile Ads SDK Developers

Hi,

Reposting the last inquiry from the forum as it wasn't routed to our support queue.


Cheers,

Aryeh Baker
Mobile Ads SDK Team

Paul

unread,
Mar 24, 2021, 5:22:47 AM3/24/21
to Google Mobile Ads SDK Developers
Hi all,

Tell me, please, are there any news?

Best regards,

Paul.

Roman

unread,
Jul 7, 2021, 8:53:58 AM7/7/21
to Google Mobile Ads SDK Developers

Any news on this?
Reply all
Reply to author
Forward
0 new messages