In past year Admob team introduced a bug into its Unity SDK which causes a huge number of ANRs for many developers.
You can find lots of reports on support forum, but the most recent topic is https://groups.google.com/g/google-admob-ads-sdk/c/6LfTaInDGtU.
The issue seems to be a deadlock related to the init of the WebView.
Initially Admob team ignored and and attributed the problem to a bug in a specific Android's WebView bug, and as they said issue should have recede as people upgrade to newer WebView. Turns out it's not the case, and we see more and more ANRs in a newer versions of Android.
What even more suspicious these ANRs come in waves - few days there is none of them, and then huge wave which pushes apps to a bad behaviour threshold.
This problem is super critical, since i ruins many apps and business, because Google Play severely punishes apps for even slight increase in ANRs rate.
So far Admob team was handling this issue in a disgraceful way: ignoring it initially, and "investigating" it for about 2-3 months already with no result.
There is two types of ANRs related to the same issue:
1. Broadcast of Intent { act=android.intent.action.SCREEN_OFF flg=0x58200010 }
No stack trace
2. 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: 9. Wait queue head age: 14852.2ms.)
com.unity3d.player.UnityPlayerActivity
#00 pc 00000000000706b4 /system/lib64/libc.so (nanosleep+8)
#00 pc 000000000045b150 /data/app/com.app.id-3lXBPjkSmjrQATT-XgPpFg==/lib/arm64/libil2cpp.so (???)
#00 pc 0000000000467d58 /data/app/com.app.id-3lXBPjkSmjrQATT-XgPpFg==/lib/arm64/libil2cpp.so (???)
#00 pc 000000000047a010 /data/app/com.app.id-3lXBPjkSmjrQATT-XgPpFg==/lib/arm64/libil2cpp.so (???)
#00 pc 000000000043bb3c /data/app/com.app.id-3lXBPjkSmjrQATT-XgPpFg==/lib/arm64/libil2cpp.so (???)
#00 pc 00000000002d42c0 /data/app/com.app.id-3lXBPjkSmjrQATT-XgPpFg==/lib/arm64/libunity.so (???)
#00 pc 000000000017ad04 /data/app/com.app.id-3lXBPjkSmjrQATT-XgPpFg==/lib/arm64/libunity.so (???)
#00 pc 000000000017ac1c /data/app/com.app.id-3lXBPjkSmjrQATT-XgPpFg==/lib/arm64/libunity.so (???)
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.zzbdx.zzb
at com.google.android.gms.internal.ads.zzbnp.zzbK
at com.google.android.gms.internal.ads.zzhr.onTransact
at android.os.Binder.transact (Binder.java:675)
at zf.bb (com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:2)
at com.google.android.gms.ads.internal.initialization.f.e (com.google.android.gms.policy_ads_fdr_dynamite@[email protected])
at com.google.android.gms.ads.nonagon.initialization.c.run (com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:2)
at android.os.Handler.handleCallback (Handler.java:907)
at android.os.Handler.dispatchMessage (Handler.java:105)
at ato.a (com.google.android.gms.policy_ads_fdr_dynamite@[email protected])
at com.google.android.gms.ads.internal.util.f.a (com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:1)
at ato.dispatchMessage (com.google.android.gms.policy_ads_fdr_dynamite@[email protected])
at android.os.Looper.loop (Looper.java:216)
at android.app.ActivityThread.main (ActivityThread.java:7625)
at java.lang.reflect.Method.invoke (Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:987)
Hi
Asma
From: bogmix @.>
Sent: Saturday, October 23, 2021 2:29:34 PM
To: googleads/googleads-mobile-unity *@.>
Cc: Subscribed @.**>
Subject: [googleads/googleads-mobile-unity] Huge number of ANRs in Unity: Input dispatching timed out... (Issue #1825)
[REQUIRED] Step 1: Describe your environment
[REQUIRED] Step 2: Describe the problem
In past year Admob team introduced a bug into its Unity SDK which causes a huge number of ANRs for many developers.
You can find lots of reports on support forum, but the most recent topic is https://groups.google.com/g/google-admob-ads-sdk/c/6LfTaInDGtU.
The issue seems to be a deadlock related to the init of the WebView.
Initially Admob team ignored and and attributed the problem to a bug in a specific Android's WebView bug, and as they said issue should have recede as people upgrade to newer WebView. Turns out it's not the case, and we see more and more ANRs in a newer versions of Android.
What even more suspicious these ANRs come in waves - few days there is none of them, and then huge wave which pushes apps to a bad behaviour threshold.
This problem is super critical, since i ruins many apps and business, because Google Play severely punishes apps for even slight increase in ANRs rate.
So far Admob team was handling this issue in a disgraceful way: ignoring it initially, and "investigating" it for about 2-3 months already with no result.
There is two types of ANRs related to the same issue:
No stack trace
com.unity3d.player.UnityPlayerActivity
#00 pc 00000000000706b4 /system/lib64/libc.so (nanosleep+8)
#00 pc 000000000045b150 /data/app/com.app.id-3lXBPjkSmjrQATT-XgPpFg==/lib/arm64/libil2cpp.so (???)
#00 pc 0000000000467d58 /data/app/com.app.id-3lXBPjkSmjrQATT-XgPpFg==/lib/arm64/libil2cpp.so (???)
#00 pc 000000000047a010 /data/app/com.app.id-3lXBPjkSmjrQATT-XgPpFg==/lib/arm64/libil2cpp.so (???)
#00 pc 000000000043bb3c /data/app/com.app.id-3lXBPjkSmjrQATT-XgPpFg==/lib/arm64/libil2cpp.so (???)
#00 pc 00000000002d42c0 /data/app/com.app.id-3lXBPjkSmjrQATT-XgPpFg==/lib/arm64/libunity.so (???)
#00 pc 000000000017ad04 /data/app/com.app.id-3lXBPjkSmjrQATT-XgPpFg==/lib/arm64/libunity.so (???)
#00 pc 000000000017ac1c /data/app/com.app.id-3lXBPjkSmjrQATT-XgPpFg==/lib/arm64/libunity.so (???)
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.zzbdx.zzb
at com.google.android.gms.internal.ads.zzbnp.zzbK
at com.google.android.gms.internal.ads.zzhr.onTransact
at android.os.Binder.transact (Binder.java:675)
at zf.bb @.*@213806100057.397311113.397311113:2)
at com.google.android.gms.ads.internal.initialization.f.e @.*@213806100057.397311113.397311113)
at com.google.android.gms.ads.nonagon.initialization.c.run @.*@213806100057.397311113.397311113:2)
at android.os.Handler.handleCallback (Handler.java:907)
at android.os.Handler.dispatchMessage (Handler.java:105)
at ato.a @.*@213806100057.397311113.397311113)
at com.google.android.gms.ads.internal.util.f.a @.*@213806100057.397311113.397311113:1)
at ato.dispatchMessage @.*@213806100057.397311113.397311113)
at android.os.Looper.loop (Looper.java:216)
at android.app.ActivityThread.main (ActivityThread.java:7625)
at java.lang.reflect.Method.invoke (Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:987)
―
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/googleads/googleads-mobile-unity/issues/1825, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJAHSOEIW6OBDI2QVI3YN4DUIJ575ANCNFSM5GSCF2LQ.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Asma
From: bogmix @.>
Sent: Saturday, October 23, 2021 2:29:34 PM
To: googleads/googleads-mobile-unity *@.>
Cc: Subscribed @.**>
Subject: [googleads/googleads-mobile-unity] Huge number of ANRs in Unity: Input dispatching timed out... (Issue #1825)
[REQUIRED] Step 1: Describe your environment
[REQUIRED] Step 2: Describe the problem
In past year Admob team introduced a bug into its Unity SDK which causes a huge number of ANRs for many developers.
You can find lots of reports on support forum, but the most recent topic is https://groups.google.com/g/google-admob-ads-sdk/c/6LfTaInDGtU.
The issue seems to be a deadlock related to the init of the WebView.
Initially Admob team ignored and and attributed the problem to a bug in a specific Android's WebView bug, and as they said issue should have recede as people upgrade to newer WebView. Turns out it's not the case, and we see more and more ANRs in a newer versions of Android.
What even more suspicious these ANRs come in waves - few days there is none of them, and then huge wave which pushes apps to a bad behaviour threshold.
This problem is super critical, since i ruins many apps and business, because Google Play severely punishes apps for even slight increase in ANRs rate.
So far Admob team was handling this issue in a disgraceful way: ignoring it initially, and "investigating" it for about 2-3 months already with no result.
There is two types of ANRs related to the same issue:
No stack trace
com.unity3d.player.UnityPlayerActivity
#00 pc 00000000000706b4 /system/lib64/libc.so (nanosleep+8)
#00 pc 000000000045b150 /data/app/com.app.id-3lXBPjkSmjrQATT-XgPpFg==/lib/arm64/libil2cpp.so (???)
#00 pc 0000000000467d58 /data/app/com.app.id-3lXBPjkSmjrQATT-XgPpFg==/lib/arm64/libil2cpp.so (???)
#00 pc 000000000047a010 /data/app/com.app.id-3lXBPjkSmjrQATT-XgPpFg==/lib/arm64/libil2cpp.so (???)
#00 pc 000000000043bb3c /data/app/com.app.id-3lXBPjkSmjrQATT-XgPpFg==/lib/arm64/libil2cpp.so (???)
#00 pc 00000000002d42c0 /data/app/com.app.id-3lXBPjkSmjrQATT-XgPpFg==/lib/arm64/libunity.so (???)
#00 pc 000000000017ad04 /data/app/com.app.id-3lXBPjkSmjrQATT-XgPpFg==/lib/arm64/libunity.so (???)
#00 pc 000000000017ac1c /data/app/com.app.id-3lXBPjkSmjrQATT-XgPpFg==/lib/arm64/libunity.so (???)
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.zzbdx.zzb
at com.google.android.gms.internal.ads.zzbnp.zzbK
at com.google.android.gms.internal.ads.zzhr.onTransact
at android.os.Binder.transact (Binder.java:675)
at zf.bb @.*@213806100057.397311113.397311113:2)
at com.google.android.gms.ads.internal.initialization.f.e @.*@213806100057.397311113.397311113)
at com.google.android.gms.ads.nonagon.initialization.c.run @.*@213806100057.397311113.397311113:2)
at android.os.Handler.handleCallback (Handler.java:907)
at android.os.Handler.dispatchMessage (Handler.java:105)
at ato.a @.*@213806100057.397311113.397311113)
at com.google.android.gms.ads.internal.util.f.a @.*@213806100057.397311113.397311113:1)
at ato.dispatchMessage @.*@213806100057.397311113.397311113)
at android.os.Looper.loop (Looper.java:216)
at android.app.ActivityThread.main (ActivityThread.java:7625)
at java.lang.reflect.Method.invoke (Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:987)
―
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/googleads/googleads-mobile-unity/issues/1825, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJAHSOEIW6OBDI2QVI3YN4DUIJ575ANCNFSM5GSCF2LQ.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Hello
Someone came up with the way to reproduce this bug, read here - https://groups.google.com/g/google-admob-ads-sdk/c/eabu4XtJLzo
we are facing the same problem with Unity 2018.4.36 and AdMob 6.1.1
Hi Everyone,
Thanks for raising awareness of this issue. We are looking at this issue, and I will do what I can to escalate the issue.
Hi Everyone,
Thanks for raising awareness of this issue. We are looking at this issue, and I will do what I can to escalate the issue.
Hello
I'm afraid awareness is not enough here, it should be fixed ASAP, this bug literally kills apps.
Do you have any ideas how consequences of this bug can be mitigated on our side?
Hi Everyone,
Thanks for raising awareness of this issue. We are looking at this issue, and I will do what I can to escalate the issue.Hello
I'm afraid awareness is not enough here, it should be fixed ASAP, this bug literally kills apps. Do you have any ideas how consequences of this bug can be mitigated on our side?
The best mitigation is to switch to IronSource (pretty easy as Admob) or AppLovin. Admob has became unusable since almost a year ago (8 months from last version 5 to first version 6 and then unreliable since then).
We're facing the same issue and our ranking in Google Play has been lowered as a result of that. This is a critical issue.
Hello
Is there any update on this issue? Any estimates when it can be fixed?
We’re seeing growing number of these ANRs and it’s depressing.
The worst support team and the worst overall team in the world. :)
The same issue has drastically lowered our rankings. It's ridiculous to get penalized from Google for a problem caused by Google..
Hello
@NVentimiglia
What is the state of this issue?
Why it’s not marked as P1 if so many people report it?
As soon as we started receiving more of these ANRs without changing anything, we literally started losing tens of thousands of dollars every month due to being penalized by ANR rates.
Despite big spend campaings, we're not getting any organic users at all anymore.
Our games are very lean, they have absolutely no issues with the exception of AdMob.
Steady 60fps, but as soon as we start loading ads, framerate drops considerably. So far we're loading ads one by one, but availability becomes low, we're losing ARPDAU, and many times this isn't even enough.
Especially on low end devices and especially on android 8.1
What are we supposed to do now, @google-admin?
Just start losing money because you're too lazy to fix your damn code?
History has never been kind to companies that get to have a monopoly and then mistreat their customers.
@NVentimiglia
What is the state of this bug?
Here's a flamegraph of all the stacktraces from ANR Exits we've found in our game.
Again, there's many more ANRs (over 1000) - but these are just ANR Exits
If this doesn't help, idk what does :P

