The Android "Application Not Responding" dialog message
Questions tagged [android-anr-dialog]
384 questions
9
votes
4 answers
How to fix ANR issue on /data/app/com.android.chrome-1/base.apk?
can you help me with this ANR issue? Users reports lots of times to Google Play Console, but I cannot reproduce it myself. Many thanks.
"main" prio=5 tid=1 Native
| group="main" sCount=1 dsCount=0 obj=0x73898658 self=0xb0204400
| sysTid=3708…

iForests
- 6,757
- 10
- 42
- 75
9
votes
4 answers
ANR crash after a few seconds when stopping at breakpoint in main thread (AOSP - RK3288 box)
I have an RK3288 box, for which I am developing an app.
I'm having an issue which is causing a lot of headache to me. I can't debug anything all.
Every-time I attach the debugger, when I hit a breakpoint which is on main thread, my app crashes…

Rick Sanchez
- 4,528
- 2
- 27
- 53
8
votes
1 answer
ANR errors - SCREEN OFF - How am I supposed to handle them?
I got this message on the developer console stating that my application had frozen because of:
ANR Broadcast of Intent { act=android.intent.action.SCREEN_OFF flg=0x40000000 }
There was no stack trace because this was raised by a pre-Froyo user. It…

Barry Irvine
- 13,858
- 3
- 25
- 36
8
votes
0 answers
Android ANR when bind application provider
I'm having a very hard time debugging an Android ANR problem.
This is what I get from Google Play Console - Android vitals (released version from Google Play):
Android 10:
at libcore.io.Linux.access (Native method)
at…

t0m
- 3,004
- 31
- 53
8
votes
0 answers
Android ANR in RecyclerView and AdapterHelper
I see quite a good amount of ANRs happening inside androidx.recyclerview.widget.AdapterHelper.findPositionOffset. The thread is runnable, but I don't see any issue with other threads which are all waiting or native.
Here's the stacktrace of…

devgianlu
- 1,547
- 13
- 25
8
votes
0 answers
Download individual ARN reports from Google Play
I am in need of downloading reports of individual instances of ANRs (application not responding) data. This in order to upload such data to an internal system that would help me generate reports that are not available on Google Play (ANR rate,…

user3745751
- 121
- 5
8
votes
1 answer
WorkManager causes ANRs from Broadcasts
I'm using the new library WorkManager
for periodic work and one-time work request. Currently used version of the lib is 1.0.0, while min SDK is 21 and compile is 28.
Work manager does the job as described in the documentation but causes a lot of…

metodieva
- 131
- 6
8
votes
0 answers
Waiting because the touched window's input channel is full
I have an Android floating window program that will automatically get ANR after about 5-10 minutes of showing. The following is the trace.txt logs.
This happened on my android 8.1 device, There is no such problem on another 5.0 device. Can anyone…

大飞机
- 81
- 1
- 3
8
votes
1 answer
How to change Application Not Responding (ANR) Timeout in AOSP
How do I change the Application Not Responding (ANR) timeout in the AOSP source code? The default timeout is 5 seconds, but where is that set and how do I change it?

Dhasneem
- 4,037
- 4
- 33
- 47
8
votes
1 answer
ANR in random usage of application
I have an VOIP application and the engine part is C(NDK) Level.On random usage of application i end with an ANR pointing to " at android.os.MessageQueue.nativePollOnce(Native Method)".
Using android-ndk-r5
ANR Traces:
----- pid 13735 at 2013-05-23…

NitZRobotKoder
- 1,046
- 8
- 44
- 74
7
votes
1 answer
Can someone shed some light on this ANR log?
Received this ANR report on the Developer Console, and I thought it was a bit weird. Seems like it's something with File, but I'm not too sure, so I was hoping someone could shed some light on it. Thanks a lot!
DALVIK THREADS:
(mutexes: tll=0 tsl=0…

Michell Bak
- 13,182
- 11
- 64
- 121
7
votes
2 answers
Any idea what can cause an ANR on android.graphics.HardwareRenderer.nSyncAndDrawFrame?
I've seen a few questions already answered about this but they are all very outdated (like they talk about very old WebView versions).
My app does use the WebView as it is a browser and it also has ads and they typically use the WebView as well. It…

casolorz
- 8,486
- 19
- 93
- 200
7
votes
0 answers
Android ANR: The "main" (tid=1) thread is in suspended state. This is likely due to garbage collection
I am wondering if there is anything that an app can do to avoid the following Android ANR (from Goolge Play Console):
The "main" (tid=1) thread is in suspended state. This is likely due to
garbage collection.
"main" tid=1 Suspended Thread…

Hong
- 17,643
- 21
- 81
- 142
7
votes
1 answer
Android: ANR when call getExternalFilesDir(null)
Recently I've started to get ANR errors when call getExternalFilesDir(null) from my activity code. This code was working earlier but now, maybe after updating gradle build tools, there is such problem. Cleaning the project and rebuild don't help.…

Victor Semenovich
- 536
- 4
- 14
7
votes
4 answers
How to reproduce Application Not Responding (ANR) from Activity and from BroadcastReceiver
I need to reproduce Application Not Responding (ANR) dialogs from Activity and from BroadCastReceiver.
I tried to create a simple button click:
public void makeANRClick(View view){
while (true);
}
With this code I reproduced ANR on emulator…

Alexander Myznikov
- 295
- 3
- 9