iOS 9 App冻结控制台日志" BKSendHIDEvent" [英] iOS 9 App freeze with console log "BKSendHIDEvent"
问题描述
应用程序启动很长时间后,
触摸屏幕时控制台中有一些日志:
After app launched for a long time, there are some logs in console while touching the screen:
BKSendHIDEvent:IOHIDEventSystemConnectionDispatchEvent错误:0xE00002E8 - 未知事件被丢弃
并且所有按钮都没有响应,整个应用程序冻结。
目前,此问题仅发生在iPhone 5s上。
and all buttons have no response, whole app freeze. Currently, this problem only happened on iPhone 5s.
类似问题: https://forums.xamarin.com/discussion/55646/alot-of-annotation-on-mkmapview
有没有人有同样的问题?
Does anyone have the same issue?
更新:我发现有超过500个应用程序被iOS杀死时的线程,因为我使用第三方类Reachability太多次了。为了解决这个问题,我声明了一个静态变量,冻结似乎不再发生。
Update: I've found that there are more than 500 threads when app being killed by iOS, because I use a third party class Reachability too many times. To fix that, I declare a static variable, the freeze seems not happen again.
static Reachability *staticReachability;
+(NetworkStatus)detectNetwork{
if (staticReachability == nil) {
staticReachability = [Reachability reachabilityForInternetConnection];
[staticReachability startNotifier];
}
NetworkStatus status = [staticReachability currentReachabilityStatus];
return status;
}
推荐答案
我遇到同样的问题。
在我的情况下,它在iPad(OS 9.1)关闭wifi后发生。应用程序没有响应。在控制台中,我可以看到相同的错误。
In My case it happends after switch off wifi in iPad (OS 9.1). Application is unresponsive. In console I can see the same errors.
启用开关后,应用程序再次响应,我可以继续。
After switch wifi on, application is again responsive and I can continue.
这篇关于iOS 9 App冻结控制台日志" BKSendHIDEvent"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!