Surface :: setbuffersDimensions日志被垃圾邮件 [英] Surface::setbuffersDimensions Log being spammed
问题描述
我构建了一个Android应用程序,该应用程序可以正常运行,并且可以在平板电脑上正常使用:Acer.7英寸API 21.
I have built an Android app that is working fine and as expected with a tablet: Acer. 7-inch API 21.
我最近有一个新的平板电脑:宏cer.10英寸API 22.
I recently got a new tablet: Acer. 10-inch API 22.
现在,我的日志中充满了这一行.
Now I am getting my logs spammed with this line.
04-12 18:23:27.371 8776-9082/com.callbell.callbell D/Surface: Surface::setBuffersDimensions(this=0x7f9aa44000,w=800,h=1280)
,屏幕将冻结,并在随机间隔内变为空白.我没有在日志中看到任何错误,唯一可以找到此日志行的参考是在这里
and the screen will freeze and go blank at random intervals. I have not seen any errors in the log and the only reference I can find to this log line is here
更新我已经在几种设备上尝试过此方法,并获得了不同的成功.
UPDATE I've tried this on a few devices with varying success.
没有问题:
三星Galaxy Tab 7"
Samsung Galaxy Tab 7"
三星Galaxy Tab 10"
Samsung Galaxy Tab 10"
Acer Iconia 8"
Acer Iconia 8"
问题:
Acer Iconia 10"
Acer Iconia 10"
推荐答案
当我们使用带有光标的EditText时,这些日志就会出现,并且光标闪烁负责重绘屏幕.
These log come when we have EditText with cursor, And that cursor blink is responsible to redraw screen.
Surface :: setBuffersDimensions(this = 0x7f4ccc7c00,w = 1080,h = 1920)
D/OpenGLRenderer:WorkerThread 0x7f7c07f000正在运行
Surface::setBuffersDimensions(this=0x7f4ccc7c00,w=1080,h=1920)
D/OpenGLRenderer: WorkerThread 0x7f7c07f000 running
当我这样做
android:cursorVisible="false"
这些日志不见了.
因此,当工作室屏幕上的这些日志变为垃圾邮件时,它会提醒开发人员检查UI绘制模式.
So when studio screen become spam with these logs, Its an alert for developer to check UI draw pattern.
这篇关于Surface :: setbuffersDimensions日志被垃圾邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!