APP崩溃提示:This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.
崩溃输出日志
2017-08-29 14:53:47.332368+0800 HuiDaiKe[2373:1135604] This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.
Stack:(
0 CoreFoundation 0x0000000188e42ff8 <redacted> + 148
1 libobjc.A.dylib 0x00000001878a4538 objc_exception_throw + 56
2 CoreFoundation 0x0000000188e42f28 <redacted> + 0
3 Foundation 0x0000000189a35378 <redacted> + 128
4 Foundation 0x000000018987da38 <redacted> + 36
5 UIKit 0x000000018ef703b0 <redacted> + 816
6 UIKit 0x000000018ef7c2ac <redacted> + 1740
7 UIKit 0x000000018f2a57f0 <redacted> + 88
8 UIKit 0x000000018efd9b04 <redacted> + 376
9 UIKit 0x000000018f049840 <redacted> + 232
10 UIKit 0x000000018f0495b8 <redacted> + 244
11 UIKit 0x000000018f0543cc <redacted> + 932
12 UIKit 0x000000018f053eec <redacted> + 184
13 UIKit 0x000000018f053914 <redacted> + 1728
14 MJRefresh 0x00000001013c72bc -[UITableView(MJRefresh) mj_reloadData] + 40
15 HuiDaiKe 0x000000010013e440 _TFC8HuiDaiKe40CustomersAddressBookImportViewControllerP33_17FF30CE5B34E964041849EE3753856C13setDataSourcefGSaCS_19cwsAddressBookModel_T_ + 2728
16 HuiDaiKe 0x000000010013d968 _TFFC8HuiDaiKe40CustomersAddressBookImportViewControllerP33_17FF30CE5B34E964041849EE3753856C11prepareDataFT_T_U_FTOCS_14cwsAddressBook4typeGSaCS_19cwsAddressBookModel__T_ + 992
17 HuiDaiKe 0x00000001001c9cc0 _TFFC8HuiDaiKe14cwsAddressBook3getFT4backFTOS0_4typeGSaCS_19cwsAddressBookModel__T__T_U_FTS1_GSaS2___T_ + 252
18 HuiDaiKe 0x00000001001ca5c8 _TFFFC8HuiDaiKe14cwsAddressBookP33_FC9266F7BF731B8D62B76C7FA41D90D413check_iOS_9_0FT4backFTOS0_4typeGSaCS_19cwsAddressBookModel__T__T_U0_FTSbGSqPs5Error___T_U_FTSbGSaS2___T_ + 96
19 HuiDaiKe 0x00000001001caa04 _TFC8HuiDaiKe14cwsAddressBookP33_FC9266F7BF731B8D62B76C7FA41D90D411get_iOS_9_0fT4backFTSbGSaCS_19cwsAddressBookModel__T__T_ + 828
20 HuiDaiKe 0x00000001001ca544 _TFFC8HuiDaiKe14cwsAddressBookP33_FC9266F7BF731B8D62B76C7FA41D90D413check_iOS_9_0FT4backFTOS0_4typeGSaCS_19cwsAddressBookModel__T__T_U0_FTSbGSqPs5Error___T_ + 220
21 HuiDaiKe 0x00000001001ca6bc _TTRXFo_dSboGSqPs5Error____XFdCb_dSbdGSqCSo7NSError___ + 132
22 ContactsFoundation 0x0000000191862748 <redacted> + 288
23 ContactsFoundation 0x000000019186d680 <redacted> + 600
24 Contacts 0x00000001918c814c <redacted> + 72
25 libdispatch.dylib 0x0000000187cfa9e0 <redacted> + 24
26 libdispatch.dylib 0x0000000187cfa9a0 <redacted> + 16
27 libdispatch.dylib 0x0000000187d090d4 <redacted> + 644
28 libdispatch.dylib 0x0000000187d0aa50 <redacted> + 540
29 libdispatch.dylib 0x0000000187d0a7d0 <redacted> + 124
30 libsystem_pthread.dylib 0x0000000187f03100 _pthread_wqthread + 1096
31 libsystem_pthread.dylib 0x0000000187f02cac start_wqthread + 4
)
崩溃原因
在子线程中更新UI导致主线程的视图布局出错
解决方法
把更新UI的操作放在主线程中执行
swift示例
DispatchQueue.main.async {
self.mainTableview.reloadData()
}
APP崩溃提示:This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.的更多相关文章
- iOS之崩溃处理:This application is modifying the autolayout engine from a background thread
一.错误提示 今天在开发的时候遇到一个崩溃问题,"This application is modifying the autolayout engine from a background ...
- This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes.
-- :::] This application is modifying the autolayout engine from a background thread, which can lead ...
- This application is modifying the autolayout engine from a background threa-线程错误
警告提示:This application is modifying the autolayout engine from a background thread, which can lead to ...
- warning:This application is modifying the autolayout engine from a background thread
警告提示:This application is modifying the autolayout engine from a background thread, which can lead to ...
- iOS 报错:(子线程中更新UI)This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.
今天在写程序的时候,使用Xcode 运行工程时报出下面的错误错信息,我还以为是什么呢,好久没遇到过这样的错误了. **ProjectName[1512:778965] This application ...
- This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release.
一,经历 <1> 使用SDWebImage下载 成功图片后,将图片设置给 self.imageView.image,提示如题所示的错误提示. <2>第一反应就是慢慢注释掉代码进 ...
- iOS开发——modifying the autolayout engine from a background thread
很多时候,我们需要用到多线程的东西,比如红外线检测是否有人经过.这种情况需要搞个子线程在后台不断的检测,这个线程可能是第三方提供的,你调用它给的方法,然后显示提示框的时候,问题就来了. 提示信息:Th ...
- 追踪app崩溃率、事件响应链、Run Loop、线程和进程、数据表的优化、动画库、Restful架构、SDWebImage的原理
1.如何追踪app崩溃率,如何解决线上闪退 当 iOS设备上的App应用闪退时,操作系统会生成一个crash日志,保存在设备上.crash日志上有很多有用的信息,比如每个正在执行线程的完整堆栈 跟踪信 ...
- android app崩溃日志收集以及上传
源代码获取请到github:https://github.com/DrJia/AndroidLogCollector 已经做成sdk的形式,源代码已公开,源代码看不懂的请自行google. 假设想定制 ...
随机推荐
- 201521123093 java 第十四周学习总结
1. 本周学习总结 1.1 以你喜欢的方式(思维导图或其他)归纳总结多数据库相关内容. MySQL中的库操作和表操作 库操作: 显示所有数据库: show databases; 创建数据库: crea ...
- 201521123074 《Java程序设计》第13周学习总结
1. 本周学习总结 以你喜欢的方式(思维导图.OneNote或其他)归纳总结多网络相关内容. 2. 书面作业 Q1. 网络基础 参考:实验任务书-题目1 1.1 比较ping www.baidu.co ...
- 201521123022 《Java程序设计》 第十周学习总结
1. 本周学习总结 1.1 以你喜欢的方式(思维导图或其他)归纳总结异常与多线程相关内容. 2. 书面作业 本次PTA作业题集异常.多线程 Q1.finally 题目4-2 Q1.1 截图你的提交结果 ...
- SSM整合开发
导入开发包 asm-3.2.0.RELEASE.jar asm-3.3.1.jar c3p0-0.9.jar cglib-2.2.2.jar com.springsource.net.sf.cglib ...
- xml是什么,为什么要用xml
XML概念 众所周知,xml常用语数据存储和传输,文件后缀为 .xml: 它是可扩展标记语言(Extensible Markup Language,简称XML),是一种标记语言. 标记,指计算机所能理 ...
- 实现一个简单的虚拟DOM
现在的流行框架,无论React还是Vue,都采用虚拟DOM. 好处就是,当我们数据变化时,无需像Backbone那样整体重新渲染,而是局部刷新变化部分,如下组件模版: <ul class=&qu ...
- PuTsangTo-单撸游戏开发01 Flag与计划
先立下flag,至少1年之内坚持并2年之内完成自己的一个梦想--游戏开发. 没有参加培训也不打算参加培训,就纯靠业余时间自学并用自己的思路完成一整套游戏体系.做出此决心时也已经做好准备烂尾了,但是有种 ...
- Maven仓库搜索jar包依赖网址
可在该网站搜索jar包依赖 http://search.maven.org/
- 洗礼灵魂,修炼python(5)--python操作符,内置函数
前面提到了BIF(内置函数)这个概念,什么是内置函数,就是python已经定义好的函数,不需要人为再自己定义,直接拿来就可以用的函数,那么都有哪些BIF呢? 可以在交互式界面(IDLE)输入这段代码, ...
- Manacher’s Algorithm (神啊)
(转载自)http://blog.csdn.net/hopeztm/article/details/7932245 这里描述了一个叫Manacher’s Algorithm的算法. 算法首先将输入字符 ...