Questions tagged [android-anr-dialog]

The Android "Application Not Responding" dialog message

384 questions
14
votes
6 answers

Android - Forcing ANR for testing purpose

Why i can't force Android ANR with this code? No log messages or pop up. The application is just launched lazily. [UPDATE] I can't get it even sleeping a View.setOnClickListener or BroadcastReceiver.onReceive! Is there a trick? public class…
CelinHC
  • 1,857
  • 2
  • 27
  • 36
13
votes
2 answers

General guide to diagnose ANR

There are plenty of questions with ANR traces file included and the answer is always "oh, problem is in your thread 76, fix your http call" or something :) But I couldnt find any general guide or tutorial about how to read this traces, step-by-step…
rouen
  • 5,003
  • 2
  • 25
  • 48
13
votes
1 answer

How do I interpret ANR traces.txt when my code doesn't appear on stack?

I am trying to debug a persistent ANR ("application not responding") in my Android application. I have read these threads: Android - how do I investigate an ANR? How to debug Android ANR? Interpreting an ANR stack trace The overriding message is…
esilver
  • 27,713
  • 23
  • 122
  • 168
12
votes
1 answer

ANR caused by Input dispatching timed out - while trying to get my public IP address

I get the following complete error message: 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: 2. Wait…
narb
  • 958
  • 1
  • 13
  • 39
12
votes
1 answer

What are the Dalvik thread states?

Every ANR dump lists the states of all threads at the time of the ANR. I know what WAIT means but what do SUSPENDED and MONITOR mean? Thanks in advance...
Barry Fruitman
  • 12,316
  • 13
  • 72
  • 135
11
votes
1 answer

Stack trace not available for ANR in google play console

I am facing issue while debugging our ANR's. After fixing few ANR's in the last releases suddenly facing the TOP ANR's not having any stack trace. Any idea what is the issue over here. My code having Native code also.
11
votes
0 answers

How to analyze and debug ANR in a flutter app?

I have a bunch of ANR reports in my Google Play Console for my Flutter App. How do I figure out which line in my flutter app is causing the issue as the only line numbers I see in the report are for the Java files. Is there a way we can trace these…
K Vij
  • 1,783
  • 1
  • 12
  • 19
11
votes
3 answers

Webview causes ANR

I have written an app which displays html pages in Webviews, which are managed in a ViewPager. All working ok, but I have had a few ANRs when swiping from one page to another. The ANR data dump shows that the main thread has called through…
Clyde
  • 7,389
  • 5
  • 31
  • 57
11
votes
2 answers

Android freezes when there is a NullPointerException in OnClickListener.onClick (other tasks cannot start)

I have a simple setup: CrashHandler - a class which implements Thread.UncaughtExceptionHandler; CrashActivity - an activity which can send user reports; MainActivity - the main app with which the user should interact. When there is an uncaught…
Kocus
  • 1,613
  • 17
  • 31
10
votes
0 answers

HeapTaskDaemon blocked ANR. Other threads seem to be in waiting state

We have an ANR where the HeapTaskDaemon is blocked and the main thread is waiting and not busy/blocked. There are no parts of our code in any of the threads. How to debug this ANR? From what I see there is no deadlock and nothing heavy is being done…
rampr
  • 1,877
  • 4
  • 21
  • 36
10
votes
0 answers

"Long monitor contention with owner" warning

I get this warning message and since I see this message I also started to see the Google Play Services isnt responding popup and it closes my application after some time. I have review similar questions but could not find out the reason. Following…
10
votes
1 answer

How to fetch /data/anr/anr_xxx on Oreo (8.1.0)?

I'm unable to adb pull /data/anr/anr_xxx files on my Pixel Xl with Android 8.1.0. My trials: ➜ Downloads adb shell ls -al /data/anr total 1184 drwxrwxr-x 2 system system 4096 2018-06-24 13:57 . drwxrwx--x 43 system system 4096 1970-02-11…
Liu Tao
  • 2,063
  • 2
  • 10
  • 14
10
votes
1 answer

How to get something useful from this ANR log

I'm struggling with ANRs for a few weeks now but I still feel blind with logs like this. It is too long for stackoverflow and I have no idea which part might be useful. It happens usually during initial synchronization when there is a ton of…
Semanticer
  • 1,962
  • 1
  • 18
  • 29
9
votes
1 answer

ANR Crash while debugging application

I have created an app and it works fine. But sometimes when I debug my app the device locks. Then when I unlock device it crashes and shows the ANR (Activity Not Responding). I look at the logcat but not able to get any clue from there. So please…
AndroidDev
  • 4,521
  • 24
  • 78
  • 126
9
votes
1 answer

Input dispatching timed out (Waiting to send non-key event because the touched window has not finished processing certain input events that were

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. I am getting this error sometimes on button multiple click…
Zia
  • 1,204
  • 1
  • 11
  • 25
1
2
3
25 26