Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

ANR on Android

Discussion in 'Android' started by Le-Tuan-Son, Sep 25, 2018.

  1. Le-Tuan-Son

    Le-Tuan-Son

    Joined:
    Jan 13, 2016
    Posts:
    21
    Hi, I got this ANR problem on Android.
    I testes with unity 5.6.3p4, 2017.4.10f1, 2018.2.9f1. All of them have this issue.

    Anyone have this problem too?
    Where might I start looking to fix this?

    Thanks for any help.

    Code (CSharp):
    1. "main" prio=5 tid=1 TimedWaiting
    2.   | group="main" sCount=1 dsCount=0 obj=0x768fdef0 self=0xb4e08000
    3.   | sysTid=29622 nice=0 cgrp=apps sched=0/0 handle=0xb6fa1ec8
    4.   | state=S schedstat=( 33475805459 50664764168 139011 ) utm=2082 stm=1265 core=3 HZ=100
    5.   | stack=0xbe307000-0xbe309000 stackSize=8MB
    6.   | held mutexes=
    7.   at java.lang.Object.wait! (Native method)
    8. - waiting on <0x3e45a4f8> (a java.lang.Object)
    9.   at java.lang.Thread.parkFor (Thread.java:1220)
    10. - locked <0x3e45a4f8> (a java.lang.Object)
    11.   at sun.misc.Unsafe.park (Unsafe.java:299)
    12.   at java.util.concurrent.locks.LockSupport.parkNanos (LockSupport.java:197)
    13.   at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos (AbstractQueuedSynchronizer.java:1014)
    14.   at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos (AbstractQueuedSynchronizer.java:1304)
    15.   at java.util.concurrent.Semaphore.tryAcquire (Semaphore.java:380)
    16.   at com.unity3d.player.UnityPlayer.b (unavailable)
    17.   at com.unity3d.player.UnityPlayer.a (unavailable)
    18.   at com.unity3d.player.UnityPlayer.a (unavailable)
    19.   at com.unity3d.player.UnityPlayer$16.surfaceDestroyed (unavailable)
    20.   at android.view.SurfaceView.updateWindow (SurfaceView.java:591)
    21.   at android.view.SurfaceView.onWindowVisibilityChanged (SurfaceView.java:246)
    22.   at android.view.View.dispatchDetachedFromWindow (View.java:14498)
    23.   at android.view.ViewGroup.removeAllViewsInLayout (ViewGroup.java:4679)
    24.   at android.view.ViewGroup.removeAllViews (ViewGroup.java:4623)
    25.   at com.unity3d.player.UnityPlayer.quit (unavailable)
    26.   at com.unity3d.player.UnityPlayerActivity.onDestroy (unavailable)
    27.   at android.app.Activity.performDestroy (Activity.java:6524)
    28.   at android.app.Instrumentation.callActivityOnDestroy (Instrumentation.java:1154)
    29.   at android.app.ActivityThread.performDestroyActivity (ActivityThread.java:4177)
    30.   at android.app.ActivityThread.handleDestroyActivity (ActivityThread.java:4217)
    31.   at android.app.ActivityThread.access$1500 (ActivityThread.java:177)
    32.   at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1502)
    33.   at android.os.Handler.dispatchMessage (Handler.java:102)
    34.   at android.os.Looper.loop (Looper.java:145)
    35.   at android.app.ActivityThread.main (ActivityThread.java:5942)
    36.   at java.lang.reflect.Method.invoke! (Native method)
    37.   at java.lang.reflect.Method.invoke (Method.java:372)
    38.   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1400)
    39.   at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1195)
     
  2. Le-Tuan-Son

    Le-Tuan-Son

    Joined:
    Jan 13, 2016
    Posts:
    21
    Bump. Anyone have this problem too?
     
  3. mk4014104

    mk4014104

    Joined:
    Mar 5, 2021
    Posts:
    9
    Does anyone find the solution, i am getting anr similar to this