Crash when presenting Camera via Web View in iOS 18.2 Beta - WebCore::AVVideoCaptureSource::create

We are experiencing thousands of crashes in our application when attempting to present the camera through a Web View. The app crashes during this process, and the crash logs point to

  • WebCore::AVVideoCaptureSource::create
  • WebCore::RealtimeMediaSourceCenter::getUserMediaDevices.

This issue has only been observed in iOS 18.2 beta versions (beta 1 - 22C5109p, beta 2 - 22C5125e, beta 3 - 22C5131e).

In iOS versions below 18.2, the functionality works and we haven't identified any correlation with specific device models. The problem seems to stem from a WebCore framework introduced in these beta releases 18.2.

We kindly request a review and fix for this issue in upcoming beta releases to restore functionality. Let us know if there are any workarounds or adjustments we can implement in the interim.

Thank you for your attention to this matter.

Can you file a bug in bugs.webkit.org and provide the crash log?

Hi @youennfablet thank you for getting back to us. We filed a feedback via Feedback Assistance FB15877212 and attached the Thread Stack Trace there.

Crash when presenting Camera via Web View in iOS 18.2 Beta - WebCore::AVVideoCaptureSource::create
 
 
Q