ANR errors on Android after update to API Level 27

1,799 views
Skip to first unread message

Anton Koshechkin

unread,
Jul 17, 2018, 4:35:21 AM7/17/18
to Google Mobile Ads SDK Developers

Input dispatching timed out (Waiting to send key event because the focused window has not finished processing all of the input events that were previously delivered to it. Outbound queue length: 0. Wait queue length: 2.)

com.google.android.gms.ads.AdActivity

"main" tid=1 Native 
"main" prio=5 tid=1 Native | group="main" sCount=1 dsCount=0 obj=0x7558c730 self=0xec905400 | sysTid=28367 nice=-4 cgrp=default sched=0/0 handle=0xeff45534 | state=S schedstat=( 0 0 0 ) utm=193 stm=68 core=0 HZ=100 | stack=0xff6db000-0xff6dd000 stackSize=8MB | held mutexes=
#00 pc 000000000004993c /system/lib/libc.so (nanosleep+12)
#01 pc 0000000000a011fc /data/app/com.qaibo.dws-2/lib/arm/libunity.so (???)
#02 pc 00000000003e8dec /data/app/com.qaibo.dws-2/lib/arm/libunity.so (???)
#03 pc 0000000000128dec /data/app/com.qaibo.dws-2/lib/arm/libmono.so (???)
#04 pc 00000000000228a0 /data/app/com.qaibo.dws-2/lib/arm/libmono.so (???)
#05 pc 00000000002c4045 /data/app/com.qaibo.dws-2/lib/arm/libmono.so (???)
#06 pc 0000000000008795 /system/bin/app_process32 (InvokeUserSignalHandler+156)
#07 pc 000000000014ab23 /system/lib/libart.so (_ZN3art12FaultManager11HandleFaultEiP7siginfoPv+222)
#08 pc 00000000000171c0 /system/lib/libc.so (???)
#09 pc 00000000006c9da8 /data/app/com.qaibo.dws-2/lib/arm/libunity.so (???)
#10 pc 00000000006a4f98 /data/app/com.qaibo.dws-2/lib/arm/libunity.so (???)
#11 pc 0000000000116b3c /data/app/com.qaibo.dws-2/lib/arm/libunity.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.zzafh.zza (unavailable)
at com.google.android.gms.internal.zzafd.onTransact (unavailable)
at android.os.Binder.transact (Binder.java:507)
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:6682)
at java.lang.reflect.Method.invoke! (Native method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1520)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1410)




  • GoogleMobileAds - v3.14.0
  • play-games-plugin-for-unity-master-0.9.50
  • Unity 2018.1.5f1
  • Android API Level 27

Need help

mobileadssdk-a...@google.com

unread,
Jul 17, 2018, 3:05:47 PM7/17/18
to Anton Koshechkin, Google Mobile Ads SDK Developers
Hi there,

Thanks for reaching out to us. Are you able to reproduce this with our sample apps? It looks like it might be an implementation issue. Can you try with our sample script and then let us know again? Also, is this happening only with S6 Edge? And can you send us steps to reproduce along with screen recordings and code snippets for us to look into as well?

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Anton Koshechkin

unread,
Jul 18, 2018, 2:12:41 PM7/18/18
to Google Mobile Ads SDK Developers
Hi,

Thank you for the answer. Unfortunately, I can't to reproduce this even with our devices, but I see their in Google Play 'Android Vitals' a lot. It randomly appeared on some phones. This started happening after I updated:

- Android API Level from 25 to 27
- GoogleMobileAds plugin from v3.13.1 to v3.14.0

If this is possible, could you give any recommendations to stop this or at least reduce the quantity?

Some ANR logs is as follows:

----------------------------

Input dispatching timed out (Waiting because the focused window has not finished processing the input events that were previously delivered to it.)
com.unity3d.player.UnityPlayerActivity

ZTE V8514 (P821E10), Android 4.4

