Bug 243412

Summary: REGRESSION(252871@main): [ iPadOS ] 2X TestWebKitAPI.WebKit2 CrashGPUProcess API tests are constantly failing
Product: WebKit Reporter: Hercules Hjalmarsson <hhjalmarsson>
Component: New BugsAssignee: Hercules Hjalmarsson <hhjalmarsson>
Status: RESOLVED FIXED    
Severity: Normal CC: eric.carlson, mmaxfield, simon.fraser, webkit-bot-watchers-bugzilla, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Hercules Hjalmarsson 2022-08-01 11:38:06 PDT
TestWebKitAPI.WebKit2.CrashGPUProcessWhileCapturingAndCalling
TestWebKitAPI.WebKit2.CrashGPUProcessWhileCapturing

Are constantly failing on iPadOS ToT and since 252871@main.

HISTORY:
https://results.webkit.org/?suite=api-tests&suite=api-tests&test=TestWebKitAPI.WebKit2.CrashGPUProcessWhileCapturing&test=TestWebKitAPI.WebKit2.CrashGPUProcessWhileCapturingAndCalling

DIFF:
TestWebKitAPI.WebKit2.CrashGPUProcessWhileCapturing
        (webrtc_video_engine.cc:3482): Absent receive stream; ignoring clearing encoded frame sink for ssrc 0
        
        /Volumes/Data/worker/Apple-iOS-15-Simulator-Release-Build/build/Tools/TestWebKitAPI/Tests/WebKit/GetUserMedia.mm:84
        Expected equality of these values:
          @"PASS"
            Which is: "PASS"
          [message body]
            Which is: "FAIL checkVideoStatus"
        
    TestWebKitAPI.WebKit2.CrashGPUProcessWhileCapturingAndCalling
        (webrtc_video_engine.cc:3482): Absent receive stream; ignoring clearing encoded frame sink for ssrc 0
        
        /Volumes/Data/worker/Apple-iOS-15-Simulator-Release-Build/build/Tools/TestWebKitAPI/Tests/WebKit/GetUserMedia.mm:84
        Expected equality of these values:
          @"PASS"
            Which is: "PASS"
          [message body]
            Which is: "FAIL checkDecodingVideo for first: {\"id\":\"RTCInboundRTPVideoStream_2762128765\",\"timestamp\":1659331292675,\"type\":\"inbound-rtp\",\"kind\":\"video\",\"mediaType\":\"video\",\"ssrc\":2762128765,\"transportId\":\"RTCTransport_0_1\",\"framesDropped\":0,\"jitter\":0,\"packetsLost\":0,\"packetsReceived\":0,\"bytesReceived\":0,\"firCount\":0,\"framesDecoded\":0,\"framesReceived\":0,\"headerBytesReceived\":0,\"jitterBufferDelay\":0,\"jitterBufferEmittedCount\":0,\"keyFramesDecoded\":0,\"nackCount\":0,\"pliCount\":0,\"totalDecodeTime\":0,\"totalInterFrameDelay\":0,\"totalSquaredInterFrameDelay\":0,\"trackId\":\"RTCMediaStreamTrack_receiver_4\"}"
        
        
        /Volumes/Data/worker/Apple-iOS-15-Simulator-Release-Build/build/Tools/TestWebKitAPI/Tests/WebKit/GetUserMedia.mm:84
        Expected equality of these values:
          @"PASS"
            Which is: "PASS"
          [message body]
            Which is: "FAIL checkVideoStatus"
        
        
        /Volumes/Data/worker/Apple-iOS-15-Simulator-Release-Build/build/Tools/TestWebKitAPI/Tests/WebKit/GetUserMedia.mm:84
        Expected equality of these values:
          @"PASS"
            Which is: "PASS"
          [message body]
            Which is: "FAIL checkDecodingVideo for second: {\"id\":\"RTCInboundRTPVideoStream_2762128765\",\"timestamp\":1659331303801,\"type\":\"inbound-rtp\",\"kind\":\"video\",\"mediaType\":\"video\",\"ssrc\":2762128765,\"transportId\":\"RTCTransport_0_1\",\"framesDropped\":0,\"jitter\":0,\"packetsLost\":0,\"packetsReceived\":0,\"bytesReceived\":0,\"firCount\":0,\"framesDecoded\":0,\"framesReceived\":0,\"headerBytesReceived\":0,\"jitterBufferDelay\":0,\"jitterBufferEmittedCount\":0,\"keyFramesDecoded\":0,\"nackCount\":0,\"pliCount\":0,\"totalDecodeTime\":0,\"totalInterFrameDelay\":0,\"totalSquaredInterFrameDelay\":0,\"trackId\":\"RTCMediaStreamTrack_receiver_4\"}"

DIFF URL:
https://build.webkit.org/#/builders/270/builds/2230/steps/18/logs/stdio
Comment 1 Hercules Hjalmarsson 2022-08-01 11:39:39 PDT
I was able to bisect this issue to 252871@main running command:

run-api-tests TestWebKitAPI.WebKit2.CrashGPUProcessWhileCapturingAndCalling
run-api-tests TestWebKitAPI.WebKit2.CrashGPUProcessWhileCapturing
Comment 2 Radar WebKit Bug Importer 2022-08-01 11:40:59 PDT
<rdar://problem/97926426>
Comment 3 Hercules Hjalmarsson 2022-08-01 14:45:35 PDT
Pull request: https://github.com/WebKit/WebKit/pull/2920
Comment 4 EWS 2022-08-02 10:53:09 PDT
Test gardening commit 253043@main (285b652fd7ea): <https://commits.webkit.org/253043@main>

Reviewed commits have been landed. Closing PR #2920 and removing active labels.