ANR on Android in Unity

1,184 views
Skip to first unread message

Bùi Văn Trung

unread,
Aug 30, 2018, 3:10:15 AM8/30/18
to Google Mobile Ads SDK Developers
Hello, I'm developer with Unity 2018.1.6f1 and I used GMA unity v3.15.0.
Sometime I got ANR after watch rewarded video.
Could you help me resolve it please!

Thanks you!

Log: 
"main" tid=1 Native
"main" prio=5 tid=1 Native
  | group="main" sCount=1 dsCount=0 obj=0x745f7598 self=0xaff84400
  | sysTid=1297 nice=-4 cgrp=default sched=0/0 handle=0xb2dff534
  | state=S schedstat=( 0 0 0 ) utm=237 stm=98 core=2 HZ=100
  | stack=0xbe29a000-0xbe29c000 stackSize=8MB
  | held mutexes=
 
  #00  pc 00000000000177ac  /system/lib/libc.so (syscall+28)
 
  #01  pc 00000000000471dd  /system/lib/libc.so (_ZL24__pthread_cond_timedwaitP23pthread_cond_internal_tP15pthread_mutex_tbPK8timespec+102)
 
  #02  pc 0000000000271be8  /data/app/com.pianotiles.battle.mode.free-1/lib/arm/libmono.so (???)
 
  #03  pc 0000000000271924  /data/app/com.pianotiles.battle.mode.free-1/lib/arm/libmono.so (???)
 
  #04  pc 0000000000288b2c  /data/app/com.pianotiles.battle.mode.free-1/lib/arm/libmono.so (???)
 
  #05  pc 00000000002892bc  /data/app/com.pianotiles.battle.mode.free-1/lib/arm/libmono.so (???)
 
  #06  pc 000000000023e180  /data/app/com.pianotiles.battle.mode.free-1/lib/arm/libmono.so (???)
 
  #07  pc 000000000023e4fc  /data/app/com.pianotiles.battle.mode.free-1/lib/arm/libmono.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:813)
 
  at com.google.unity.ads.UnityRewardBasedVideoAdListener.onAdRewarded (UnityRewardBasedVideoAdListener.java)
 
  at com.google.unity.ads.RewardBasedVideo$1$1.onRewarded (RewardBasedVideo.java:95)
 
  at com.google.android.gms.internal.ads.zzahj.zza (unavailable)
 
  at com.google.android.gms.internal.ads.zzahf.dispatchTransaction (unavailable)
 
  at com.google.android.gms.internal.ads.zzek.onTransact (unavailable)
 
  at android.os.Binder.transact (Binder.java:499)
 
  at com.google.android.gms.ads.internal.webview.ac.run (unavailable:8)
 
  at android.os.Handler.handleCallback (Handler.java:751)
 
  at android.os.Handler.dispatchMessage (Handler.java:95)
 
  at android.os.Looper.loop (Looper.java:154)
 
  at android.app.ActivityThread.main (ActivityThread.java:6316)
 
  at java.lang.reflect.Method.invoke! (Native method)
 
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:872)
 
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:762)

mobileadssdk-a...@google.com

unread,
Aug 30, 2018, 7:11:55 AM8/30/18
to Bùi Văn Trung, Google Mobile Ads SDK Developers
Hi,

Thank you for providing the crash logs and other helpful details.

I tested with our HelloWorld sample app (with 3.15.0 imported) and I was able to load a test Rewarded Ad successfully and I didn't encounter any crashes when OnAdRewarded was called.

That said, you seem to imply that you are able to reproduce the crash intermittently on your end. If so, could you provide to us privately (using Reply privately to author option) the following information so we can investigate further?
  • Could you reproduce the crashes if you test with our sample app?
  • Could you provide to us a copy of your project (or at least a test project) where crash is reproducible so we can test on our end?
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/62fd6159-726e-489b-8d85-f4a056e738d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages