Fixing "read: unexpected EOF!" error when using Logcat on Android 8.0

Post date: Aug 22, 2017 5:35:45 AM

Android 8.0 Oreo's Logcat program often exits with the message "read: unexpected EOF!" when a large amount of logs is printed in a short amount of time. I found this StackOverflow post that fixed the problem by increasing the log's ring buffer size.

Run:

adb logcat -G 1m

to increase the log buffer size from the default of 256KB to 1MB, which prevents the problem from occuring.