Android Studio: "Frame is not available"?

david.mihola picture david.mihola · Sep 30, 2015 · Viewed 18.6k times · Source

I am working with Google's Leanback library for Android TV and I am trying to figure out how to best listen for the buttons on the remote control (especially the ones that are not captured by the MediaSession).

For that reason I have a break point in BaseGridView.dispatchTouchEvent() and when I press one of the remote buttons the debugger does indeed jump to that point and shows me the usual debug information.

However, after a few (2-5) seconds the debug info disappears and is replaced by the message "Frame is not available".

In other places the debugger is working fine, so I was wondering whether the delay caused by the debugger is counted as ANR and the app is therefore force closed?

In any case, is there any way to get around this?

Answer

dan picture dan · Jul 28, 2016

This message appears because u set too many breakpoints, and threads are waiting data from other threads, to settle this, you could cancel some breakpoints and waiting for the data to be ready...