ANRs in MobileAds.Initialize()

391 views
Skip to first unread message

Lakshman Chilukuri

unread,
Aug 21, 2018, 10:04:01 PM8/21/18
to Google Mobile Ads SDK Developers
Getting ANRs for some users at the MobileAds.Initialize(context,appid) call. It is tying up my UI thread I think.
What happens if I remove this call ? Is it possible to omit this call? I remember that I had not used this call for a long time and everything worked fine
This is the stack trace

"main" prio=5 tid=1 Native | group="main" sCount=1 dsCount=0 obj=0x74281688 self=0xb3b84400 | sysTid=1493 nice=-4 cgrp=default sched=0/0 handle=0xb68f1534 | state=D schedstat=( 2812207521 1147838378 6590 ) utm=119 stm=160 core=1 HZ=100 | stack=0xbe4aa000-0xbe4ac000 stackSize=8MB | held mutexes=
#00 pc 000000000105db1c /data/app/com.android.chrome-2/base.apk (???)
at org.chromium.android_webview.AwContents.nativeInit (Native method)
at org.chromium.android_webview.AwContents.<init> (SourceFile:81)
at uY.run (SourceFile:15)
at ahv.a (SourceFile:13)
at ahw.run (SourceFile:2)
at org.chromium.base.ThreadUtils.b (SourceFile:31)
at ahv.a (SourceFile:7)
at com.android.webview.chromium.WebViewChromiumFactoryProvider.b (SourceFile:6)
at com.android.webview.chromium.WebViewChromium.init (SourceFile:111)
at android.webkit.WebView.<init> (WebView.java:636)
at android.webkit.WebView.<init> (WebView.java:572)
at android.webkit.WebView.<init> (WebView.java:555)
at android.webkit.WebView.<init> (WebView.java:542)
at android.webkit.WebView.<init> (WebView.java:532)
at com.google.android.gms.ads.internal.webview.q.call (unavailable:5)
at com.google.android.gms.ads.internal.js.z.run (unavailable:5)
at android.os.Binder.transact (Binder.java:499)
at com.google.android.gms.internal.ads.by.b (unavailable)
at com.google.android.gms.internal.ads.eh.a (unavailable)
at com.google.android.gms.internal.ads.ex.a (unavailable)
- locked <0x0389ab60> (a java.lang.Object)
at com.google.android.gms.ads.h.a (unavailable)
at com.google.android.gms.ads.h.a (unavailable)

Alikha Naila

unread,
Aug 21, 2018, 11:21:33 PM8/21/18
to Google Mobile Ads SDK Developers

mobileadssdk-a...@google.com

unread,
Aug 22, 2018, 5:10:15 AM8/22/18
to Alikha Naila, Google Mobile Ads SDK Developers
Hi,

Thank you for reaching out to us regarding this.

Though you should still be able to load ads without the MobileAds.initialize(), it is still recommended to call this method prior to calling your first Ad request to lessen latency in the first Ad request. Ideally, this method should be called at the start but after you've initialized and loaded your other app components.

That said, we will raise the ANR report you've received to the rest of the team and we'll get back to this thread for any official feedback.

On the other hand, is the ANR reproducible on your end? To add to our investigation details, can you provide the following details as well? 
  • Mobile Ads SDK version used
  • Affected devices information (e.g. OS version, Play Services installed, device model)
  • Copy of the crash report or the Crashlytics link (if available)
Regards,
Ivan Bautista
Mobile Ads SDK Team


--

---
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 post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/63a336ca-795b-4711-8ff0-85681587a88d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Lakshman Chilukuri

unread,
Aug 22, 2018, 6:44:48 AM8/22/18
to Google Mobile Ads SDK Developers
Hi
Thanks for your quick reply


On the other hand, is the ANR reproducible on your end? To add to our investigation details, can you provide the following details as well? 

Not reproducible. Only few users.
  • Mobile Ads SDK version used
 com.google.firebase:firebase-ads-lite:15.0.1
  • Affected devices information (e.g. OS version, Play Services installed, device model)
I think the ANRs are spread across all over the API levels and assorted devices. Installed from Google play store only so I guess should be having play services.
  • Copy of the crash report or the Crashlytics link (if available)
I am not having crashlytics. Rely upon dev console reports only. Its not giving any option to download the full report. But I have tried to copy and paste one full report. A text file is attached.

Regards
anr.txt

mobileadssdk-a...@google.com

unread,
Aug 23, 2018, 12:25:00 AM8/23/18
to Lakshman Chilukuri, Google Mobile Ads SDK Developers
Hi Lakshman,

Thank you for getting back to us with more information.

We will relay this to the rest of the team and we'll get back to this thread for any official feedback.

Regards,
Ivan Bautista
Mobile Ads SDK Team


To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

--

---
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 post to this group, send email to google-admob-ads-sdk@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages