遭遇wait_fences: failed to receive reply: 10004003错误
来源:互联网 发布:2018经济危机 知乎 编辑:程序博客网 时间:2024/06/01 09:56
如今我遇到了这个问题,在使用UIAlertView的过程中,莫名其妙的出现wait_fences: failed to receive reply: 10004003这个错误,虽然程序不会崩溃,但是此时的响应速度明显的慢很多,我在网上找了找原因。
原因最后找到了:UIAlertView一弹出,倘若键盘没有关闭,就失去了焦点,当UIAlertView关闭,再回到原界面时,就会尴尬的接到
wait_fences: failed to receive reply: 10004003
解决办法:很简单,在弹出对话框前先关闭键盘就OK了。。
下面时在查找资料的过程中,遇见的,也写上来。
这个问题的实质应该是在非主线程中 直接修改 界面
解决的方法:在后台或子线程做的操作,刷新UI的时候,一定要在主线程进行
//可能的具体情况:
1、需要实现UIAlertView的代理方法
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
}
2、在viewDidLoad方法里面生成了多个Button,在点击button是,切换他们的selected状态,会出现这个问题
[iphone][xcode]wait_fences: failed to receive reply: 10004003
在View未显示之前就执行动画之类的错误警告
例如:在没有rootViewController只有window的情况下,启动了UIAlertView,会出现这个警告
- 遭遇wait_fences: failed to receive reply: 10004003错误
- wait_fences: failed to receive reply: 10004003奇怪的错误
- wait_fences: failed to receive reply: 10004003
- wait_fences: failed to receive reply: 10004003
- ios--对话框异常--wait_fences: failed to receive reply: 10004003
- iOS开发异常错误总结之——wait_fences: failed to receive reply: 10004003
- iOS开发异常错误总结之——wait_fences: failed to receive reply: 10004003
- iOS开发异常错误总结之——wait_fences: failed to receive reply: 10004003
- iOS开发异常错误总结之——wait_fences: failed to receive reply: 10004003
- iOS开发异常错误总结之——wait_fences: failed to receive reply: 10004003
- Failed sending reply to debugger: Broken pipe
- Failed to receive access token原因
- SCIM输入启动遭遇“Failed to load x11 FrontEnd module. ”错误
- 新浪微博Failed to receive access token
- “Failed to receive system gesture state notification before next touch”
- Eclispe远程调试Failed to connect to remote VM Malformed reply from SOCKS server
- Failed to initiate service connection to simulator Error returned in reply: Connection invalid
- ambari安装hive遭遇Failed to get schema version
- JNI使用浅谈(一)
- Word 文档经过百度之后打不开
- Java Nio初探及普通io性能比较
- 行行重行行
- 使用UDP的情况
- 遭遇wait_fences: failed to receive reply: 10004003错误
- ubuntu下使用u盘
- 关于legacy code学习笔记
- Spring ClassPathXmlApplicationContext和FileSystemXmlApplicationContext
- cocos2d-x在windows平台中文问题-沈大海cocos2d-x教程19
- 保存社保档案切勿掉以轻心
- VIM的全选粘贴太麻烦了!!! ggVG"+y
- HTML5之地理位置
- openCL实现计算自然对数