Bug 232381

Summary: iOS 15.1 WebContent crash if h264 video is negotiated
Product: WebKit Reporter: Darius <darius.chris.k>
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Major CC: gsnedders, mitch, youennf
Priority: P2    
Version: Safari 15   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Crash report
none
Crash Report from iPad Air 4th Gen none

Description Darius 2021-10-27 08:33:15 PDT
Created attachment 442595 [details]
Crash report

The crash causes the page to refresh, and occurs just after ICE connection state becomes 'connected'.
It did not occur in iOS 15
Comment 1 Mitch Talmadge 2021-10-27 13:37:46 PDT
Created attachment 442628 [details]
Crash Report from iPad Air 4th Gen

I am having the exact same problem, same segfault at the same location on an iPad Air 4th Gen in Safari or Chrome. 

My webapp was working on iOS 14.x but after upgrading to 15.1 it crashes some time during WebRTC negotiation. I have noticed this only happens when using the front camera; the back camera does not have this problem. 

I have found that turning off the experimental flag "WebRTC Platform Codecs in GPU Process" in the Safari settings makes the app work again.
Comment 2 Mitch Talmadge 2021-10-27 14:00:57 PDT
I have created an example that causes this crash.

https://jsfiddle.net/o19c0wfe/4/
Comment 3 Mitch Talmadge 2021-10-27 15:42:24 PDT
If I force VP8 to be used for WebRTC as in the example below, the crash no longer happens.

https://jsfiddle.net/MitchTalmadge/crpfvnab/21/
Comment 4 Sam Sneddon [:gsnedders] 2021-10-27 22:06:28 PDT

*** This bug has been marked as a duplicate of bug 231505 ***