Using this plugin a lot of games use AdMOB, why google is delivering such a low quality plugin?
It is also in its interest to provide robust and easy to use plugin to support admob.
We've switched to IronSource for now. The crashes and ANR went down dramatically.
@Cptweirdo are you using Admob as ad source in IronSource's mediation?
We switched to IS and do use AdMob source, this improved crash and ANR rate but did not fix it completely.
@denis-ftc-denisov indeed we are mediating AdMob via IS. We still get crashes and ANRs, but it's still a marked improvement.
Hello there, what is the status of this issue?
Just to mention few numbers, by 2020 Goggle Ad Network (Google revenues from advertising outside of its IP's) were $23B. More or less 30%-40% of them are from Admob and probably something like 30% might come from this plugin. So, aproximately $2B revenues were generated from this plugin itself.
Most of the problems are affecting other plugins such as the C++ and/or Java ones, or even other libraries and services such as Firebase. But lets focus on this one, $2B per year, not a big deal for a company such Google but actually it is if we look at it with perspective. The strenght of Advertising is in the capacity to deliver targeted and valuable customers (own ecosystem + external one), if they begin to lose the trust of the advertisers from a publisher perspective they will be getting less data so they will become weaker and the performance of the whole ecosystem will begin to fall. This plugin is targetting mainly Games (Where Admob has a pretty dominant situation but getting weaker due to these problems) where customers spend most of their time when on mobile (+ social networks -> none of them google owned or even showing Goggle Ads). This is a really risky situation for you guys, it has been months of failures and delays.
I have same problem at :
Unity version: 2020.3.13f1
Google Mobile Ads Unity plugin version: v6.0.1
Platform: Android
Platform OS version: API level 21 - 30
Mediation ad networks used, and their versions: None
We recently updated the app with the same conditions.
Does the problem only happen with newly updated apps?
Asma
Hey @NVentimiglia
What is the state of this issue? Why do you ignore it?
Is there any workaround? Same problem, almost a year has passed.
Please prioritize this issue
Same problem
We are facing this bug since updating from googlemobileads version 5 to 6 and so on.
this bug has bring our games to the floor, im afraid further delay in removing bug gonna destroy our years long progress in playstore!
Please, Google, at least a feedback.
On Sun, 19 Dec 2021 at 23:48, Rizwan31840 @.*> wrote:
We are facing this bug since updating from googlemobileads version 5 to 6
and so on.
this bug has bring our games to the floor, im afraid further delay in
removing bug gonna destroy our years long progress in playstore!—
Reply to this email directly, view it on GitHub
https://github.com/googleads/googleads-mobile-unity/issues/1825#issuecomment-997475724,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAURNYLAZYKOMLJA5B62QK3URZOM3ANCNFSM5GSCF2LQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.You are receiving this because you commented.Message ID:
@.*>
What is the state of this issue?
Hi,
We are getting the same ANR's
We are looking to downgrade.
Do we know exactly which versions are affected and which don't? Is 6.0.0 affected?
Edit: Is version 5+ affected? I'm looking for a safe and tested version to downgrade to. Can anyone enlighten me?
@NVentimiglia can you speak to your boss and refer this issue to address it?
Any ETA on this would be great news.
Following this conversation and some others makes it clear that this bug has a deeper root cause tied to the Android ads plugin and that has been going on for longer than A YEAR!
Indeed having at least some update would be nice.
Our game has been impacted by a ton of ANR and it's heavily affecting our revenue because of the lack of new players.
If Google devs think this might not be the cause, at least you could say it or participate in the conversation
Google reached out to us letting us know that our ANR is above the 1% treshold which has an impact on the app ranking. You can see exactly when it starts ( update of ad library )
Unity 2020.3.18f1
Google Mobile Ads Unity Plugin v6.1.2


@mastef
I also encountered the same problem recently. I just updated the game version and updated the admob library, but there are a lot of ANRs, the ANR curve is the same as yours, do you know what caused it?
Unity 2019.1.1f1
Google Mobile Ads Unity Plugin v5.4.0
@mastef @zhouzhuli
Same here. A lot of new ANRs starting from 22.12.2021 (the curve looks almost identical)
Unity 2020.3.0f1
IronSource 7.1.12.1
IronSource Google (AdMob and Ad Manager) 4.3.33
I think that, at least, Google should confirm this problem in order that
the users can move on replacing the library with something else.
Regards
On Wed, 5 Jan 2022 at 14:13, Michal Oláh @.*> wrote:
@mastef https://github.com/mastef @zhouzhuli
https://github.com/zhouzhuli
Same here. A lot of new ANRs starting from 22.12.2021 (the curve looks
almost identical)Unity 2020.3.0f1
IronSource 7.1.12.1
IronSource Google (AdMob and Ad Manager) 4.3.33—
Reply to this email directly, view it on GitHub
https://github.com/googleads/googleads-mobile-unity/issues/1825#issuecomment-1005674775,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAURNYKH6FHPOVXGZ7T7OC3UUQ7YLANCNFSM5GSCF2LQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.You are receiving this because you commented.Message ID:
@.*>
@mickeeyo and @zhouzhuli post your curves to raise awareness.
We released a big update on December 2nd. I think in this update we also updated from Unity 2019.2.11f1 to 2020.3.18f1. Of course we used in it the latest googleads-mobile-unity release.
What if the changed AndroidManifest/gradle workflow somehow produces ANRs? Right now I cannot pinpoint on what exactly causes the ANR. We even tried reducing the init of the ad libraries to 60 seconds after launch and removing whole firebase libraries ( auth & db ). The ANRs we are seeing don't seem to produce stacktraces, so maybe some init call blocks the main thread?
Here's some more data:
By ANR type :

Android 7 and 12 not affected? Or too few sessions

Affected devices:

Vivo 1906 with 10.77% and realme c11 with 17.26% ANR rate seem to be high contenders to reproduce this issue. I hope this is not based on some country ads.
Chromebooks and Tablets higher ANR rate :

Before this update we had a very low ANR rate - maybe around 0.45%.
We can also see that the app only locks up once, since our Multiple ANR rate is low :

@mastef
The difference is that we did not modify too much code, just fixed some minor issues, and did not upgrade the admob sdk version. We just refreshed the ad library. It may not be a problem with the admob sdk version. It may be a bug in the ad library.
@mastef The difference is that we did not modify too much code, just fixed some minor issues, and did not upgrade the admob sdk version. We just refreshed the ad library. It may not be a problem with the admob sdk version. It may be a bug in the ad library.
It's true - just mentioning what we did. For us it was a bigger update from Unity 2019 -> 2020, and I saw other people started having this issue as well after update to Unity 2020.3. But I'm actually not sure if we updated the mobile unity sdk version. It would auto-pull newer android libs on its own right?
Would be also interesting to be able to measure this on our own - anybody got experience with measuring ANRs in Unity games? Seeing them in the Google Play console is a little late
I think it's time to work through https://groups.google.com/g/google-admob-ads-sdk/search?q=ANR and see when this all started. Also it seems as if https://bugs.chromium.org/p/chromium/issues/detail?id=1197928#c6 may be related - with the webview team being very attentive and believing the issue is resolved.
Also I noticed somebody else reduced ANRs by NOT initializing interstitial and reward ads in _the same frame_.

I think it's time to work through https://groups.google.com/g/google-admob-ads-sdk/search?q=ANR and see when this all started. Also it seems as if https://bugs.chromium.org/p/chromium/issues/detail?id=1197928#c6 may be related - with the webview team being very attentive and believing the issue is resolved.
Also I noticed somebody else reduced ANRs by NOT initializing interstitial and reward ads in _the same frame_.
_Also I noticed somebody else reduced ANRs by NOT initializing interstitial and reward ads in the same frame._
It's an interesting theory. I'll try it in my game by initializing the Iron Source SDK with AdMob Adapter in IEnumerator with some delay.
Bump
at java.lang.Object.wait (Native method)
at java.lang.Object.wait (Object.java:442)
at java.lang.Object.wait (Object.java:568)
at android.app.SharedPreferencesImpl.awaitLoadedLocked (SharedPreferencesImpl.java:279)
at android.app.SharedPreferencesImpl.edit (SharedPreferencesImpl.java:368)
at ha.f (chromium-TrichromeWebViewGoogle.aab-stable-469209833)
at org.chromium.android_webview.AwBrowserContext.
at org.chromium.android_webview.AwBrowserContext.create (chromium-TrichromeWebViewGoogle.aab-stable-469209833)
at J.N.MCLx2xtg (Native method)
at SB0.c (chromium-TrichromeWebViewGoogle.aab-stable-469209833)
at SB0.d (chromium-TrichromeWebViewGoogle.aab-stable-469209833)
at SB0.b (chromium-TrichromeWebViewGoogle.aab-stable-469209833)
at SB0.f (chromium-TrichromeWebViewGoogle.aab-stable-469209833)
at com.android.webview.chromium.WebViewChromiumFactoryProvider.k (chromium-TrichromeWebViewGoogle.aab-stable-469209833)
at com.android.webview.chromium.WebViewChromium.init (chromium-TrichromeWebViewGoogle.aab-stable-469209833)
at android.webkit.WebView.
at android.webkit.WebView.
at android.webkit.WebView.
at android.webkit.WebView.
at android.webkit.WebView.
at com.google.android.gms.ads.internal.webview.ac.
at com.google.android.gms.ads.internal.webview.s.a (com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:4)
at com.google.android.gms.ads.internal.webview.v.a (com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:4)
at com.google.android.gms.ads.internal.js.l.
at com.google.android.gms.ads.internal.js.r.run (com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:2)
at android.os.Handler.handleCallback (Handler.java:938)
at android.os.Handler.dispatchMessage (Handler.java:99)
at auj.a (com.google.android.gms.policy_ads_fdr_dynamite@[email protected])
at com.google.android.gms.ads.internal.util.f.a (com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:1)
at auj.dispatchMessage (com.google.android.gms.policy_ads_fdr_dynamite@[email protected])
at android.os.Looper.loop (Looper.java:223)
at android.app.ActivityThread.main (ActivityThread.java:7720)
at java.lang.reflect.Method.invoke (Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:612)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:997)
Bump
#00 pc 000000000005a7b8 /apex/com.android.runtime/lib/bionic/libc.so (syscall+28)
#00 pc 00000000000e44e5 /apex/com.android.runtime/lib/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread)+80)
#00 pc 00000000002c2c83 /apex/com.android.runtime/lib/libart.so (art::JNI::NewString(_JNIEnv, unsigned short const*, int)+346)
#00 pc 00000000005a1f45 /data/app/com.google.android.trichromelibrary_469208730-HPtNBWVRJKVdX3D_4aKK9Q==/base.apk (???)
at J.N.M1Y_XVCN (Native method)
at org.chromium.content.browser.BrowserStartupControllerImpl.a (chromium-TrichromeWebViewGoogle.aab-stable-469208730)
at org.chromium.content.browser.BrowserStartupControllerImpl.g (chromium-TrichromeWebViewGoogle.aab-stable-469208730)
at t8.run (chromium-TrichromeWebViewGoogle.aab-stable-469208730)
at org.chromium.base.ThreadUtils.f (chromium-TrichromeWebViewGoogle.aab-stable-469208730)
at RB0.d (chromium-TrichromeWebViewGoogle.aab-stable-469208730)
at RB0.b (chromium-TrichromeWebViewGoogle.aab-stable-469208730)
at RB0.f (chromium-TrichromeWebViewGoogle.aab-stable-469208730)
at com.android.webview.chromium.WebViewChromiumFactoryProvider.k (chromium-TrichromeWebViewGoogle.aab-stable-469208730)
at com.android.webview.chromium.WebViewChromium.init (chromium-TrichromeWebViewGoogle.aab-stable-469208730)
at android.webkit.WebView.
at android.webkit.WebView.
at android.webkit.WebView.
at android.webkit.WebView.
at android.webkit.WebView.
at com.google.android.gms.ads.internal.webview.ac.
at com.google.android.gms.ads.internal.webview.s.a (com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:4)
at com.google.android.gms.ads.internal.webview.v.a (com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:4)
at com.google.android.gms.ads.internal.js.l.
at com.google.android.gms.ads.internal.js.r.run (com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:2)
at android.os.Handler.handleCallback (Handler.java:883)
at android.os.Handler.dispatchMessage (Handler.java:100)
at aur.a (com.google.android.gms.policy_ads_fdr_dynamite@[email protected])
at com.google.android.gms.ads.internal.util.f.a (com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:1)
at aur.dispatchMessage (com.google.android.gms.policy_ads_fdr_dynamite@[email protected])
at android.os.Looper.loop (Looper.java:214)
at android.app.ActivityThread.main (ActivityThread.java:7386)
at java.lang.reflect.Method.invoke (Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:980)
Bump
at com.google.unity.ads.UnityRewardedAd$1.run (UnityRewardedAd.java:53)
at android.os.Handler.handleCallback (Handler.java:790)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:210)
at android.app.ActivityThread.main (ActivityThread.java:7080)
at java.lang.reflect.Method.invoke (Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:523)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:863)
We updated Unity from 2020.3.0f1 to 2020.3.24f1 and ANR rate went above acceptable rate, because of ads
I think it's time to work through https://groups.google.com/g/google-admob-ads-sdk/search?q=ANR and see when this all started. Also it seems as if https://bugs.chromium.org/p/chromium/issues/detail?id=1197928#c6 may be related - with the webview team being very attentive and believing the issue is resolved.
Also I noticed somebody else reduced ANRs by NOT initializing interstitial and reward ads in _the same frame_._Also I noticed somebody else reduced ANRs by NOT initializing interstitial and reward ads in the same frame._
It's an interesting theory. I'll try it in my game by initializing the Iron Source SDK with AdMob Adapter in IEnumerator with some delay.
Just tried this, 1 second delay, it didn't help
Bump
at java.lang.Object.wait (Native method)
at java.lang.Object.wait (Object.java:442)
at java.lang.Object.wait (Object.java:568)
at com.google.android.gms.ads.exoplayer3.n.d (com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:2)
at com.google.android.gms.ads.internal.video.exoplayer3.ab.ax (com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:3)
at com.google.android.gms.ads.internal.video.gmsg.exoplayer3.e.f (com.google.android.gms.policy_ads_fdr_dynamite@[email protected])
at com.google.android.gms.ads.internal.webview.ac.aS (com.google.android.gms.policy_ads_fdr_dynamite@[email protected])
at com.google.android.gms.ads.internal.webview.ac.destroy (com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:7)
at com.google.android.gms.ads.internal.webview.y.destroy (com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:5)
at com.google.android.gms.ads.internal.webview.q.f (com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:2)
at com.google.android.gms.ads.internal.gmsg.y.a (com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:4)
at com.google.android.gms.ads.internal.webview.q.i (com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:3)
at com.google.android.gms.ads.internal.webview.q.e (com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:8)
at com.google.android.gms.ads.internal.webview.ai.run (com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:4)
at android.os.Handler.handleCallback (Handler.java:938)
at android.os.Handler.dispatchMessage (Handler.java:99)
at auj.a (com.google.android.gms.policy_ads_fdr_dynamite@[email protected])
at com.google.android.gms.ads.internal.util.f.a (com.google.android.gms.policy_ads_fdr_dynamite@[email protected]:1)
at auj.dispatchMessage (com.google.android.gms.policy_ads_fdr_dynamite@[email protected])
at android.os.Looper.loop (Looper.java:223)
at android.app.ActivityThread.main (ActivityThread.java:7950)
at java.lang.reflect.Method.invoke (Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:603)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:947)
@genin43 please don't spam other participants. The team announced there should be a fix in February
Also I noticed somebody else reduced ANRs by NOT initializing interstitial and reward ads in _the same frame_.
@mastef or @genin43 Can you please explain what this means? Please give either a link to the original discussion, or give a snippet of how you would initialize the two systems separately.
AFAIK there is only one call which initializes both rewarded ads and interstitials at the same time and I don't know how I would separate it into two: MobileAds.Initialize()
Thanks!
@djcvijic
As far as i understand, you should not do this:
frame1
this.interstitial = new InterstitialAd(Id);
AdRequest request = new AdRequest.Builder().Build();
this.interstitial.LoadAd(request);
frame1
this.rewardedAd = new RewardedAd(Id);
AdRequest request = new AdRequest.Builder().Build();
this.rewardedAd.LoadAd(request);
So in fact, loading both an interstitial and a rewarded ad in the same frame may or may not cause an increase in ANRs.
Thank you @genin43 that is much clearer! 👍
Most helpful comment
Hello there, what is the status of this issue?
Just to mention few numbers, by 2020 Goggle Ad Network (Google revenues from advertising outside of its IP's) were $23B. More or less 30%-40% of them are from Admob and probably something like 30% might come from this plugin. So, aproximately $2B revenues were generated from this plugin itself.
Most of the problems are affecting other plugins such as the C++ and/or Java ones, or even other libraries and services such as Firebase. But lets focus on this one, $2B per year, not a big deal for a company such Google but actually it is if we look at it with perspective. The strenght of Advertising is in the capacity to deliver targeted and valuable customers (own ecosystem + external one), if they begin to lose the trust of the advertisers from a publisher perspective they will be getting less data so they will become weaker and the performance of the whole ecosystem will begin to fall. This plugin is targetting mainly Games (Where Admob has a pretty dominant situation but getting weaker due to these problems) where customers spend most of their time when on mobile (+ social networks -> none of them google owned or even showing Goggle Ads). This is a really risky situation for you guys, it has been months of failures and delays.