首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >iOS 8 NSInternalInconsistencyException

iOS 8 NSInternalInconsistencyException
EN

Stack Overflow用户
提问于 2014-09-12 21:14:25
回答 1查看 16.4K关注 0票数 23

我得到了下面的崩溃报告。它们仅出现在安装了iOS 8的设备上。请注意以下消息:

代码语言:javascript
复制
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'this request has been neutered - you can't call -sendResponse: twice nor after encoding it'

崩溃报告:

代码语言:javascript
复制
Date/Time:       2014-08-31T01:39:15Z
OS Version:      iPhone OS 8.0 (12A4345d)
Report Version:  104

Exception Type:  SIGABRT
Exception Codes: #0 at 0x1964cb270
Crashed Thread:  0

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'this request has been neutered - you can't call -sendResponse: twice nor after encoding it'

Last Exception Backtrace:
0   CoreFoundation                       0x0000000186192084 CFDateGetTimeIntervalSinceDate + 19604
1   libobjc.A.dylib                      0x0000000195d3c0e4 objc_exception_throw + 56
2   CoreFoundation                       0x0000000186191f44 CFDateGetTimeIntervalSinceDate + 19280
3   Foundation                           0x0000000187075e20 _NSSetExceptionRaiser + 340
4   BaseBoard                            0x000000018c1deb90 BSMainScreenOrientation + 4856
5   libdispatch.dylib                    0x000000019638d254 0x19638c000 + 4692
6   libdispatch.dylib                    0x0000000196395d50 dispatch_barrier_sync_f + 1176
7   BaseBoard                            0x000000018c1deae4 BSMainScreenOrientation + 4684
8   UIKit                                0x000000018ac9df88 _UIBackdropViewSettingsColorCancelRed + 28984
9   libdispatch.dylib                    0x000000019638d294 0x19638c000 + 4756
10  libdispatch.dylib                    0x000000019638d254 0x19638c000 + 4692
11  libdispatch.dylib                    0x000000019639103c _dispatch_main_queue_callback_4CF + 952
12  CoreFoundation                       0x00000001861498dc CFRunLoopTimerSetTolerance + 4196
13  CoreFoundation                       0x0000000186147984 _CFRunLoopGet2b + 3316
14  CoreFoundation                       0x0000000186075664 CFRunLoopRunSpecific + 392
15  GraphicsServices                     0x000000018f0a75a4 GSEventRunModal + 164
16  UIKit                                0x000000018a82e164 UIApplicationMain + 1484
17  Taptalk                              0x00000001000bfccc main (main.m:21)
18  libdyld.dylib                        0x00000001963b2a08 _tlv_bootstrap + 232

我不能重现它,但它似乎发生在从后台启动应用程序时。我应该从哪里开始寻找呢?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-09-15 20:08:11

该错误出现在以下回调中:

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler

当您调用completionHandler两次时,就会发生崩溃。这发生在iOS8之后。

票数 32
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25809191

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档