ANR Reporting

607 views
Skip to first unread message

Rupinder Singh

unread,
Apr 14, 2021, 12:23:45 AM4/14/21
to Google Mobile Ads SDK Developers
Hi, 

We are facing an outrageous number of ANRS in the past few weeks. They are reported in multiple terms. We can't reproduce the ANR locally. we attached the logs from the play console. It looks like the ANR is coming in Admob SDK initialization. Could you please check and assist that what wrong with the initialization?.

The library version we are using is :
implementation 'com.google.android.gms:play-services-ads:19.8.0'

Please find the attached logs.
anr_log_3.txt
anr_log_1.txt
anr_log_4.txt
anr_log_2.txt

Mobile Ads SDK Forum Advisor Prod

unread,
Apr 14, 2021, 2:39:11 AM4/14/21
to rupinde...@appsmartz.com, google-adm...@googlegroups.com

Hi Rupinder,

 Thank you for reaching out to us.

Could you please provide us the following so that we can investigate this further.

  • Percentage occurrence of the crash
  • Device name and Android version of devices affected

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2FYNTA:ref

Rupinder Singh

unread,
Apr 14, 2021, 7:56:39 AM4/14/21
to Google Mobile Ads SDK Developers
Hi,

Thanks, There are multiple threads to this ANR, so I have attached the screenshot from the play console of the estimated occurrence.
Also, I have attached the screenshot of the list of devices and affected android OS.

If anything you need more in device specification or something please let me know.
affected_devices_list_6.png
affected_devices_list_1.png
affected_devices_list_2.png
affected_android_os_list.png
affected_device_details_2.png
affected_devices_list_4.png
affected_device_details_1.png
affected_devices_list_3.png
affected_devices_list_5.png

Mobile Ads SDK Forum Advisor Prod

unread,
Apr 14, 2021, 9:34:53 AM4/14/21
to rupinde...@appsmartz.com, google-adm...@googlegroups.com
Hi Rupinder,

I work with Pamela and will assist you. Thank you for the screenshots of devices affected. Can you tell us which ANR are these screenshots related to?

I brought up to my team the first and 3rd ANR as they both have the Mobile ADS SDK symbols in them. We will get back to you as soon as we have more actionable information. If you can replicate this reliably, preferably in one of our sample apps, that would help speed up resolution.

Regards,

Google Logo
Aryeh Baker
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2FYNTA:ref

gr...@kochaniak.com

unread,
Apr 14, 2021, 8:21:06 PM4/14/21
to Google Mobile Ads SDK Developers
I have exactly the same error, started in the 2nd half of March 2021, if I remember correctly. Suddenly the ANR rate in my Android app is 5x normal and well above the "bad behavior" threshold, and almost all the stack traces indicate AdMob SDK, mostly banner ad - inside WebView executing JavaScript. See attached graph of ANR rate from Google Play developer console.  Snap1.png
Here are several stack traces:

Samsung Galaxy Note10 Android 11 (SDK 30)

 #00 pc 00000000021a89bc /data/app/com.google.android.webview-bstpxRc4TmCuFbhPHIDBzQ==/base.apk!libmonochrome.so (???) 
 at J.N.M0uS2SDH (N.java)
 at org.chromium.content.browser.webcontents.WebContentsImpl.m (WebContentsImpl.java:4)
 at org.chromium.android_webview.AwContents.j (AwContents.java:3)
 at com.android.webview.chromium.WebViewChromium.evaluateJavaScript (WebViewChromium.java:8)
 at android.webkit.WebView.evaluateJavascript (WebView.java:883)
 at com.google.android.gms.ads.internal.webview.ac.evaluateJavascript (ac.java:3)
 at com.google.android.gms.ads.internal.webview.ac.aH (ac.java:3)
 at com.google.android.gms.ads.internal.webview.ac.d (ac.java:3)
 at com.google.android.gms.ads.internal.webview.ac.f (ac.java:3)
 at com.google.android.gms.ads.internal.webview.ac.c (ac.java)
 at com.google.android.gms.ads.internal.webview.y.c (y.java)
 at com.google.android.gms.ads.nonagon.ad.event.ez.a (ez.java)
 at com.google.android.gms.ads.nonagon.ad.event.dh.run (dh.java:2)
 at com.google.android.gms.ads.internal.util.future.c.execute (c.java:2)
 at com.google.android.gms.ads.internal.util.future.d.execute (d.java)
 at com.google.android.gms.ads.nonagon.ad.event.dj.y (dj.java)
 at com.google.android.gms.ads.nonagon.ad.event.fa.c (fa.java)
 at com.google.android.gms.ads.internal.activeview.f.c (f.java:32)
 at com.google.android.gms.ads.internal.activeview.f.a (f.java)
 at com.google.android.gms.ads.nonagon.ad.event.fa.m (fa.java:1)
 at com.google.android.gms.ads.nonagon.ad.webview.k.a (k.java:7)
 at com.google.android.gms.ads.nonagon.render.v.a (v.java:10)
 at ya.b (ya.java) at yc.run (yc.java:9) at android.os.Handler.handleCallback (Handler.java:938)
 at android.os.Handler.dispatchMessage (Handler.java:99) at qr.a (qr.java)
 at com.google.android.gms.ads.internal.util.f.a (f.java:1)
 at qr.dispatchMessage (qr.java) at android.os.Looper.loop (Looper.java:246)
 at android.app.ActivityThread.main (ActivityThread.java:8443)
 at java.lang.reflect.Method.invoke (Method.java)
 at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:596)
 at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1130)


