美文网首页android学习与工作
google cast投屏时遇到chatty: uid=1000

google cast投屏时遇到chatty: uid=1000

作者: liuye099 | 来源:发表于2019-11-08 15:01 被阅读0次
 在使用Google Cast投屏时,出现黑屏现象,看打印信息中总是出现类似于chatty: uid=10006(com.google.android.apps.mediashell) Thread-6 expire 5 lines的打印。

chatty: uid=10006(com.google.android.apps.mediashell) CastMediaThread expire 6 lines
……
上网查看只找到了一篇解释相似问题的文章可做参考,文章内容如下:
当出现类似如下错误日志时:

2019-04-14 17:51:14.506 10189-10189/com.ss.android.ex.parent D/GGK: no WonderfulVideo

2019-04-14 17:51:14.506 10189-10189/com.ss.android.ex.parent I/chatty: uid=10774(u0_a774) com.ss.android.ex.parent identical 5 lines

2019-04-14 17:51:14.506 10189-10189/chatty D/GGK: no WonderfulVideo

2019-04-14 17:51:14.506 10189-10189/com.ss.android.ex.parent D/GGK: has WonderfulVideo

2019-04-14 17:51:14.506 10189-10189/com.ss.android.ex.parent I/chatty: uid=10774(u0_a774) com.ss.android.ex.parent identical 1 line

2019-04-14 17:51:14.506 10189-10189/com.ss.android.ex.parent D/GGK: has WonderfulVideo

是因为相邻的几行打印内容完全相同,从Android O开始Log的chatty机制,会把中间的重复内容去掉不再打印。而是打印类似如上的 ”identical 5 lines“ ,告知开发者去除了几行

这个删除操作是在Android源码的 /system/core/logd/LogBufferElement.cpp 文件中实现的,类似的还有一个 expire x lines 日志

原文链接:https://www.cnblogs.com/genggeng/p/10706379.html

相关文章

网友评论

    本文标题:google cast投屏时遇到chatty: uid=1000

    本文链接:https://www.haomeiwen.com/subject/lpzibctx.html