How to analyze an Android /data/anr/traces.txt file? How to analyze an Android /data/anr/traces.txt file? android android

How to analyze an Android /data/anr/traces.txt file?


So far, it doesn't look like it has a problem. As we can observe here, The main thread is suspended and so is one more thread called WebViewCoreThread, apart from these 2 all others seem to be pretty alright either doing a classic wait or a timed wait or just running.

The 2 possible reasons why the ANR could have occurred here might be because either of the 2 threads is suspended indefinitely and the android (system) would have thought they have died , after waiting for some time out, say few seconds, thus throwing an ANR.

You might want to check if there are any break points in either of those threads or either of those threads are doing some heavy op involving instantiation of objects leading to gc which also might cause the thread to enter suspended mode.

Also check the logs for any sign on watchdog killing any of the system process.. might help fig this out!


you should check the TIMED_WAIT thread, why every time it trying to lock a different subject?what caused this happen?- waiting on <0x40e0b258> (a java.util.Timer$TimerImpl)