"main" prio=5 tid=1 NATIVE
  | group="main" sCount=1 dsCount=0 obj=0x4161ae58 self=0x4153a9e0
  | sysTid=20083 nice=-6 sched=0/0 cgrp=apps handle=1074508116
  | state=S schedstat=( 5888577465 3507433215 18667 ) utm=285 stm=303 core=0
  #00  pc 0000000000021a50  /system/lib/libc.so (__futex_syscall3+8)
  #01  pc 000000000000e7bc  /system/lib/libc.so
  #02  pc 00000000000fa8c4  /data/app-lib/com.qaibo.dws-1/libunity.so
  #03  pc 00000000003e8c00  /data/app-lib/com.qaibo.dws-1/libunity.so
  #04  pc 0000000000128dec  /data/app-lib/com.qaibo.dws-1/libmono.so
  #05  pc 00000000000228a0  /data/app-lib/com.qaibo.dws-1/libmono.so
  #06  pc 00000000002c4045  /data/app-lib/com.qaibo.dws-1/libmono.so
  #07  pc 0000000000000713  [sigpage]
  at com.unity3d.player.ReflectionHelper.nativeProxyInvoke (Native Method)
  at $Proxy9.onAdFailedToLoad (Native Method)
  at com.google.unity.ads.Interstitial$1$1.onAdFailedToLoad (Interstitial.java:75)
  at android.os.Binder.transact (Binder.java:361)
  at android.os.Handler.handleCallback (Handler.java:733)
  at android.os.Handler.dispatchMessage (Handler.java:95)
  at android.os.Looper.loop (Looper.java:136)
  at android.app.ActivityThread.main (ActivityThread.java:5050)
  at java.lang.reflect.Method.invokeNative (Native Method)
  at java.lang.reflect.Method.invoke (Method.java:515)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:780)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:596)
  at dalvik.system.NativeStart.main (Native Method)

----------------------------

Broadcast of Intent { act=android.intent.action.SCREEN_OFF flg=0x50000010 }

Xiaomi Redmi 4X (santoni), Android 7.1

"main" prio=5 tid=1 Native
  | group="main" sCount=1 dsCount=0 obj=0x74e9f268 self=0xec104400
  | sysTid=3821 nice=-4 cgrp=default sched=0/0 handle=0xeed85538
  | state=S schedstat=( 10284682020 3114177328 15669 ) utm=793 stm=235 core=5 HZ=100
  | stack=0xff6d7000-0xff6d9000 stackSize=8MB
  | held mutexes=
  #00  pc 00000000000174f4  /system/lib/libc.so (syscall+28)
  #01  pc 0000000000047475  /system/lib/libc.so (_ZL33__pthread_mutex_lock_with_timeoutP24pthread_mutex_internal_tbPK8timespec+176)
  #02  pc 00000000000fa8c4  /data/app/com.qaibo.dws-1/lib/arm/libunity.so (???)
  #03  pc 00000000003e8c00  /data/app/com.qaibo.dws-1/lib/arm/libunity.so (???)
  #04  pc 0000000000128dec  /data/app/com.qaibo.dws-1/lib/arm/libmono.so (???)
  #05  pc 00000000000228a0  /data/app/com.qaibo.dws-1/lib/arm/libmono.so (???)
  #06  pc 00000000002c4045  /data/app/com.qaibo.dws-1/lib/arm/libmono.so (???)
  #07  pc 0000000000001f71  /system/bin/app_process32 (InvokeUserSignalHandler+156)
  #08  pc 000000000014bad3  /system/lib/libart.so (_ZN3art12FaultManager11HandleFaultEiP7siginfoPv+222)
  #09  pc 0000000000017194  /system/lib/libc.so (???)
  #10  pc 00000000000fac48  /data/app/com.qaibo.dws-1/lib/arm/libunity.so (???)
  #11  pc 00000000000fa9e8  /data/app/com.qaibo.dws-1/lib/arm/libunity.so (???)
  #12  pc 00000000000fa1c4  /data/app/com.qaibo.dws-1/lib/arm/libunity.so (???)
  #13  pc 00000000003d6190  /data/app/com.qaibo.dws-1/lib/arm/libunity.so (???)
  #14  pc 0000000000ac6770  /data/app/com.qaibo.dws-1/lib/arm/libunity.so (???)
  #15  pc 0000000000759780  /data/app/com.qaibo.dws-1/lib/arm/libunity.so (???)
  #16  pc 00000000001003c8  /data/app/com.qaibo.dws-1/lib/arm/libunity.so (???)
  #17  pc 00000000001002b0  /data/app/com.qaibo.dws-1/lib/arm/libunity.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.onAdLoaded (UnityRewardBasedVideoAdListener.java)
  at com.google.unity.ads.RewardBasedVideo$1$1.onRewardedVideoAdLoaded (RewardBasedVideo.java:70)
  at com.google.android.gms.internal.ads.zzahj.onRewardedVideoAdLoaded (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.nonagon.ad.event.ab.a (unavailable:2)
  at com.google.android.gms.ads.nonagon.ad.event.ba.run (unavailable:2)
  at com.google.android.gms.ads.internal.util.future.i.run (unavailable:2)
  at com.google.android.gms.ads.internal.util.future.z.run (unavailable:2)
  at com.google.android.gms.ads.internal.util.future.q.run (unavailable:2)
  at com.google.android.gms.ads.internal.util.future.z.run (unavailable:2)
  at com.google.android.gms.ads.internal.util.future.q.run (unavailable:2)
  at com.google.android.gms.ads.internal.util.future.z.run (unavailable:2)
  at com.google.android.gms.ads.internal.util.future.q.run (unavailable:2)
  at com.google.android.gms.ads.internal.util.future.z.run (unavailable:2)
  at com.google.android.gms.ads.internal.util.future.q.run (unavailable:2)
  at com.google.android.gms.ads.internal.util.future.z.run (unavailable:2)
  at com.google.android.gms.ads.internal.util.future.q.run (unavailable:2)
  at com.google.android.gms.ads.internal.util.future.z.run (unavailable:2)
  at com.google.android.gms.ads.internal.util.future.j.run (unavailable:2)
  at com.google.android.gms.ads.internal.util.future.z.run (unavailable:2)
  at com.google.android.gms.ads.nonagon.ad.webview.k.a (unavailable:3)
  at com.google.android.gms.ads.internal.webview.ac.run (unavailable:8)
  at android.os.Handler.handleCallback (Handler.java:754)
  at android.os.Handler.dispatchMessage (Handler.java:95)
  at android.os.Looper.loop (Looper.java:163)
  at android.app.ActivityThread.main (ActivityThread.java:6221)
  at java.lang.reflect.Method.invoke! (Native method)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:904)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:794)
