Questions tagged [android-anr-dialog]

The Android "Application Not Responding" dialog message

384 questions
3
votes
1 answer

How can I trace why users get an "Application Not Responding" in my Android app?

I'm new to Android dev. Since last month, many users have reported that my app has crash "Application Not Responding". My app is relied heavily on webview, I have check the server side but nothing wrong happens: the request always response less than…
3
votes
2 answers

What could be causing an ANR on setText on a TextView?

Now that Firebase has ANR reports, I'm seeing some ANRs that I never saw on the Play Store Console. I'm struggling to understand what I'm doing wrong on some of those situations, for example, I have this one ANR when calling setText on a TextView.…
casolorz
  • 8,486
  • 19
  • 93
  • 200
3
votes
0 answers

Encrypted Shared preferences causes ANR on Android 9 and Android 10

I am using Encrypted shared preference to encrypted the preferences data. I am using it in the following way: val masterKey = MasterKey.Builder(context) .setKeyScheme(MasterKey.KeyScheme.AES256_GCM) .build() …
nilkash
  • 7,408
  • 32
  • 99
  • 176
3
votes
0 answers

Admob ANR on AdView.loadAd, google play-services lib problem?

Sometimes I notice ANR of AdView.loadAd method. From traces.txt: "main" prio=5 tid=1 Blocked | group="main" sCount=1 dsCount=0 obj=0x742c42a0 self=0xb4d36500 | sysTid=22581 nice=0 cgrp=default sched=0/0 handle=0xb6f46b34 | state=S schedstat=(…
t0m
  • 3,004
  • 31
  • 53
3
votes
0 answers

Android ANR in "android.app.ResourcesManager"

Recently i see a quite significant increase of ANRs in the Google Play Console for my app. There are reports for different types of causes but they have one thing in common: Both the main thread and my worker thread are blocked and at least one of…
nils277
  • 231
  • 3
  • 8
3
votes
0 answers

Getting ANR in WorkManger due to The "main" (tid=1) thread is in suspended state. This is likely due to garbage collection

I have implemented the WorkManager version 'android.arch.work:work-runtime:1.0.0-alpha06' . I am getting ANR mostly in Application onCreate with this message. The "main" (tid=1) thread is in suspended state. This is likely due to garbage collection.…
Sujeet Kumar Mehta
  • 2,761
  • 2
  • 20
  • 28
3
votes
0 answers

InApp getSkuDetails producing ANRs

For a game with couple of million active users, I am using InApp Billing V3 and calls getSkuDetails to load the prices of my in app items. I do call getSkuDetails from a separate thread and still ِANRs keeps taking place. Did anyone face similar…
DevSherif
  • 147
  • 2
  • 11
3
votes
0 answers

Input dispatching timed out

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: 16. Wait queue head age: 5548.9ms.) I'm getting…
3
votes
0 answers

ANRs being faced by the users due to Google Tag Manager

I am a developer of an application. Recently I found via the ANR reports from the play store that a considerable chunk of my user base is facing ANR issue. When I tried to get under the skin of the issue, I found out that the reason of these ANRs is…
3
votes
1 answer

Fatal signal 6 (SIGABRT) when switching apps

Context: - My app uses a webview to display a report with some data. - This webview has a toolbar on top with a print button. - When clicked, the print button open up a menu that lets the user choose from a list of apps that can print the…
MurifoX
  • 14,991
  • 3
  • 36
  • 60
3
votes
0 answers

My GcmTaskService provokes ANR

I made a Service that aims at retrieving data on a server every 10 hours when internet is on. I've very rarely used Service before and I don't understand what happen there,but when I start my app, I get an ANR before the first layout is displayed,…
Renaud Favier
  • 1,645
  • 1
  • 17
  • 33
3
votes
1 answer

Android not responding if Debugging. If not in Debug app works normally

When I'm debugging and the app hits an breakpoint, I can debug normally for a while. Some time later, Android displays the ANR Dialog, but I still can debug normally. If I don't click on the Phone's screen, it ends the debug, so I need to keep my…
Felipe Andrade
  • 509
  • 6
  • 23
3
votes
1 answer

ANR in SurfaceView method "onTouchEvent(...)" on Android

On Android, I've subclassed SurfaceView and the resulting view is working fine in most cases. However, roughly 1% of all users report an ANR problem with this implementation. Apparently, there's an edge case where the SurfaceView fails due to some…
caw
  • 30,999
  • 61
  • 181
  • 291
3
votes
2 answers

What does this ANR mean?

I have enabled StrictMode and captured this log(/data/anr/traces.txt). The issue is that the listview is hanging after processing about 3 rows(on the 4th row). I am using the holder pattern. The list view everywhere else seems to be working…
user2997127
  • 51
  • 1
  • 5
3
votes
2 answers

How to stop ASyncTask from crashing when my activity changes or destroys?

This MAY be a duplicate of another question, I am not sure. I've read similar questions, but either wasn't able to make sense of it, or wasn't able to successfully apply the given solutions. I've created an application that has multiple tabs. Most…
Vic V
  • 1,080
  • 2
  • 12
  • 31