LogCat出现ead: Unexpected EOF!
是因为logcat的写入速度太快,导致读取不足,是因为读取缓冲区只有64Kb,可以通过下面的命令更改logcat的读取缓冲区大小。
例如:adb logcat -G 4m
调整为4m
通过执行adb logcat -g
看到缓冲区扩充到了4m
main: ring buffer is 4 MiB (3 MiB consumed), max entry is 5120 B, max payload is 4068 B
system: ring buffer is 4 MiB (3 MiB consumed), max entry is 5120 B, max payload is 4068 B
crash: ring buffer is 4 MiB (2 KiB consumed), max entry is 5120 B, max payload is 4068 B