Hi guys,

I tried searching for an article or post which talks about
interpreting/understanding logcat output. I keep getting an
Application Not Responding window.
I found out that it currently is shown in two main places: when the
window manager waits to long on an event it has dispatched to an
application, and when the activity manager waits too long on a
serialized broadcast it has sent to an application (thus delaying any
other recipients of the broadcast).
I want to know if there is any way to find out what caused the ANR. Is
there any way to interpret the logcat output after an ANR ? The
specific output I get after an ANR is as below

W/ActivityManager(   67): Activity idle timeout for
HistoryRecord{43e7caa0 com.example.android.lunarlander/.LunarLander}

W/WindowManager(   67): Key dispatching timed out sending to
com.example.android.lunarlander/
com.example.android.lunarlander.LunarLander

W/WindowManager(   67): Previous dispatch state: {{KeyEvent{action=0
code=20 repeat=0 meta=0 scancode=105 mFlags=8} to Window{43ee71e8
com.example.android.lunarlander/
com.example.android.lunarlander.LunarLander paused=false} @
1290642733679 lw=Window{43ee71e8 com.example.android.lunarlander/
com.example.android.lunarlander.LunarLander paused=false}
lb=android.os.binderpr...@43ee6fc8 fin=false gfw=true ed=true tts=0
wf=true fp=false mcf=Window{43ee71e8 com.example.android.lunarlander/
com.example.android.lunarlander.LunarLander paused=false}}}

W/WindowManager(   67): Current dispatch state: {{KeyEvent{action=1
code=20 repeat=0 meta=0 scancode=105 mFlags=8} to Window{43ee71e8
com.example.android.lunarlander/
com.example.android.lunarlander.LunarLander paused=false} @
1290642743795 lw=Window{43ee71e8 com.example.android.lunarlander/
com.example.android.lunarlander.LunarLander paused=false}
lb=android.os.binderpr...@43ee6fc8 fin=false gfw=true ed=true tts=0
wf=false fp=false mcf=Window{43ee71e8 com.example.android.lunarlander/
com.example.android.lunarlander.LunarLander paused=false}}}

I/Process (   67): Sending signal. PID: 354 SIG: 3

I/dalvikvm(  354): threadid=3: reacting to signal 3


What is meant by Previous dispatch state & Current dispatch state ?
Which source file actually prints W/WindowManager  ? How to understand
the above output ?

Thanks for your time and help.

Rohit

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to