Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anr is not being detected sometimes #32

Open
zeeshanalisayyed opened this issue Feb 27, 2018 · 3 comments
Open

Anr is not being detected sometimes #32

zeeshanalisayyed opened this issue Feb 27, 2018 · 3 comments

Comments

@zeeshanalisayyed
Copy link

I have an app, I made the app to cause the ANR by following code on tap of a button:

int i = 0;
while(true){
    i++; // this will cause anr
}

The above code causes the ANR, app also shows the anr dialog (basically, app not responding, wait or close the app), but the problem is ANRWatchDog isn't able to detect the anr sometimes, sometimes it does.

Please have a look at the above issue reported and let me know.

Thanks!

@SalomonBrys
Copy link
Owner

I've updated the demo app to demo infinite loop.
I've tried 10 times in the emulator, and the ANR has been caught by the lib every single time.
I have no freaking idea how to replicate what you are describing.

@CliffCawley
Copy link

@zeeshanalisayyed Are you sometimes running with the debugger attached and sometimes not?

@zeeshanalisayyed
Copy link
Author

@SalomonBrys have you tested the above scenario on a real device, can you please test it, the issue is still there!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants