[Android] Occasional exception with App Open Ads

63 views
Skip to first unread message

Michael Diener

unread,
Jun 1, 2023, 3:31:44 AM6/1/23
to Google Mobile Ads SDK Developers
Hi,

I use App Open Ads via Java and my code is not much different from the example code for that ad type.

Occasionally I get the following exception:
06-01 07:50:33.758 10443 23584 23584 D DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdOverlayCreatorImpl
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: Application attempted to call on a destroyed WebView
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: java.lang.Throwable
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at org.chromium.android_webview.AwContents.m(chromium-TrichromeWebViewGoogle6432.aab-beta-573505342:10)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at com.android.webview.chromium.WebViewChromium.setBackgroundColor(chromium-TrichromeWebViewGoogle6432.aab-beta-573505342:32)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at android.webkit.WebView.setBackgroundColor(WebView.java:3023)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at com.google.android.gms.ads.internal.webview.y.ab(:com.google.android.gms.policy_ads_fdr_dynamite@231710101@231710100057.526733554.526733554:0)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at com.google.android.gms.ads.internal.overlay.k.w(:com.google.android.gms.policy_ads_fdr_dynamite@231710101@231710100057.526733554.526733554:35)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at com.google.android.gms.ads.internal.overlay.k.d(:com.google.android.gms.policy_ads_fdr_dynamite@231710101@231710100057.526733554.526733554:23)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at com.google.android.gms.ads.internal.overlay.client.a.bN(:com.google.android.gms.policy_ads_fdr_dynamite@231710101@231710100057.526733554.526733554:27)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at agb.onTransact(:com.google.android.gms.policy_ads_fdr_dynamite@231710101@231710100057.526733554.526733554:4)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at android.os.Binder.transact(Binder.java:1164)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at com.google.android.gms.internal.ads.zzatj.zzbh(com.google.android.gms:play-services-ads-base@@22.1.0:8)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at com.google.android.gms.internal.ads.zzbro.zzk(com.google.android.gms:play-services-ads-lite@@22.1.0:9)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at com.google.android.gms.ads.AdActivity.onCreate(com.google.android.gms:play-services-ads-lite@@22.1.0:18)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at android.app.Activity.performCreate(Activity.java:8341)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at android.app.Activity.performCreate(Activity.java:8320)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1417)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3622)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3778)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:138)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2303)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at android.os.Handler.dispatchMessage(Handler.java:106)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at android.os.Looper.loopOnce(Looper.java:201)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at android.os.Looper.loop(Looper.java:288)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at android.app.ActivityThread.main(ActivityThread.java:7884)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at java.lang.reflect.Method.invoke(Native Method)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
06-01 07:50:33.763 10443 23584 23584 W cr_AwContents: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)

The exception is one part of the problem, the other issue is that in this case then the method "onAdFailedToShowFullScreenContent(AdError adError)" of the FullScreenContentCallback is not invoked. The main effect is then that my loading screen still shows (it would be closed in FullScreenContentCallback.onAdFailedToShowFullScreenContent or FullScreenContentCallback.onAdDismissedFullScreenContent). 

As this exception is not not reliably reproducible, no code attached. But again, basically it's the same as the sample code for app open ads.

Best,
Michael

Mobile Ads SDK Forum Advisor

unread,
Jun 5, 2023, 3:01:45 AM6/5/23
to google-adm...@googlegroups.com
Hello Michael,

Thank you for reaching out to us.

For us to properly troubleshoot your issue, kindly provide us the following information below privately:
  • Sample App Project where this issue occurs
  • Steps to replicate
  • App ID
  • SDK Version
  • Complete Stack Trace Error
  • Device name and versions affected
You can provide the following details via reply privately to author option or directly provide it to the link below.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002lvWy0QAE&entry.80707362=00181860

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

This message is in relation to case "ref:_00D1U1174p._5004Q2lvWy0:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team


Reply all
Reply to author
Forward
0 new messages