Samsung Galaxy S3 (m0), Android 4.3
"main" tid=1 Native 
"main" prio=5 tid=1 NATIVE
  | group="main" sCount=1 dsCount=0 obj=0x41cc65a8 self=0x41c0e6a8
  | sysTid=11625 nice=-16 sched=0/0 cgrp=apps/bg_non_interactive handle=1075335164
  | state=S schedstat=( 14285686793 6540252544 39440 ) utm=933 stm=495 core=1
  #00  pc 000000000001c82c  /system/lib/libc.so (__futex_syscall3+8)
  #01  pc 000000000000df8c  /system/lib/libc.so
  #02  pc 00000000000fa8c4  /data/app-lib/com.qaibo.dws-1/libunity.so
  #03  pc 00000000003e8c00  /data/app-lib/com.qaibo.dws-1/libunity.so
  #04  pc 0000000000128dec  /data/app-lib/com.qaibo.dws-1/libmono.so
  #05  pc 00000000000228a0  /data/app-lib/com.qaibo.dws-1/libmono.so
  #06  pc 00000000002c4045  /data/app-lib/com.qaibo.dws-1/libmono.so
  #07  pc 0000000000000513  [vectors]
  at com.unity3d.player.ReflectionHelper.nativeProxyInvoke (Native Method)
  at $Proxy9.onAdClosed (Native Method)
  at com.google.unity.ads.Interstitial$1$1.onAdClosed (Interstitial.java:85)
  at android.os.Binder.transact (Binder.java:347)
  at android.os.Binder.transact (Binder.java:347)
  at android.app.Activity.performPause (Activity.java:5474)
  at android.app.Instrumentation.callActivityOnPause (Instrumentation.java:1250)
  at android.app.ActivityThread.performPauseActivity (ActivityThread.java:3182)
  at android.app.ActivityThread.performPauseActivity (ActivityThread.java:3151)
  at android.app.ActivityThread.handlePauseActivity (ActivityThread.java:3129)
  at android.app.ActivityThread.access$900 (ActivityThread.java:159)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1333)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loop (Looper.java:176)
  at android.app.ActivityThread.main (ActivityThread.java:5419)
  at java.lang.reflect.Method.invokeNative (Native Method)
  at java.lang.reflect.Method.invoke (Method.java:525)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1046)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:862)
  at dalvik.system.NativeStart.main (Native Method)

----------------------------

Samsung Galaxy Ace (heatlte), Android 4.4

