[Webkit-unassigned] [Bug 224606] New: MacCatalyst tests crash on NSInternalInconsistencyException, reason: NSApplication has not been created yet

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 15 05:44:42 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=224606

            Bug ID: 224606
           Summary: MacCatalyst tests crash on
                    NSInternalInconsistencyException, reason:
                    NSApplication has not been created yet
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kkinnunen at apple.com
                CC: thorton at apple.com
        Depends on: 224605

MacCatalyst tests crash on NSInternalInconsistencyException, reason: NSApplication has not been created yet

It's unclear :
- if the crashes are due to the inconsistent build (see bug 224605) 
- if it's somehow not constructing the UIApplication which would then probably construct the NSApplication
- if it's just missing the runBlockWhenSharedDelegateBecomesAvailable


  2021-04-15 05:41:14.144 TestWebKitAPI[95606:4911569] *** Assertion failure in -[UINSApplicationDelegate init], UINSApplicationDelegate.m:286
        2021-04-15 05:41:14.167 TestWebKitAPI[95606:4911569] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSApplication has not been created yet. Consider using -[UINSApplicationDelegate runBlockWhenSharedDelegateBecomesAvailable:] to avoid premature instantiation.'
        *** First throw call stack:
        (
                0   CoreFoundation                      0x00007fff20807d2b __exceptionPreprocess + 242
                1   libobjc.A.dylib                     0x00007fff2053fd92 objc_exception_throw + 48
                2   CoreFoundation                      0x00007fff20830e92 +[NSException raise:format:arguments:] + 88
                3   Foundation                          0x00007fff215e8a82 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191
                4   UIKitMacHelper                      0x00007fff34222637 -[UINSApplicationDelegate init] + 1128
                5   UIKitMacHelper                      0x00007fff34222178 __41+[UINSApplicationDelegate sharedDelegate]_block_invoke + 40
                6   libdispatch.dylib                   0x00007fff204ea7e6 _dispatch_client_callout + 8
                7   libdispatch.dylib                   0x00007fff204eb96c _dispatch_once_callout + 20
                8   UIKitMacHelper                      0x00007fff34222051 +[UINSApplicationDelegate sharedDelegate] + 285
                9   UIKitCore                           0x00007fff446917d0 -[UIWindow(iOSMac) _hostWindow] + 88
                10  UIKitCore                           0x00007fff4568a163 -[UIScrollView _updateScrollViewTrackingAdapter] + 303
                11  UIKitCore                           0x00007fff447a2ff7 -[UIScrollView _didMoveFromWindow:toWindow:] + 484
                12  UIKitCore                           0x00007fff44704bc4 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 759
                13  UIKitCore                           0x00007fff446b9e51 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 130
                14  UIKitCore                           0x00007fff446b9cca -[UIView(Hierarchy) _postMovedFromSuperview:] + 800
                15  UIKitCore                           0x00007fff446b8a7d -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1957
                16  TestWebKitAPI                       0x00000001027670eb -[TestWKWebView _setUpTestWindow:] + 283
                17  TestWebKitAPI                       0x0000000102766cf8 -[TestWKWebView initWithFrame:configuration:addToWindow:] + 296
                18  TestWebKitAPI                       0x0000000102766bca -[TestWKWebView initWithFrame:configuration:] + 122
                19  TestWebKitAPI                       0x000000010279d0bf _ZN13TestWebKitAPI43VideoQualityDisplayCompositing_Enabled_Test8TestBodyEv + 335
                20  TestWebKitAPI                       0x00000001029170e4 _ZN7testing8internal38HandleSehExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc + 132
                21  TestWebKitAPI                       0x00000001028e3f5b _ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc + 123
                22  TestWebKitAPI                       0x00000001028e3e93 _ZN7testing4Test3RunEv + 195
                23  TestWebKitAPI                       0x00000001028e4f44 _ZN7testing8TestInfo3RunEv + 244
                24  TestWebKitAPI                       0x00000001028e6085 _ZN7testing9TestSuite3RunEv + 261
                25  TestWebKitAPI                       0x00000001028f505a _ZN7testing8internal12UnitTestImpl11RunAllTestsEv + 986
                26  TestWebKitAPI                       0x000000010291c684 _ZN7testing8internal38HandleSehExceptionsInMethodIfSupportedINS0_12UnitTestImplEbEET0_PT_MS4_FS3_vEPKc + 132
                27  TestWebKitAPI                       0x00000001028f4a1b _ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS0_12UnitTestImplEbEET0_PT_MS4_FS3_vEPKc + 123
                28  TestWebKitAPI                       0x00000001028f48ed _ZN7testing8UnitTest3RunEv + 205
                29  TestWebKitAPI                       0x0000000102759f91 _Z13RUN_ALL_TESTSv + 17
                30  TestWebKitAPI                       0x0000000102759f22 _ZN13TestWebKitAPI15TestsController3runEiPPc + 162
                31  TestWebKitAPI                       0x00000001028b14b1 main + 481
                32  libdyld.dylib                       0x00007fff206aff3d start + 1
                33  ???                                 0x0000000000000002 0x0 + 2


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=224605
[Bug 224605] MacCatalyst build appears inconsistent: ld: warning: building for Mac Catalyst, but linking in .tbd file (..../System/Library/Frameworks/Cocoa.framework/Cocoa.tbd) built for macOS
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210415/5d5e2fee/attachment-0001.htm>


More information about the webkit-unassigned mailing list