Still got Crash on admob

268 views
Skip to first unread message

Mohamed Ouriachi

unread,
Jun 16, 2019, 5:05:08 AM6/16/19
to google-adm...@googlegroups.com
hi! 

i'am using admob in my games to display  interstitials, banners and rewarded videos.

Now 95% of my crash are from admob 

heres the details : 





android {
compileSdkVersion 28
defaultConfig {
applicationId "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
minSdkVersion 19
targetSdkVersion 28
versionCode xxx
versionName "xx"

} 
ependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
//noinspection GradleCompatible

implementation'com.google.android.gms:play-services-ads:17.2.1'
implementation 'com.google.android.ads.consent:consent-library:1.0.7'


}
repositories {
jcenter()
}
apply plugin: 'com.google.gms.google-services'



th'ats for my config and now the crashes :




java.lang.RuntimeException:
at android.app.ActivityThread.performDestroyActivity (ActivityThread.java:4634)
at android.app.ActivityThread.handleDestroyActivity (ActivityThread.java:4652)
at android.app.ActivityThread.-wrap5 (Unknown Source)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1784)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:7000)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:441)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1408)



Caused by: java.lang.NullPointerException:
at android.view.TextureView.releaseSurfaceTexture (TextureView.java:257)
at android.view.TextureView.onDetachedFromWindowInternal (TextureView.java:222)
at android.view.View.dispatchDetachedFromWindow (View.java:18785)
at android.view.ViewGroup.dispatchDetachedFromWindow (ViewGroup.java:3916)
at android.view.ViewGroup.dispatchDetachedFromWindow (ViewGroup.java:3916)
at android.view.ViewGroup.dispatchDetachedFromWindow (ViewGroup.java:3916)
at android.view.ViewGroup.removeViewInternal (ViewGroup.java:5471)
at android.view.ViewGroup.removeViewInternal (ViewGroup.java:5442)
at android.view.ViewGroup.removeView (ViewGroup.java:5373)
at com.google.android.gms.ads.internal.overlay.d.i (com.google.android.gms.policy_ads_fdr_dynamite@2029...@20290003.249178941.249178941:1)
at com.google.android.gms.ads.internal.overlay.client.c.a (com.google.android.gms.policy_ads_fdr_dynamite@2029...@20290003.249178941.249178941:13)
at pe.onTransact (com.google.android.gms.policy_ads_fdr_dynamite@2029...@20290003.249178941.249178941:3)
at android.os.Binder.transact (Binder.java:635)
at com.google.android.gms.internal.ads.zzfm.zza (Unknown Source:20)
at com.google.android.gms.internal.ads.zzaqi.onDestroy (Unknown Source:30)
at com.google.android.gms.ads.AdActivity.onDestroy (Unknown Source:64)
at android.app.Activity.performDestroy (Activity.java:7553)
at android.app.Instrumentation.callActivityOnDestroy (Instrumentation.java:1256)
at android.app.ActivityThread.performDestroyActivity (ActivityThread.java:4621)




And another maybe from admob (tell me if not) :

java.lang.OutOfMemoryError:
at java.lang.Thread.nativeCreate (Native Method)
at java.lang.Thread.start (Thread.java:733)
at java.util.concurrent.ThreadPoolExecutor.addWorker (ThreadPoolExecutor.java:975)
at java.util.concurrent.ThreadPoolExecutor.execute (ThreadPoolExecutor.java:1393)
at com.google.android.gms.ads.internal.util.future.ac.execute (Unknown Source:2)
at com.google.android.gms.ads.nonagon.ad.activeview.b.a (com.google.android.gms.policy_ads_fdr_dynamite@2029...@20290000.249178941.249178941:5)
at com.google.android.gms.ads.internal.webview.j.a (com.google.android.gms.policy_ads_fdr_dynamite@2029...@20290000.249178941.249178941:30)
at com.google.android.gms.ads.internal.webview.ad.a (Unknown Source:4)
at com.google.android.gms.ads.internal.webview.ae.run (Unknown Source:2)
at android.os.Handler.handleCallback (Handler.java:873)
at android.os.Handler.dispatchMessage (Handler.java:99)
at aam.a (Unknown Source)
at com.google.android.gms.ads.internal.util.e.a (com.google.android.gms.policy_ads_fdr_dynamite@2029...@20290000.249178941.249178941:1)
at aam.dispatchMessage (Unknown Source)
at android.os.Looper.loop (Looper.java:214)
at android.app.ActivityThread.main (ActivityThread.java:7073)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:965)



java.util.concurrent.TimeoutException:
at com.google.android.gms.ads.internal.webview.j.k (com.google.android.gms.policy_ads_fdr_dynamite@20290002@20290002.249178941.249178941:3)
at com.google.android.gms.ads.internal.webview.v.destroy (com.google.android.gms.policy_ads_fdr_dynamite@20290002@20290002.249178941.249178941:4)
at com.google.android.gms.ads.internal.webview.t.destroy (com.google.android.gms.policy_ads_fdr_dynamite@20290002@20290002.249178941.249178941:10)
at com.google.android.gms.ads.nonagon.ad.rewardedvideo.c.finalize (com.google.android.gms.policy_ads_fdr_dynamite@20290002@20290002.249178941.249178941:2)
at java.lang.Daemons$FinalizerDaemon.doFinalize (Daemons.java:206)
at java.lang.Daemons$FinalizerDaemon.run (Daemons.java:189)
at java.lang.Thread.run (Thread.java:818)