"main" tid=1 Native 
"main" prio=5 tid=1 NATIVE
  | group="main" sCount=1 dsCount=0 obj=0x41698d08 self=0x415d2bc8
  | sysTid=26420 nice=-6 sched=0/0 cgrp=apps handle=1074254164
  | state=S schedstat=( 0 0 0 ) utm=45 stm=15 core=0
  #00  pc 0000000000021a50  /system/lib/libc.so (__futex_syscall3+8)
  #01  pc 000000000000e7bc  /system/lib/libc.so
  #02  pc 00000000000fa8c4  /data/app-lib/com.qaibo.dws-1/libunity.so
  #03  pc 00000000000fa1c4  /data/app-lib/com.qaibo.dws-1/libunity.so
  #04  pc 00000000003d6190  /data/app-lib/com.qaibo.dws-1/libunity.so
  #05  pc 0000000000ac6770  /data/app-lib/com.qaibo.dws-1/libunity.so
  #06  pc 0000000000759780  /data/app-lib/com.qaibo.dws-1/libunity.so
  #07  pc 00000000001003c8  /data/app-lib/com.qaibo.dws-1/libunity.so
  #08  pc 00000000001002b0  /data/app-lib/com.qaibo.dws-1/libunity.so
  #09  pc 000000000000a43c  <unknown>
  at com.unity3d.player.ReflectionHelper.nativeProxyInvoke (Native Method)
  at $Proxy9.onAdLoaded (Native Method)
  at com.google.unity.ads.Interstitial$1$1.onAdLoaded (Interstitial.java:70)
  at android.os.Binder.transact (Binder.java:361)
  at com.android.webview.chromium.WebViewContentsClientAdapter.onPageFinished (WebViewContentsClientAdapter.java:449)
  at com.android.org.chromium.android_webview.AwContentsClient$AwWebContentsObserver$1.run (AwContentsClient.java:73)
  at android.os.Handler.handleCallback (Handler.java:733)
  at android.os.Handler.dispatchMessage (Handler.java:95)
  at android.os.Looper.loop (Looper.java:146)
  at android.app.ActivityThread.main (ActivityThread.java:5602)
  at java.lang.reflect.Method.invokeNative (Native Method)
  at java.lang.reflect.Method.invoke (Method.java:515)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1283)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1099)
  at dalvik.system.NativeStart.main (Native Method)

----------------------------


Broadcast of Intent { act=android.intent.action.SCREEN_ON flg=0x50000010 }

Samsung Galaxy S3 (m0), Android 4.3

"main" tid=1 Native 
"main" prio=5 tid=1 NATIVE
  | group="main" sCount=1 dsCount=0 obj=0x41cc65a8 self=0x41c0e6a8
  | sysTid=11625 nice=-16 sched=0/0 cgrp=apps/bg_non_interactive handle=1075335164
  | state=S schedstat=( 14285686793 6540252544 39440 ) utm=933 stm=495 core=1
  #00  pc 000000000001c82c  /system/lib/libc.so (__futex_syscall3+8)
  #01  pc 000000000000df8c  /system/lib/libc.so
  #02  pc 00000000000fa8c4  /data/app-lib/com.qaibo.dws-1/libunity.so
  #03  pc 00000000003e8c00  /data/app-lib/com.qaibo.dws-1/libunity.so
  #04  pc 0000000000128dec  /data/app-lib/com.qaibo.dws-1/libmono.so
  #05  pc 00000000000228a0  /data/app-lib/com.qaibo.dws-1/libmono.so
  #06  pc 00000000002c4045  /data/app-lib/com.qaibo.dws-1/libmono.so
  #07  pc 0000000000000513  [vectors]
  at com.unity3d.player.ReflectionHelper.nativeProxyInvoke (Native Method)
  at $Proxy9.onAdClosed (Native Method)
  at com.google.unity.ads.Interstitial$1$1.onAdClosed (Interstitial.java:85)
  at android.os.Binder.transact (Binder.java:347)
  at android.os.Binder.transact (Binder.java:347)
  at android.app.Activity.performPause (Activity.java:5474)
  at android.app.Instrumentation.callActivityOnPause (Instrumentation.java:1250)
  at android.app.ActivityThread.performPauseActivity (ActivityThread.java:3182)
  at android.app.ActivityThread.performPauseActivity (ActivityThread.java:3151)
  at android.app.ActivityThread.handlePauseActivity (ActivityThread.java:3129)
  at android.app.ActivityThread.access$900 (ActivityThread.java:159)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1333)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loop (Looper.java:176)
  at android.app.ActivityThread.main (ActivityThread.java:5419)
  at java.lang.reflect.Method.invokeNative (Native Method)
  at java.lang.reflect.Method.invoke (Method.java:525)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1046)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:862)
  at dalvik.system.NativeStart.main (Native Method)










вторник, 17 июля 2018 г., 22:05:47 UTC+3 пользователь mobileadssdk-a...@google.com написал:

mobileadssdk-a...@google.com

unread,
Jul 18, 2018, 3:51:18 PM7/18/18
to Anton Koshechkin, Google Mobile Ads SDK Developers
Hi Anton,

Thanks for sharing additional details. I'll share this with the rest of the team for further investigation and will update you via this thread if we have any new information.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Anton Koshechkin

unread,
Jul 22, 2018, 4:58:45 AM7/22/18
to Google Mobile Ads SDK Developers
Hi Deepika,

Thank you for this. 

By the way, I re-installed the GoogleMobileAds for Unity (from v3.14.0 to previous v3.13.1)  and I see it has led to downward ANR-s.
Seems the reason in latest version of the plugin.


среда, 18 июля 2018 г., 22:51:18 UTC+3 пользователь mobileadssdk-a...@google.com написал:
Reply all
Reply to author
Forward
0 new messages