Android device monitor seems to miss crashes

760 views Asked by At

At seemingly random occasions it looks like Log cat in Device monitor bundled with Android studio misses error messages.

I have an app that crashed on different errors, Index out of bounds to mention one. At some occasions this crash was shown in the log, at other occasions it showed warnings, not errors. But it still crashed where expected at the out of bounds error.

I have no idea why the log misses those errors and what I should do to prevent it from happening. Any suggestions on what might be the reason, how I can find it and fix it?

1

There are 1 answers

3
Pierre Maoui On BEST ANSWER

Logcat streams the log output from the device (or from an emulator) and that stream can be delayed, interrupted or just slow. When this happen I stop and restart it by clicking on this icon in Android Studio :

Restart Logcat

If it's from a device and this behavior is frequent you may also want to test an other cable.