thanks for you reply tell me if you need more details.



























Message has been deleted

Mobile Ads SDK Forum Advisor Prod

unread,
Jun 16, 2019, 11:44:36 PM6/16/19
to fier...@gmail.com, google-adm...@googlegroups.com
Hi there,

Thank you for reaching out to us.

For us to investigate the issue further, could you please provide the following details? Please use "Reply Privately to Author" option to share the details privately.
  • Ad Unit IDs
  • SDK Version
  • Is the issue reproducible locally? If so, please provide us a project (or at least a test project) so we could check it on our end as well.
Regards,
Teejay Pimentel
Mobile Ads SDK Team
 

ref:_00D1U1174p._5001UBnatk:ref

Joe Hopkins

unread,
Jun 17, 2019, 1:17:42 PM6/17/19
to Google Mobile Ads SDK Developers
We are having an issue with ads closing out during the middle of playback. See error below:


18 00:08:01.151 23870 25099 I MediaCodec: Codec shutdown complete

06-18 00:08:01.152 23870 23878 E System  : android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.

06-18 00:08:01.152 23870 23878 E System  : at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:7901)

06-18 00:08:01.152 23870 23878 E System  : at android.view.ViewRootImpl.invalidateChildInParent(ViewRootImpl.java:1360)

06-18 00:08:01.152 23870 23878 E System  : at android.view.ViewGroup.invalidateChild(ViewGroup.java:5448)

06-18 00:08:01.152 23870 23878 E System  : at android.view.View.invalidateInternal(View.java:14829)

06-18 00:08:01.152 23870 23878 E System  : at android.view.View.invalidate(View.java:14793)

06-18 00:08:01.152 23870 23878 E System  : at android.view.View.onFocusChanged(View.java:6849)

06-18 00:08:01.152 23870 23878 E System  : at android.webkit.WebView.onFocusChanged(WebView.java:2575)

06-18 00:08:01.152 23870 23878 E System  : at android.view.View.clearFocusInternal(View.java:6734)

06-18 00:08:01.152 23870 23878 E System  : at android.view.View.unFocus(View.java:6767)

06-18 00:08:01.152 23870 23878 E System  : at android.view.ViewGroup.unFocus(ViewGroup.java:996)

06-18 00:08:01.152 23870 23878 E System  : at android.view.ViewGroup.unFocus(ViewGroup.java:998)

06-18 00:08:01.152 23870 23878 E System  : at android.view.ViewGroup.removeViewInternal(ViewGroup.java:4945)

06-18 00:08:01.152 23870 23878 E System  : at android.view.ViewGroup.removeViewInternal(ViewGroup.java:4932)

06-18 00:08:01.152 23870 23878 E System  : at android.view.ViewGroup.removeView(ViewGroup.java:4863)

06-18 00:08:01.152 23870 23878 E System  : at com.google.android.gms.ads.internal.overlay.d.i(:com.google.android.gms.policy_ads_fdr_dynamite@20290000@20290000.249178941.249178941:1)

06-18 00:08:01.152 23870 23878 E System  : at com.google.android.gms.ads.internal.webview.v.destroy(:com.google.android.gms.policy_ads_fdr_dynamite@20290000@20290000.249178941.249178941:2)

06-18 00:08:01.152 23870 23878 E System  : at com.google.android.gms.ads.internal.webview.t.destroy(:com.google.android.gms.policy_ads_fdr_dynamite@20290000@20290000.249178941.249178941:10)

06-18 00:08:01.152 23870 23878 E System  : at com.google.android.gms.ads.nonagon.ad.rewardedvideo.c.finalize(:com.google.android.gms.policy_ads_fdr_dynamite@20290000@20290000.249178941.249178941:2)

06-18 00:08:01.152 23870 23878 E System  : at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:222)

06-18 00:08:01.152 23870 23878 E System  : at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:209)

06-18 00:08:01.152 23870 23878 E System  : at java.lang.Thread.run(Thread.java:762)

Mobile Ads SDK Forum Advisor Prod

unread,
Jun 18, 2019, 1:40:20 AM6/18/19
to hopkins...@gmail.com, google-adm...@googlegroups.com
Hi Joe,

Thank you for reaching out to us. You may check out our response here.

Regards,
Ziv Yves Sanchez

Mobile Ads SDK Forum Advisor Prod

unread,
Jun 18, 2019, 10:19:57 PM6/18/19
to fier...@gmail.com, google-adm...@googlegroups.com
Hi Mohamed,

Thank you for providing the details privately.

I'll raise this to our Engineering team and update this thread for any feedback.

Regards,
Teejay Pimentel

Mohamed Ouriachi

unread,
Jun 19, 2019, 3:30:24 AM6/19/19
to Google Mobile Ads SDK Developers
thx!
Reply all
Reply to author
Forward
0 new messages