致命异常:NSInternalInconsistencyException无法创建远程渲染上下文

时间:2016-12-09 05:48:22

标签: ios objective-c ios9

应用程序因initWithFrame

UIWindow方法的内部不一致异常而崩溃

崩溃日志指向行:

self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

到目前为止,在iPhone 9上报告崩溃事件。

Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x180bd5900 __exceptionPreprocess
1  libobjc.A.dylib                0x180243f80 objc_exception_throw
2  CoreFoundation                 0x180bd57d0 +[NSException raise:format:]
3  Foundation                     0x18154899c -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
4  UIKit                          0x185bbaffc -[UIWindow _createContextAttached:]
5  UIKit                          0x185bb926c -[UIWindow _commonInitAttachedWindow:debugName:scene:]
6  UIKit                          0x185bb95f4 -[UIWindow _initWithFrame:debugName:scene:attached:]
7  JioPlay                        0x10010e610 -[AppDelegate application:didFinishLaunchingWithOptions:] (AppDelegate.m:475)
8  UIKit                          0x18593d704 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:]
9  UIKit                          0x185b6c130 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:]
10 UIKit                          0x185b704b8 -[UIApplication _runWithMainScene:transitionContext:completion:]
11 UIKit                          0x185b6d5c0 -[UIApplication workspaceDidEndTransaction:]
12 FrontBoardServices             0x18218b790 -[FBSSerialQueue _performNext]
13 FrontBoardServices             0x18218bb10 -[FBSSerialQueue _performNextFromRunLoopSource]
14 CoreFoundation                 0x180b8cefc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
15 CoreFoundation                 0x180b8c990 __CFRunLoopDoSources0
16 CoreFoundation                 0x180b8a690 __CFRunLoopRun
17 CoreFoundation                 0x180ab9680 CFRunLoopRunSpecific
18 UIKit                          0x185936580 -[UIApplication _run]
19 UIKit                          0x185930d90 UIApplicationMain
20 JioPlay                        0x1001bcf28 main (main.m:26)
21 libdyld.dylib                  0x18065a8b8 start

1 个答案:

答案 0 :(得分:1)

您可以在二进制图像中检查LR / PC寄存器地址是否属于您的应用程序。如果没有,我建议你把你的bug告诉Apple。 如果您修复了此错误,则可以与question分享您的解决方案。