DA14583源代码错误

学到更多常见问题解答教程

2个帖子/ 0新
最后一篇
pureform.
离线
最后一次露面:3天前5个月
加入:2017-12-28 08:37.
DA14583源代码错误

嗨,我在尝试运行iOS平台的更新源代码时遇到错误。
没有修改源代码中的任何内容。

除非我打开传感器融合的页面,一切都适用。在打开该页面后,它会冻结,以下错误显示。
这是在Xcode中打印到命令行的原因。

=================================================================.
主线程检查器:UI API调用后台线程: - [UIView SetNeedsDisplay]
PID:6667,TID:2264582,线程名称:(无),队列名称:com.apple.root.default-qos,qos:21
回溯:
4 Dialog_iot_IOS 0x000000010403594C - [glmodelview setmodel:] + 140
5 Dialog_iot_IOS 0x0000000104028170 __35- [茶壶viewController viewdidload] _block_invoke + 388
6 libdispatch.dylib 0x00000001056d12cc _dispatch_call_block_and_release + 24
7 libdispatch.dylib 0x00000001056d128c _dispatch_client_callout + 16
8 libdispatch.dylib 0x00000001056dd3dc _dispatch_queue_override_invoke + 984
9 libdispatch.dylib 0x00000001056e29d0 _dispatch_root_queue_drain + 624
10 libdispatch.dylib 0x00000001056e26f4 _dispatch_worker_thread3 + 136
11 libsystem_pthread.dylib 0x0000000185c0f06c _pthread_wqthread + 1268

12 libsystem_pthread.dylib 0x0000000185c0eb6c start_wqthread + 4
2018-03-13 18:11:56.476348 + 0800 Dialog_iot_IOS [6667:2264582] [报告]主题检查器:UI API在后台线程上调用: - [UIView SetNeedsDisplay]
PID:6667,TID:2264582,线程名称:(无),队列名称:com.apple.root.default-qos,qos:21
回溯:
4 Dialog_iot_IOS 0x000000010403594C - [glmodelview setmodel:] + 140
5 Dialog_iot_IOS 0x0000000104028170 __35- [茶壶viewController viewdidload] _block_invoke + 388
6 libdispatch.dylib 0x00000001056d12cc _dispatch_call_block_and_release + 24
7 libdispatch.dylib 0x00000001056d128c _dispatch_client_callout + 16
8 libdispatch.dylib 0x00000001056dd3dc _dispatch_queue_override_invoke + 984
9 libdispatch.dylib 0x00000001056e29d0 _dispatch_root_queue_drain + 624
10 libdispatch.dylib 0x00000001056e26f4 _dispatch_worker_thread3 + 136
11 libsystem_pthread.dylib 0x0000000185c0f06c _pthread_wqthread + 1268
12 libsystem_pthread.dylib 0x0000000185c0eb6c start_wqthread + 4
2018-03-13 18:11:56.561553 + 0800 Dialog_iot_ios [6667:2264582] - [agxa11familycommandbuffer renderCommandEncoderWithDescriptor:],第114行:错误'命令编码器已经编码到此命令缓冲区'
- [agxa11family commmandbuffer rendercommandencoderwithdescriptor:]:114:失败的断言`命令编码器已经编码到此命令缓冲区'

关键词:
设备:
mt_dialog.
离线
最后一次露面:3天12小时前
员工
加入:2015-06-08 11:34
嗨pureform,

嗨pureform,

感谢您指示,请在以下问题上找到以下修复程序:

在TeapotViewController.m中,ViewDidload方法(第43行)。

更换:
dispatch_async(dispatch_get_global_queue(dispatch_queue_priority_default,0),^ {
if([visorcontroller sharedsensorcontroller] getDeviceType] == 1){
self.modelview.model = [glmodel modelwithcontentsoffile:@“dialog_watch2.obj”];
} else {
self.modelview.model = [glmodel modelwithcontentsoffile:@“diagr_dw_final_dcase.obj”];
}
[self.modelview显示];
});

有:

dispatch_async(dispatch_get_global_queue(dispatch_queue_priority_default,0),^ {
glmodel *型号;
if([visorcontroller sharedsensorcontroller] getDeviceType] == 1){
model = [glmodel modelwithcontentsoffile:@“dialog_watch2.obj”];
} else {
model = [glmodel modelwithcontentsoffile:@“diagr_dw_final_dcase.obj”];
}
dispatch_async(dispatch_get_main_queue(),^ {
self.modelview.model =模型;
});
});

谢谢mt_dialog.