Bug 195137 - Flaky API Test TestWebKitAPI.WebKitLegacy.ScrollingDoesNotPauseMedia
Summary: Flaky API Test TestWebKitAPI.WebKitLegacy.ScrollingDoesNotPauseMedia
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jer Noble
URL:
Keywords: InRadar
: 193286 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-02-27 17:34 PST by Aakash Jain
Modified: 2019-03-12 12:37 PDT (History)
11 users (show)

See Also:


Attachments
Patch (3.00 KB, patch)
2019-03-12 11:06 PDT, Jer Noble
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aakash Jain 2019-02-27 17:34:05 PST
TestWebKitAPI.WebKitLegacy.ScrollingDoesNotPauseMedia seems flaky. In https://ews-build.webkit-uat.org/#/builders/20/builds/1046, the test Timedout in run-api-tests step. However, in the immediately next retry step (re-run-api-tests), it passed.

    TestWebKitAPI.WebKitLegacy.ScrollingDoesNotPauseMedia
        TestWebKitAPI[20818:41429190] *** Warning: <AVPlayerViewController: 0x7fdda2809a00> is trying to enter full screen, but is not in its view's window's view controller hierarchy. This results in undefined behavior.
Comment 1 Aakash Jain 2019-03-01 03:35:30 PST
This test was added recently in https://trac.webkit.org/changeset/239640/webkit
Comment 2 Aakash Jain 2019-03-01 03:35:37 PST
Another occurrence: https://ews-build.webkit-uat.org/#/builders/20/builds/1159
Comment 3 Shawn Roberts 2019-03-12 09:30:29 PDT
Verified locally

Tested against 3 revisions

r242795, r239652 are crashes
r239605 test does not exist.

Reproduced with :

run-api-tests TestWebKitAPI.WebKitLegacy.ScrollingDoesNotPauseMedia --debug --ios-simulator

Will upload full crash log to radar.

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x00000000bbadbeef
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [26035]

VM Regions Near 0xbbadbeef:
--> 
    __TEXT                 00000001033df000-0000000103b00000 [ 7300K] r-x/rwx SM=COW  /Users/USER/Desktop/*

Application Specific Information:
CoreSimulator 587.32 - Device: iPhone 5s (1E0C75AE-077E-4464-8C9F-5019982ADEEB) - Runtime: iOS 12.2 (16E214) - DeviceType: iPhone 5s

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   JavaScriptCore                	0x000000010818a6f0 WTFCrash + 16
1   com.apple.WebKitLegacy        	0x000000012163d4db WTFCrashWithInfo(int, char const*, char const*, int) + 27
2   com.apple.WebKitLegacy        	0x000000012165c24b WebCore::JSMainThreadNullState::JSMainThreadNullState() + 171
3   com.apple.WebKitLegacy        	0x000000012165bcd5 WebCore::JSMainThreadNullState::JSMainThreadNullState() + 21
4   com.apple.WebKitLegacy        	0x0000000121672680 -[DOMDocument querySelector:] + 32
5   TestWebKitAPI                 	0x000000010380ea4a TestWebKitAPI::WebKitLegacy_ScrollingDoesNotPauseMedia_Test::TestBody() + 1194 (ScrollingDoesNotPauseMedia.mm:93)
6   TestWebKitAPI                 	0x0000000103a1501e void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) + 126 (gtest.cc:2443)
7   TestWebKitAPI                 	0x00000001039dd10b void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) + 123 (gtest.cc:2479)
8   TestWebKitAPI                 	0x00000001039dd036 testing::Test::Run() + 198
9   TestWebKitAPI                 	0x00000001039de822 testing::TestInfo::Run() + 210
10  TestWebKitAPI                 	0x00000001039dfe8c testing::TestCase::Run() + 236 (gtest.cc:2810)
11  TestWebKitAPI                 	0x00000001039f80c2 testing::internal::UnitTestImpl::RunAllTests() + 834 (gtest.cc:5176)
12  TestWebKitAPI                 	0x0000000103a182ee bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) + 126 (gtest.cc:2443)
13  TestWebKitAPI                 	0x00000001039f7b0b bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) + 123 (gtest.cc:2479)
14  TestWebKitAPI                 	0x00000001039f79cc testing::UnitTest::Run() + 412 (gtest.cc:4786)
15  TestWebKitAPI                 	0x000000010385b911 RUN_ALL_TESTS() + 17 (gtest.h:2341)
16  TestWebKitAPI                 	0x000000010385b8a4 TestWebKitAPI::TestsController::run(int, char**) + 164 (TestsController.cpp:86)
17  TestWebKitAPI                 	0x00000001039a02de main + 430 (mainIOS.mm:47)
18  libdyld.dylib                 	0x00000001075ec541 start + 1
Comment 4 Radar WebKit Bug Importer 2019-03-12 09:31:12 PDT
<rdar://problem/48810307>
Comment 5 Jer Noble 2019-03-12 11:06:56 PDT
Created attachment 364410 [details]
Patch
Comment 6 Ryan Haddad 2019-03-12 11:09:01 PDT
*** Bug 193286 has been marked as a duplicate of this bug. ***
Comment 7 WebKit Commit Bot 2019-03-12 12:37:44 PDT
Comment on attachment 364410 [details]
Patch

Clearing flags on attachment: 364410

Committed r242819: <https://trac.webkit.org/changeset/242819>
Comment 8 WebKit Commit Bot 2019-03-12 12:37:45 PDT
All reviewed patches have been landed.  Closing bug.