Comments (8)
That's very weird.
do you start the watchdog conditionally ?
from anr-watchdog.
Actually no, sometimes it just doesn't crash the app. I try it again today, use new code like this:
in the Application I init the watchdog:
new ANRWatchDog().setANRListener(
new ANRListener() {
@OverRide
public void onAppNotResponding(ANRError error) {
if (!DebugUtil.isDebuggerConnected()) {
throw error;
}
}
}).start();
Then I simulate an ANR in my MainActivity without debugger connected by "Thread.sleep(10000)", I still found it doesn't crash utils the ANR dialog appear, but just one time. I don't know the reason.
from anr-watchdog.
That should not happen.
I will investigate as soon as I get the time ;)
from anr-watchdog.
@HolenZhou If you wrap the code snippet in backticks ` (three before, three after) it will be formatted nicely and much more readable.
from anr-watchdog.
when I use suggested :
if (!BuildConfig.DEBUG) { new ANRWatchDog().start(); }
I don't get a report to Acralyzer
but if I use just :
new ANRWatchDog().start();
I get the report.
Is this how it is suppose to be ?
from anr-watchdog.
How do you launch the application ?
from anr-watchdog.
Can you test with v1.2.0
?
from anr-watchdog.
Closing, after 8 month without reply
from anr-watchdog.
Related Issues (20)
- Debug.waitForDebugger() conflict HOT 1
- Few queries - Not exactly issue HOT 1
- How can I get pid of Thread from ANRErro? HOT 1
- Anr is not being detected for android 8.0 HOT 1
- Real ANR timeout HOT 2
- Ggv
- Mm
- I too was having this issue earlier, it seems when you Log a non-runtime exception in crashlytics it creates nonfatal exceptions in fabric dashboard since ANRs don't necessarily crash an application. You need to toggle the switch in the fabric dashboard to show all exceptions including non-fatals as by default it only shows fatal exceptions.
- ANRError indeed is too big for Crashlytics. I convert errors into text files and upload to Firebase storage it is free and you can setup it from Android Studio.
- The fix is released in version `1.4.0`.
- Cannot download version 1.4.0 HOT 2
- 10786c7b4e6270fb3a65a89082a6581e8250e1f6
- It seems not so good to start the anr-watchdog on application oncreate
- Main thread is in runnable state but still ANR is detected. HOT 1
- Support for getStackTrace() and setStackTrace() HOT 1
- Race condition for _tick and _reported
- Suspiciously short list of threads when recording ANRError as Crashlytics non-fatal exception HOT 7
- Set Thread priority below main thread.
- anr debug exception please help me
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anr-watchdog.