Search Unity

[HELP!] High ANR rate on Android vital, what is the problem?

Discussion in 'Editor & General Support' started by oldnewuser, Mar 20, 2019.

  1. oldnewuser

    oldnewuser

    Joined:
    Jan 15, 2018
    Posts:
    25
    Hi there,

    For my Unity game published on Google Play, I keep getting ANRs (however, ANR appears in none of the 3 devices I have), Android vital reports the following:

    Code (CSharp):
    1. "main" prio=5 tid=1 Native
    2.   | group="main" sCount=1 dsCount=0 obj=0x74f432a0 self=0xb8030590
    3.   | sysTid=7428 nice=-6 cgrp=default sched=0/0 handle=0xb6f7db34
    4.   | state=S schedstat=( 0 0 0 ) utm=13000 stm=3583 core=2 HZ=100
    5.   | stack=0xbe53c000-0xbe53e000 stackSize=8MB
    6.   | held mutexes=
    7.   #00  pc 0000000000016a58  /system/lib/libc.so (syscall+28)
    8.   #01  pc 00000000000f6c59  /system/lib/libart.so (_ZN3art17ConditionVariable4WaitEPNS_6ThreadE+96)
    9.   #02  pc 00000000002918bb  /system/lib/libart.so (_ZN3art3JNI16CallObjectMethodEP7_JNIEnvP8_jobjectP10_jmethodIDz+658)
    10.   #03  pc 0000000000002bbb  /system/lib/libnativehelper.so (jniGetReferent+94)
    11.   #04  pc 0000000000078591  /system/lib/libandroid_runtime.so (_ZN7android24NativeInputEventReceiver13consumeEventsEP7_JNIEnvbxPb+180)
    12.   #05  pc 0000000000078739  /system/lib/libandroid_runtime.so (_ZN7android24NativeInputEventReceiver11handleEventEiiPv+48)
    13.   #06  pc 0000000000012e1b  /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+530)
    14.   #07  pc 0000000000012eeb  /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+130)
    15.   #08  pc 0000000000082641  /system/lib/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvP8_jobjecti+22)
    16.   #09  pc 000000000000056d  /data/dalvik-cache/arm/system@framework@boot.oat (Java_android_os_MessageQueue_nativePollOnce__JI+96)
    17.   at android.os.MessageQueue.nativePollOnce (Native method)
    18.   at android.os.MessageQueue.next (MessageQueue.java:323)
    19.   at android.os.Looper.loop (Looper.java:135)
    20.   at android.app.ActivityThread.main (ActivityThread.java:5443)
    21.   at java.lang.reflect.Method.invoke! (Native method)
    22.   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:728)
    23.   at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:618)
    24. "FinalizerWatchdogDaemon" tid=3 Waiting
    25. "FinalizerWatchdogDaemon" daemon prio=5 tid=3 Waiting
    26.   | group="system" sCount=1 dsCount=0 obj=0x12c07100 self=0xb8fb6670
    27.   | sysTid=7437 nice=0 cgrp=default sched=0/0 handle=0xb41fb930
    28.   | state=S schedstat=( 0 0 0 ) utm=0 stm=1 core=2 HZ=100
    29.   | stack=0xb40f9000-0xb40fb000 stackSize=1038KB
    30.   | held mutexes=
    31.   at java.lang.Object.wait! (Native method)
    32. - waiting on <0x0c9c52b1> (a java.lang.Daemons$FinalizerWatchdogDaemon)
    33.   at java.lang.Daemons$FinalizerWatchdogDaemon.waitForObject (Daemons.java:255)
    34. - locked <0x0c9c52b1> (a java.lang.Daemons$FinalizerWatchdogDaemon)
    35.   at java.lang.Daemons$FinalizerWatchdogDaemon.run (Daemons.java:227)
    36.   at java.lang.Thread.run (Thread.java:818)
    37. "ReferenceQueueDaemon" tid=4 Waiting
    38. "ReferenceQueueDaemon" daemon prio=5 tid=4 Waiting
    39.   | group="system" sCount=1 dsCount=0 obj=0x12c07160 self=0xb8fb8de0
    40.   | sysTid=7435 nice=0 cgrp=default sched=0/0 handle=0xb4409930
    41.   | state=S schedstat=( 0 0 0 ) utm=5 stm=4 core=0 HZ=100
    42.   | stack=0xb4307000-0xb4309000 stackSize=1038KB
    43.   | held mutexes=
    44.   at java.lang.Object.wait! (Native method)
    45. - waiting on <0x05a75396> (a java.lang.Class<java.lang.ref.ReferenceQueue>)
    46.   at java.lang.Daemons$ReferenceQueueDaemon.run (Daemons.java:147)
    47. - locked <0x05a75396> (a java.lang.Class<java.lang.ref.ReferenceQueue>)
    48.   at java.lang.Thread.run (Thread.java:818)
    49. "FinalizerDaemon" tid=6 Waiting
    50. "FinalizerDaemon" daemon prio=5 tid=6 Waiting
    51.   | group="system" sCount=1 dsCount=0 obj=0x12c07220 self=0xb8235090
    52.   | sysTid=7436 nice=0 cgrp=default sched=0/0 handle=0xb4302930
    53.   | state=S schedstat=( 0 0 0 ) utm=39 stm=16 core=2 HZ=100
    54.   | stack=0xb4200000-0xb4202000 stackSize=1038KB
    55.   | held mutexes=
    56.   at java.lang.Object.wait! (Native method)
    57. - waiting on <0x0fba7b17> (a java.lang.ref.ReferenceQueue)
    58.   at java.lang.Object.wait (Object.java:423)
    59.   at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:101)
    60. - locked <0x0fba7b17> (a java.lang.ref.ReferenceQueue)
    61.   at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:72)
    62.   at java.lang.Daemons$FinalizerDaemon.run (Daemons.java:185)
    63.   at java.lang.Thread.run (Thread.java:818)
    64. "Binder_1" tid=7 Native
    65. "Binder_1" prio=5 tid=7 Native
    66.   | group="main" sCount=1 dsCount=0 obj=0x12c07280 self=0xb8fb99c0
    67.   | sysTid=7439 nice=0 cgrp=default sched=0/0 handle=0xab018930
    68.   | state=S schedstat=( 0 0 0 ) utm=220 stm=584 core=2 HZ=100
    69.   | stack=0xaaf1c000-0xaaf1e000 stackSize=1014KB
    70.   | held mutexes=
    71.   #00  pc 00000000000433f0  /system/lib/libc.so (__ioctl+8)
    72.   #01  pc 0000000000049661  /system/lib/libc.so (ioctl+14)
    73.   #02  pc 000000000001ea21  /system/lib/libbinder.so (_ZN7android14IPCThreadState14talkWithDriverEb+132)
    74.   #03  pc 000000000001ef37  /system/lib/libbinder.so (_ZN7android14IPCThreadState20getAndExecuteCommandEv+6)
    75.   #04  pc 000000000001efd5  /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb+48)
    76.   #05  pc 0000000000023efb  /system/lib/libbinder.so (???)
    77.   #06  pc 0000000000010085  /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+112)
    78.   #07  pc 000000000005f0fb  /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+70)
    79.   #08  pc 000000000004167f  /system/lib/libc.so (_ZL15__pthread_startPv+30)
    80.   #09  pc 000000000001911b  /system/lib/libc.so (__start_thread+6)
    81. "Binder_2" tid=8 Native
    82. "Binder_2" prio=5 tid=8 Native
    83.   | group="main" sCount=1 dsCount=0 obj=0x12c072e0 self=0xb8233c00
    84.   | sysTid=7440 nice=0 cgrp=default sched=0/0 handle=0xa4aff930
    85.   | state=S schedstat=( 0 0 0 ) utm=230 stm=572 core=0 HZ=100
    86.   | stack=0xa4a03000-0xa4a05000 stackSize=1014KB
    87.   | held mutexes=
    88.   #00  pc 00000000000433f0  /system/lib/libc.so (__ioctl+8)
    89.   #01  pc 0000000000049661  /system/lib/libc.so (ioctl+14)
    90.   #02  pc 000000000001ea21  /system/lib/libbinder.so (_ZN7android14IPCThreadState14talkWithDriverEb+132)
    91.   #03  pc 000000000001ef37  /system/lib/libbinder.so (_ZN7android14IPCThreadState20getAndExecuteCommandEv+6)
    92.   #04  pc 000000000001efd5  /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb+48)
    93.   #05  pc 0000000000023efb  /system/lib/libbinder.so (???)
    94.   #06  pc 0000000000010085  /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+112)
    95.   #07  pc 000000000005f0fb  /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+70)
    96.   #08  pc 000000000004167f  /system/lib/libc.so (_ZL15__pthread_startPv+30)
    97.   #09  pc 000000000001911b  /system/lib/libc.so (__start_thread+6)
    98. "UnityMain" tid=9 Native
    99. "UnityMain" prio=5 tid=9 Native
    100.   | group="main" sCount=1 dsCount=0 obj=0x12c080b0 self=0xb8fd8c28
    101.   | sysTid=7466 nice=0 cgrp=default sched=0/0 handle=0xa3324930
    102.   | state=S schedstat=( 0 0 0 ) utm=210179 stm=33827 core=0 HZ=100
    103.   | stack=0xa3222000-0xa3224000 stackSize=1038KB
    104.   | held mutexes=
    105.   #00  pc 0000000000016a58  /system/lib/libc.so (syscall+28)
    106.   #01  pc 00000000000f6c59  /system/lib/libart.so (_ZN3art17ConditionVariable4WaitEPNS_6ThreadE+96)
    107.   #02  pc 000000000028b3bf  /system/lib/libart.so (_ZN3art3JNI14PushLocalFrameEP7_JNIEnvi+670)
    108.   #03  pc 00000000007212b8  /data/app/com.rocklio.superjakesadventure-1/lib/arm/libunity.so (???)
    109.   at com.unity3d.player.UnityPlayer.nativeRender (Native method)
    110.   at com.unity3d.player.UnityPlayer.c (unavailable)
    111.   at com.unity3d.player.UnityPlayer$e$2.queueIdle (unavailable)
    112.   at android.os.MessageQueue.next (MessageQueue.java:392)
    113.   at android.os.Looper.loop (Looper.java:135)
    114.   at com.unity3d.p
    115. "Signal Catcher" tid=2 Runnable
    116. "Signal Catcher" daemon prio=5 tid=2 Runnable
    117.   | group="system" sCount=0 dsCount=0 obj=0x12c070a0 self=0xb8fb7bd0
    118.   | sysTid=7433 nice=0 cgrp=default sched=0/0 handle=0xb450f930
    119.   | state=R schedstat=( 0 0 0 ) utm=542 stm=979 core=2 HZ=100
    120.   | stack=0xb4413000-0xb4415000 stackSize=1014KB
    121.   | held mutexes= "mutator lock"(shared held)
    122.   #00  pc 0000000000370c01  /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_9ArtMethodEPv+160)
    123.   #01  pc 000000000035054b  /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+150)
    124.   #02  pc 000000000035a1b3  /system/lib/libart.so (_ZN3art14DumpCheckpoint3RunEPNS_6ThreadE+442)
    125.   #03  pc 000000000035ad5f  /system/lib/libart.so (_ZN3art10ThreadList13RunCheckpointEPNS_7ClosureE+210)
    126.   #04  pc 000000000035b29f  /system/lib/libart.so (_ZN3art10ThreadList4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+142)
    127.   #05  pc 000000000035b9af  /system/lib/libart.so (_ZN3art10ThreadList14DumpForSigQuitERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+334)
    128.   #06  pc 000000000033383b  /system/lib/libart.so (_ZN3art7Runtime14DumpForSigQuitERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+74)
    129.   #07  pc 000000000033b091  /system/lib/libart.so (_ZN3art13SignalCatcher13HandleSigQuitEv+928)
    130.   #08  pc 000000000033b9b7  /system/lib/libart.so (_ZN3art13SignalCatcher3RunEPv+406)
    131.   #09  pc 000000000004167f  /system/lib/libc.so (_ZL15__pthread_startPv+30)
    132.   #10  pc 000000000001911b  /system/lib/libc.so (__start_thread+6)
    133. "HeapTaskDaemon" tid=5 Blocked
    134. "HeapTaskDaemon" daemon prio=5 tid=5 Blocked
    135.   | group="system" sCount=1 dsCount=0 obj=0x12c071c0 self=0xb8fb9550
    136.   | sysTid=7438 nice=0 cgrp=default sched=0/0 handle=0xb40f4930
    137.   | state=S schedstat=( 0 0 0 ) utm=333 stm=163 core=1 HZ=100
    138.   | stack=0xb3ff2000-0xb3ff4000 stackSize=1038KB
    139.   | held mutexes=
    140.   #00  pc 0000000000016a58  /system/lib/libc.so (syscall+28)
    141.   #01  pc 00000000000f6c59  /system/lib/libart.so (_ZN3art17ConditionVariable4WaitEPNS_6ThreadE+96)
    142.   #02  pc 00000000001d71dd  /system/lib/libart.so (_ZN3art2gc13TaskProcessor7GetTaskEPNS_6ThreadE+104)
    143.   #03  pc 00000000001d7711  /system/lib/libart.so (_ZN3art2gc13TaskProcessor11RunAllTasksEPNS_6ThreadE+72)
    144.   #04  pc 000000000000037f  /data/dalvik-cache/arm/system@framework@boot.oat (Java_dalvik_system_VMRuntime_runHeapTasks__+74)
    145.   at dalvik.system.VMRuntime.runHeapTasks (Native method)
    146. - waiting to lock an unknown object
    147.   at java.lang.Daemons$HeapTaskDaemon.run (Daemons.java:355)
    148.   at java.lang.Thread.run (Thread.java:818)
    Many thanks!