Questions tagged [android-anr-dialog]

The Android "Application Not Responding" dialog message

384 questions
181
votes
13 answers

Android - how do I investigate an ANR?

Is there a way of finding out where my app threw an ANR (Application Not Responding). I took a look at the traces.txt file in /data and I see a trace for my application. This is what I see in the trace. DALVIK THREADS: "main" prio=5 tid=3…
lostInTransit
  • 70,519
  • 61
  • 198
  • 274
95
votes
4 answers

ANR at android.os.MessageQueue.nativePollOnce

We are seeing this ANR in different parts of our app. Wanted to understand what causes this ANR? main (native): tid=1 systid=31940 #00 pc 0x5431c libc.so #01 pc 0x1313a5 libart.so #02 pc 0x2ab05b libart.so #03 pc 0x3659 libnativehelper.so #04 pc…
70
votes
2 answers

ANR Input dispatching timed out

ANR Input dispatching timed out (Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over 500.0ms ago. Wait queue length: 60. Wait queue head age: 8503.2ms.) Hi! I'm…
andMarkus
  • 960
  • 1
  • 8
  • 16
54
votes
4 answers

Disable ANR messages while debugging

While debugging an application and stopped at a breakpoint, Android repeatedly displays " isn't responding. Do you want to close it?" dialogs with a "wait" and "ok" option. Is there any way to disable those while an application is being…
spaaarky21
  • 6,524
  • 7
  • 52
  • 65
31
votes
2 answers

Crashes and ANR on Android Developer Console

I just recently launched an application on the Google Play Store, and I was exploring the developer console and saw the tab for Crashes and ANR. What does ANR stand for? Also, my app seems to have crashed on some of my friend's phone before, but…
lyk
  • 1,578
  • 5
  • 25
  • 49
27
votes
3 answers

Prevent ApplicationNotResponding during debugging

I am quite new to Android and have a debugging issue. I know what an ANR is for, and do not see them when I run my app normally. However, when I try to debug my BoradcastReceiver, I am too slow and get the ANR message. Is there a way to switch off…
andreas
  • 1,483
  • 1
  • 15
  • 36
25
votes
3 answers

ANR keyDispatchingTimedOut error

i m getting this force down error in my app,when i m trying to parse RSS with DOM.it's not always the force down problem however...this is the logcat: **ANR keyDispatchingTimedOut** DALVIK THREADS: "main" prio=5 tid=1 NATIVE | group="main"…
menu_on_top
  • 2,613
  • 14
  • 44
  • 71
25
votes
2 answers

NoClassDefFoundError: android.app.ANRManagerProxy

Does anyone know why this happens? I see this crash reported by my app but I have no idea what it is. java.lang.NoClassDefFoundError: android.app.ANRManagerProxy Thread: Binder_3, Exception: java.lang.NoClassDefFoundError:…
24
votes
2 answers

Is "ANR" an exception or an error or what?

Is the ANR an exception, an error or what? Can we actually catch it in a try{} catch(){} structure?
lee lias
  • 251
  • 1
  • 2
  • 3
21
votes
2 answers

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

I've got an ANR error on my android app. It's trace is below "main" and "Thread-20153" are main problem of ANR? DALVIK THREADS: (mutexes: tll=0 tsl=0 tscl=0 ghl=0) "main" prio=5 tid=1 SUSPENDED | group="main" sCount=2 dsCount=1 obj=0x40aee490…
Lion.k
  • 2,519
  • 8
  • 28
  • 43
20
votes
3 answers

ANR in com.google.android.googlequicksearchbox:search

I am having problems deploying an app onto the Google Play Store. The exception that is getting returned is such: 05-10 14:14:31.383: E/ActivityManager(1572): ANR in com.google.android.googlequicksearchbox:search 05-10 14:14:31.383:…
Bart
  • 367
  • 2
  • 11
19
votes
0 answers

ANR Input dispatching timed out (ActivityRecord does not have a focused window)

I got an ANR crash report with following "title": Input dispatching timed out (ActivityRecord{abcdefg com.mypackage/.my.subpackage.MyActivity t3125} does not have a focused window) The stacktrace of the main thread looks like this: #00 pc…
L3n95
  • 1,505
  • 3
  • 25
  • 49
19
votes
3 answers

ANR in SurfaceView on specific devices only -- The only fix is a short sleep time

In my Android application, I use a SurfaceView to draw things. It has been working fine on thousands of devices -- except that now users started reporting ANRs on the following devices: LG G4 Android 5.1 3 GB RAM 5.5" display 2560 x 1440 px…
caw
  • 30,999
  • 61
  • 181
  • 291
17
votes
1 answer

Android ANR - Input dispatching timed out

I have started receiving several strange ANR-report (Application Not Responding) from many code locations. Input dispatching timed out (Waiting because no window has focus but there is a focused application that may eventually add a window when …
GuilhermeFGL
  • 2,891
  • 3
  • 15
  • 33
16
votes
2 answers

How to analyze ANR in sharedPreferences

Meet a ANR in sharedPreferences, don't know how to locate the problem. Here are three parts from trace, most of other threads are "WAIT" or "TIMED_WAIT". "main" thread is blocked because of countdownlatch.await(). 2nd thread "pool-1-thread-1"…
mjgrrrr
  • 241
  • 2
  • 13
1
2 3
25 26