安卓系统中的“Binder事务失败”

6

我在我的Beagle Board上遇到了绑定器错误,如下所示。如何找出是哪个进程导致了这些错误?

binder: send failed reply for transaction 4800, target dead                     
binder: 1112:1750 transaction failed 29189, size 1528-4                         
binder: send failed reply for transaction 6233, target dead                     
binder: 1112:1112 transaction failed 29189, size 1332-4                         
binder: send failed reply for transaction 4792, target dead                     
binder: 1112:1638 transaction failed 29189, size 1332-4                         
binder: send failed reply for transaction 6232, target dead   
1个回答

4

我觉得您可以在common/drivers/staging/android/binder.c文件中找到答案。所以我认为在您的情况下,日志的含义是:

printk(KERN_INFO "binder: %d:%d transaction failed %d, size"
            "%zd-%zd\n",
           proc->pid, thread->pid, return_error,
           tr->data_size, tr->offsets_size);

感谢您的帮助,朋友...实际上我打算跳过这个修复并继续应用程序开发...这些错误会对在我的安卓设备上开发和运行应用程序造成任何问题吗? - dibin_salher
1
是的,它们可以。几乎所有的IPC通信都使用了Binder IPC。例如,想象一下一个应用程序调用一个服务(发送意图到服务)。这种通信通过Binder IPC进行,您的错误意味着事务失败。因此,您没有调用该服务。 - Yury
@yury,谢谢你的建议。但目前我正在为我的板编写驱动程序。 - dibin_salher

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接