How to fix ANR issue on /data/app/com.android.chrome-1/base.apk?

"ANR" stands for "Application not responding". It means your app has locked up for the user. There are usually 1 of two causes:

  • you have a deadlock
  • you are doing some slow operation on the UI thread, which means your UI doesn't respond

In this case we see the top of the stack trace is in "org.chromium.ui.base.WindowAndroid.nativeOnVSync". It is helpful to know that "chromium" is the open source project that powers Google Chrome, among other things. This means you can go to look at the source code.

Googling "nativeOnVysnc" on github finds the java source code

Basically it looks like something is locking up inside some Chrome rendering code. It helps to know at this point Chromium is used for Webkit which is used for rendering webview windows in Android apps. So chances are you have some sort of webview in your app which is misbehaving for rendering, but I can't help you beyond that. I'd check the javascript in my webviews for memory usage or other risky behavior, or look inside the Chromium repositry at the C++ native code to try to get a better idea of what is happening.