-2

在此处输入图像描述

我的设备通过 USB 电缆长时间连接到 PC。后来当我转到我的应用程序并按下屏幕时,我得到了如图所示的黑线。我检查了我的 ADB 日志

08-01 18:11:57.170: I/InputReader(533): Touch event's action is 0x0 (deviceType=0) [pCnt=1, pending(waiting finished signal)=0, s=0.522 ]
08-01 18:11:57.170: I/InputDispatcher(533): Delivering touch to current input target: action: 0x0
08-01 18:11:57.170: I/InputDispatcher(533): Delivering touch to current input target: action: 0x0
08-01 18:11:57.170: I/InputDispatcher(533): Delivering touch to current input target: action: 0x0
08-01 18:11:57.190: E/memalloc(9818): clean_buffer: ION_IOC_CLEAN_INV_CACHES failed with error - Invalid argument
08-01 18:11:57.190: E/msm8960.gralloc(9818): cannot flush handle 0x83c7c8 (offs=0 len=398000, flags = 0xa8) err=Invalid argument
08-01 18:11:57.240: E/memalloc(9818): clean_buffer: ION_IOC_CLEAN_INV_CACHES failed with error - Invalid argument
08-01 18:11:57.240: E/msm8960.gralloc(9818): cannot flush handle 0x83c7c8 (offs=0 len=398000, flags = 0xa8) err=Invalid argument
08-01 18:11:57.280: E/memalloc(9818): clean_buffer: ION_IOC_CLEAN_INV_CACHES failed with error - Invalid argument
08-01 18:11:57.280: E/msm8960.gralloc(9818): cannot flush handle 0x83c7c8 (offs=0 len=398000, flags = 0xa8) err=Invalid argument
08-01 18:11:57.300: I/InputReader(533): Touch event's action is 0x1 (deviceType=0) [pCnt=1, pending(waiting finished signal)=1, s=]
08-01 18:11:57.300: I/InputDispatcher(533): Delivering touch to current input target: action: 0x1
08-01 18:11:57.300: I/InputDispatcher(533): Delivering touch to current input target: action: 0x1
08-01 18:11:57.300: I/InputDispatcher(533): Delivering touch to current input target: action: 0x1
08-01 18:11:57.610: I/InputReader(533): Touch event's action is 0x0 (deviceType=0) [pCnt=1, pending(waiting finished signal)=0, s=0.523 ]
08-01 18:11:57.610: I/InputDispatcher(533): Delivering touch to current input target: action: 0x0
08-01 18:11:57.610: I/InputDispatcher(533): Delivering touch to current input target: action: 0x0
08-01 18:11:57.610: I/InputDispatcher(533): Delivering touch to current input target: action: 0x0
08-01 18:11:57.620: E/memalloc(9818): clean_buffer: ION_IOC_CLEAN_INV_CACHES failed with error - Invalid argument
08-01 18:11:57.620: E/msm8960.gralloc(9818): cannot flush handle 0x83c7c8 (offs=0 len=398000, flags = 0xa8) err=Invalid argument
08-01 18:11:57.670: E/memalloc(9818): clean_buffer: ION_IOC_CLEAN_INV_CACHES failed with error - Invalid argument
08-01 18:11:57.670: E/msm8960.gralloc(9818): cannot flush handle 0x83c7c8 (offs=0 len=398000, flags = 0xa8) err=Invalid argument
08-01 18:11:57.710: E/memalloc(9818): clean_buffer: ION_IOC_CLEAN_INV_CACHES failed with error - Invalid argument
08-01 18:11:57.710: E/msm8960.gralloc(9818): cannot flush handle 0x83c7c8 (offs=0 len=398000, flags = 0xa8) err=Invalid argument
08-01 18:11:57.740: I/InputReader(533): Touch event's action is 0x1 (deviceType=0) [pCnt=1, pending(waiting finished signal)=0, s=]
08-01 18:11:57.740: I/InputDispatcher(533): Delivering touch to current input target: action: 0x1
08-01 18:11:57.740: I/InputDispatcher(533): Delivering touch to current input target: action: 0x1
08-01 18:11:57.740: I/InputDispatcher(533): Delivering touch to current input target: action: 0x1

正如在日志系统中试图做“memalloc”“gralloc”!不知道出了什么问题!!请帮忙

使用设备:三星 Galaxy S3

4

1 回答 1

1

这似乎是设备端的问题。这里改变的变量是我正确的设备吗?两个设备上的代码都是一样的(如果我错了请纠正我),所以关键是寻找S2和S3之间的不同之处(即屏幕密度、显示、api级别)。所以这就是我要做的:在另一部手机上试用你的应用程序(可能是你朋友的手机或其他),看看会发生什么。而不是试图找到手机的系统属性之间的相似之处,试图拼凑出导致错误的原因。我希望这个帮助能祝你好运!S3似乎发生了一些事情。我今天才发现这个问题。看看这个

于 2012-08-13T02:07:29.643 回答