Viewing the cause of deadlock/data/anr/traces.txt

Source: Internet
Author: User

Android ANR This error everyone is not unfamiliar, butis starting from Android 2.2 errorThe ANR information will be automatically passed on to Google for system analysis improvements, of course, your application ANR error is actually saved in a file, in the/data/anr/ Traces.txt file, if your Android device does not have root jailbreak, you can install your software in the simulator analysis, the simulator can directly use the eclipse in the Ddms file Explorer to open, such as:


Although Traces.txt is a text file, you can use Notepad on Windows to open line breaks that might not work properly with Linux, and here Android123 suggest you use the Ultra Edit view, of courseThe WordPad that comes with Windows is also good. Let's analyze the next error, the first behavior error time, the second lineWill write the package Name where the ANR occurred, and the following is COM.Android.systemui This package, the part of the thread out of the problem, through the following XXX method and the corresponding Java file, the number behind the Xxx.java file is the first few lines, is not very convenient?
-----PID2011-02-22 05:18:01-----
CMD Line:com.android.systemui
DALVIK THREADS:
(mutexes:tll=0 tsl=0 tscl=0 ghl=0 hwl=0 hwll=0)
"Main" prio=5 tid=1 NATIVE
| group= "main" scount=1 dscount=0 obj=0x4001f1a8 self=0xce48
| systid=125 nice=0 sched=0/0 Cgrp=default handle=-1345006528
| schedstat= (981213067 8042604425 151)
At Android.os.BinderProxy.transact (Native Method)
At android.os.storage.imountservice$stub$proxy.isusbmassstorageconnected (imountservice.java:95)
At android.os.storage.StorageManager.isUsbMassStorageConnected (storagemanager.java:385)
At Com.android.systemui.usb.storagenotification.<init> (storagenotification.java:71)
At Com.android.systemui.statusbar.policy.statusbarpolicy.<init> (statusbarpolicy.java:412)
At Com.android.systemui.statusbar.StatusBarService.onCreate (statusbarservice.java:239)
At Android.app.ActivityThread.handleCreateService (activitythread.java:1920)
At android.app.activitythread.access$2500 (activitythread.java:117)
At Android.app.activitythread$h.handlemessage (activitythread.java:982)
At Android.os.Handler.dispatchMessage (handler.java:99)
At Android.os.Looper.loop (looper.java:123)
At Android.app.ActivityThread.main (activitythread.java:3647)
At Java.lang.reflect.Method.invokeNative (Native Method)
At Java.lang.reflect.Method.invoke (method.java:507)
At Com.android.internal.os.zygoteinit$methodandargscaller.run (zygoteinit.java:839)
At Com.android.internal.os.ZygoteInit.main (zygoteinit.java:597)
At Dalvik.system.NativeStart.main (Native Method)
"Binder Thread #2" prio=5 tid=8 NATIVE
| group= "main" scount=1 dscount=0 obj=0x40511270 self=0x1c1100
| systid=153 nice=0 sched=0/0 Cgrp=default handle=1141608
| schedstat= (27181321 64708345 5)
At Dalvik.system.NativeStart.run (Native Method)
"Binder Thread #1" prio=5 tid=7 NATIVE
| group= "main" scount=1 dscount=0 obj=0x405111a8 Self=0x1349c8
| systid=152 nice=0 sched=0/0 Cgrp=default handle=1264008
| schedstat= (31857510 74284459 5)
At Dalvik.system.NativeStart.run (Native Method)
"Compiler" Daemon prio=5 tid=6 vmwait
| Group= "System" scount=1 dscount=0 obj=0x4050dd10 self=0x116538
| systid=144 nice=0 sched=0/0 Cgrp=default handle=982520
| schedstat= (7319346 103454345 12)
At Dalvik.system.NativeStart.run (Native Method)
"JDWP" Daemon prio=5 tid=5 vmwait
| Group= "System" scount=1 dscount=0 OBJ=0X4050DC60 self=0x116400
| systid=142 nice=0 sched=0/0 Cgrp=default handle=986536
| schedstat= (32876840 393298925 20)
At Dalvik.system.NativeStart.run (Native Method)
"Signal Catcher" daemon prio=5 tid=4 RUNNABLE
| Group= "System" scount=0 dscount=0 obj=0x4050dba0 self=0x253ab0
| systid=141 nice=0 sched=0/0 Cgrp=default handle=2439792
| schedstat= (94447996 796994478 19)
At Dalvik.system.NativeStart.run (Native Method)
"GC" Daemon prio=5 tid=3 vmwait
| Group= "System" scount=1 dscount=0 Obj=0x4050daf8 SELF=0X8FD40
| systid=128 nice=0 sched=0/0 Cgrp=default handle=2439592
| schedstat= (103352102 819201761 21)
At Dalvik.system.NativeStart.run (Native Method)
"Heapworker" Daemon prio=5 tid=2 vmwait
| Group= "System" scount=1 dscount=0 obj=0x4050da40 Self=0xf0c70
| systid=127 nice=0 sched=0/0 Cgrp=default handle=2439528
| schedstat= (971134410 6445300652 103)
At Dalvik.system.NativeStart.run (Native Method)

Viewing the cause of deadlock/data/anr/traces.txt

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.