Xiaomi Mi 10Android 11 (SDK 30)

#00 pc 0000000001d44054 /data/app/~~Mnu63Raue-gbhXY2-gPMkg==/com.google.android.webview-eRZXq8La74KHnbu0_vE8LA==/base.apk!libmonochrome.so (???)
 at J.N.M0uS2SDH (N.java)
 at org.chromium.content.browser.webcontents.WebContentsImpl.m (WebContentsImpl.java:4)
 at org.chromium.android_webview.AwContents.j (AwContents.java:3)
 at com.android.webview.chromium.WebViewChromium.evaluateJavaScript (WebViewChromium.java:8)
 at android.webkit.WebView.evaluateJavascript (WebView.java:889)
 at com.google.android.gms.ads.internal.webview.ac.evaluateJavascript (ac.java:3)
 at com.google.android.gms.ads.internal.webview.ac.aH (ac.java:3)
 at com.google.android.gms.ads.internal.webview.ac.d (ac.java:3)
 at com.google.android.gms.ads.internal.webview.ac.f (ac.java:3)
 at com.google.android.gms.ads.internal.webview.ac.c (ac.java)
 at com.google.android.gms.ads.internal.webview.y.c (y.java)
 at com.google.android.gms.ads.nonagon.ad.event.ez.a (ez.java)
 at com.google.android.gms.ads.nonagon.ad.event.dh.run (dh.java:2)
 at com.google.android.gms.ads.internal.util.future.c.execute (c.java:2)
 at com.google.android.gms.ads.internal.util.future.d.execute (d.java)
 at com.google.android.gms.ads.nonagon.ad.event.dj.y (dj.java)
 at com.google.android.gms.ads.nonagon.ad.event.fa.c (fa.java)
 at com.google.android.gms.ads.internal.activeview.f.c (f.java:32)
 at com.google.android.gms.ads.internal.activeview.f.a (f.java)
 at com.google.android.gms.ads.nonagon.ad.event.fa.m (fa.java:1)
 at com.google.android.gms.ads.nonagon.ad.webview.k.a (k.java:7)
 at com.google.android.gms.ads.nonagon.render.v.a (v.java:10)
 at ya.b (ya.java) at yc.run (yc.java:9) at android.os.Handler.handleCallback (Handler.java:938)
 at android.os.Handler.dispatchMessage (Handler.java:99)
 at qr.a (qr.java) at com.google.android.gms.ads.internal.util.f.a (f.java:1)
 at qr.dispatchMessage (qr.java) at android.os.Looper.loop (Looper.java:236)
 at android.app.ActivityThread.main (ActivityThread.java:8057)
 at java.lang.reflect.Method.invoke (Method.java)
 at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:656)
 at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:967)

and on, and on.... Can provide hundreds of those if you want. I originally thought that this is related to WebView control update in the 2nd half of March, it had a serious bug and simply crashed a lot of apps, which was quickly fixed, but ANRs remain. I submitted a similar bug to WebView/Chrome team, but no serious reaction from them. I use com.google.android.gms:play-services-ads:20.0.0 in my latest app version, but same problem is reported for older versions, which used ver. 19.8.0 and older versions of the app.

And: DARN!!! Why can't I paste here stack traces without line wrapping? Had to manually click to insert like breaks to make them readable. Please fix this forum to allow raw formatted contents, it's not a social chit-chat forum!

Greg Kochaniak, Hyperionics

Mobile Ads SDK Forum Advisor Prod

unread,
Apr 15, 2021, 12:55:09 AM4/15/21
to gr...@kochaniak.com, google-adm...@googlegroups.com

Hi Greg,

Thank you for reaching out and giving us this information.

I understand that this issue is important to you, and assure you that we are looking into it. I will bring this to the rest of the team for further investigation.

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2FYNTA:ref

Greg Kochaniak

unread,
Apr 15, 2021, 9:04:34 AM4/15/21
to Mobile Ads SDK Forum Advisor Prod, google-adm...@googlegroups.com
Thank you, this is urgent, the ANR rate continues to climb daily, which is caused, I guess, by more and more users updating the WebView control on their devices. Almost all the stack traces, no matter which device or Android version, indicate a similar spot as my previous report. I also reported this at Google Chrome team, but they don't take me seriously there. You have probably much better leverage on them.

