Android ANR:如何调试/data/anr/traces.txt文件

时间:2014-12-22 08:51:05

标签: android performance android-anr-dialog

以下是android设置应用程序获得ANR时的跟踪。任何人都可以帮助我理解这对找出根本原因意味着什么?

Cmd line:com.android.settings

JNI: CheckJNI is on; workarounds are off; pins=0; globals=241

DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0 ghl=0)

"main" prio=5 tid=1 NATIVE
  | group="main" sCount=1 dsCount=0 obj=0x418d1578 self=0x41879200
  | sysTid=3804 nice=0 sched=0/0 cgrp=apps handle=1075535868
  | state=R schedstat=( 1407544347 1054154639 7321 ) utm=82 stm=58 core=2
  #00  pc 000049a4  /system/bin/linker
  #01  pc 00001845  /system/bin/linker
  at com.google.android.gles_jni.EGLImpl._eglGetDisplay(Native Method)
  at com.google.android.gles_jni.EGLImpl.eglGetDisplay(EGLImpl.java:109)
  at android.view.HardwareRenderer$GlRenderer.initializeEgl(HardwareRenderer.java:1019)
  at android.view.HardwareRenderer$GlRenderer.initialize(HardwareRenderer.java:979)
  at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1536)
  at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1004)
  at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5481)
  at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)
  at android.view.Choreographer.doCallbacks(Choreographer.java:562)
  at android.view.Choreographer.doFrame(Choreographer.java:532)
  at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
  at android.os.Handler.handleCallback(Handler.java:730)
  at android.os.Handler.dispatchMessage(Handler.java:92)
  at android.os.Looper.loop(Looper.java:137)
  at android.app.ActivityThread.main(ActivityThread.java:5103)
  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:737)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
  at dalvik.system.NativeStart.main(Native Method)

谢谢!

1 个答案:

答案 0 :(得分:0)

您是否尝试过SonyMobile开发的 ChkBugReport 工具

您将从here

获得chkbugreport-0.4-185.jar

用法

  • adb shell bugreport> bugreport.txt

  • java -jar chkbugreport.jar bugreport.txt

您的错误报告的可读性将得到增强。

Reference