Bug 206246

Summary: REGRESSION: Multiple tests crashing due to exception thrown in WTR::UIScriptControllerIOS::waitForOutstandingCallbacks()
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: CLOSED INVALID    
Severity: Normal CC: jlewis3, tsavell, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description David Kilzer (:ddkilzer) 2020-01-14 11:44:56 PST
Multiple tests crashing due to exception thrown in WTR::UIScriptControllerIOS::waitForOutstandingCallbacks():

editing/async-clipboard/clipboard-get-type-with-old-items.html
editing/async-clipboard/clipboard-read-text-same-origin.html
fast/dom/HTMLAnchorElement/anchor-download-user-triggered-synthetic-click.html
fast/dom/HTMLAnchorElement/anchor-file-blob-convert-to-download.html
fast/dom/HTMLAnchorElement/anchor-file-blob-download-blank-target-popup-not-allowed.html
fast/dom/HTMLAnchorElement/anchor-file-blob-download-includes-backslash.html
fast/dom/ImageDocument-image-deletion.html

Exception stack trace:

*** Terminating app due to uncaught exception 'WebKitTestRunnerTestProblem', reason: 'The previous test completed before all synthesized events had been handled. Perhaps you're calling notifyDone() too early?'
terminating with uncaught exception of type NSException
abort() called

Application Specific Backtrace 1:
0   CoreFoundation                      0x00007fff22382df9 __exceptionPreprocess + 250
1   libobjc.A.dylib                     0x7fff310d64e6 objc_exception_throw + 48 (objc-exception.mm:565)
2   CoreFoundation                      0x00007fff22382ccf -[NSException initWithCoder:] + 0
3   WebKitTestRunnerApp                 0x000000010743e065 _ZN3WTR21UIScriptControllerIOS27waitForOutstandingCallbacksEv + 237
4   WebKitTestRunnerApp                 0x000000010743be8b _ZN3WTR15UIScriptContextD2Ev + 19
5   WebKitTestRunnerApp                 0x0000000107439b93 _ZNSt3__110unique_ptrIN3WTR15UIScriptContextENS_14default_deleteIS2_EEE5resetEPS2_ + 25
6   WebKitTestRunnerApp                 0x0000000107434b23 _ZN3WTR14TestInvocationD2Ev + 53
7   WebKitTestRunnerApp                 0x000000010742ddff _ZNSt3__110unique_ptrIN3WTR14TestInvocationENS_14default_deleteIS2_EEE5resetEPS2_ + 25
8   WebKitTestRunnerApp                 0x0000000107424c51 _ZN3WTR14TestController7runTestEPKc + 1943
9   WebKitTestRunnerApp                 0x0000000107424fd0 _ZN3WTR14TestController20runTestingServerLoopEv + 132
10  WebKitTestRunnerApp                 0x000000010741d5a4 _ZN3WTR14TestControllerC2EiPPKc + 438
11  WebKitTestRunnerApp                 0x00000001074131c8 -[WebKitTestRunnerApp _runTestController] + 40
12  Foundation                          0x00007fff2345c7cb __NSThreadPerformPerform + 204
13  CoreFoundation                      0x00007fff222f1fca __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
14  CoreFoundation                      0x00007fff222f1ef9 __CFRunLoopDoSource0 + 103
15  CoreFoundation                      0x00007fff222f1611 __CFRunLoopDoSources0 + 301
16  CoreFoundation                      0x00007fff222ec523 __CFRunLoopRun + 897
17  CoreFoundation                      0x00007fff222ebe37 CFRunLoopRunSpecific + 466
18  GraphicsServices                    0x00007fff2ad65aa2 GSEventRunModal + 139
19  UIKitCore                           0x10ff7ff00 UIApplicationMain + 1605 (UIApplication.m:4803)
20  WebKitTestRunnerApp                 0x00000001074132cf main + 114
21  libdyld.dylib                       0x00007fff31e528a5 start + 1
Comment 1 Radar WebKit Bug Importer 2020-01-14 11:45:18 PST
<rdar://problem/58575385>
Comment 2 David Kilzer (:ddkilzer) 2020-01-14 11:45:42 PST
NOTE: This crash is happening on internal iOS bots.
Comment 3 Alexey Proskuryakov 2020-01-14 15:42:16 PST
> NOTE: This crash is happening on internal iOS bots.

Let's track it internally then.
Comment 4 David Kilzer (:ddkilzer) 2020-01-14 16:52:17 PST
(In reply to Alexey Proskuryakov from comment #3)
> > NOTE: This crash is happening on internal iOS bots.
> 
> Let's track it internally then.

I filed this so that the person fixing it wouldn't have to file a separate bug to post a patch for a fix, but okay.