Please let me know if more stack traces are needed. Regards!

Greg

Mobile Ads SDK Forum Advisor Prod

unread,
Apr 15, 2021, 9:24:30 AM4/15/21
to gr...@kochaniak.com, google-adm...@googlegroups.com
Hi Greg,

Thank you for your comments, I raised them with my team and we will get back to you as soon as we have actionable information.

Regards,

Google Logo
Aryeh Baker
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2FYNTA:ref

ca...@degoo.com

unread,
Apr 16, 2021, 12:29:38 PM4/16/21
to Google Mobile Ads SDK Developers
We're seeing the same spike on our end. Please prioritize this. Right now, we're being punished by Google for going above the "ANR bad behavior threshold" due to a bug caused by Google. We're also seeing the same thing for our crash rate due to the WebView crash  debacle a few weeks ago.

gr...@kochaniak.com

unread,
Apr 16, 2021, 3:43:32 PM4/16/21
to Google Mobile Ads SDK Developers
Anyone who cares of this issue: please see also my bug report to Google Chromium team, they are asking there for more details, how to reproduce etc. Please at least star and comment there to show that the issue is serious, and add any more data you may think of. Here is the link to the Chromium bug report:


Here is a graph of ANR rate in my app for the past 3 months. The first sudden jump up in the ANR rate is on March 6, 2021.

Snap1.png

Greg Kochaniak, Hyperionics

gr...@kochaniak.com

unread,
Apr 17, 2021, 7:47:06 AM4/17/21
to Google Mobile Ads SDK Developers
DARN! The ANR rate climbs daily, yesterday it reached 0.97%. DO SOMETHING, GOOGLE, AND FAST!!!

gr...@kochaniak.com

unread,
Apr 20, 2021, 8:10:13 PM4/20/21
to Google Mobile Ads SDK Developers
In my app (over 500,000 active users monthly) I can remotely enable/disable banner or interstitial ads, and the apps running on end user machines react to this change within 6 to 24 hours. I disabled banner ads only, which rotate every 30 seconds (left interstitials, which are shown no more than once in 15 minutes, and only when new contents is loading). See the attached ANR graph for my app for the last 3 months. I disabled the banner ads on April 17 evening. Now don't try to tell me that I broke something in the app, other than the remote config to stop showing banner ads, there was no change in the app at all since April 17.
Snap2.png

pzyho

unread,
Apr 21, 2021, 5:43:34 AM4/21/21
to Google Mobile Ads SDK Developers
Did you try to disable "video" in banner settings in admob?

gr...@kochaniak.com

unread,
Apr 21, 2021, 7:37:11 AM4/21/21
to Google Mobile Ads SDK Developers
Thank you for the suggestion to disable video in banners, will try this next.

gr...@kochaniak.com

unread,
Apr 21, 2021, 4:04:15 PM4/21/21
to Google Mobile Ads SDK Developers
Enabled banner ads but disabled video in them in AdMob ad unit settings - that did not help - ANRs appeared very shortly after I re-enabled banner ads, even without video - only "text, images and rich media" were enabled. I think the "rich media", which implies heavy use of JavaScript, is the problem. Unfortunately there is no way to disable "rich media" only. For whatever it's worth, I now disabled "Text, image and rich media", but left video ads enabled, to see what happens... I would rather think that video is rarely used in banner ads.

Still the saga continues, without any acknowledgement from Google or a decisive action from their side.

Mobile Ads SDK Forum Advisor Prod

unread,
Apr 22, 2021, 9:53:19 AM4/22/21
to gr...@kochaniak.com, rupinde...@appsmartz.com, google-adm...@googlegroups.com
Hi Greg and Rupinder,

Thank you for giving us more background information. Unfortunately, ANR's with WebView are notoriously difficult to diagnose and fix and we don't have an update yet. I will relay all your comments and the urgency of the issue to my team and we will get back to you as soon as we have actionable information.

ca...@degoo.com

unread,
Apr 22, 2021, 9:58:01 AM4/22/21
to Google Mobile Ads SDK Developers
We're seeing thousands of ANRs per day due to this bug (https://play.google.com/store/apps/details?id=com.instabridge.android). Anything we can do to help? What's preventing you from rolling back the faulty release?

Mobile Ads SDK Forum Advisor Prod

unread,
Apr 22, 2021, 11:54:45 AM4/22/21
to google-adm...@googlegroups.com
Hi Carl,

You can report to the bug Greg made in the Chromium project here - https://bugs.chromium.org/p/chromium/issues/detail?id=1197928#c6 following the guidelines set out here - https://www.chromium.org/for-testers/bug-reporting-guidelines. If you can reliably replicate this issue in our sample apps we may be able to help.

I will raise your experience with this ANR with my team. We will report back on this thread when we have actionable information.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages