Bug 221192 - "A MediaStreamTrack ended due to a capture failure" occurs in 30 seconds after peer connection establishes
Summary: "A MediaStreamTrack ended due to a capture failure" occurs in 30 seconds afte...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari 14
Hardware: Mac (Intel) Unspecified
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-01-31 17:18 PST by Vicky Cen
Modified: 2022-01-05 07:11 PST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vicky Cen 2021-01-31 17:18:12 PST
"A MediaStreamTrack ended due to a capture failure" error occurs on Safari in around 30 seconds after peer connection establishes. This error can be observed most likely in Safari on BigSur 11.1 and 11.0.1, especially when multiple callers in a call. When this error occurs, safari caller will see self video tile as black, but remote callers can still see and hear safari caller well. But it does not on every device. If on 1 device it happens, it's likely to happen every time, and if on another device it does not happen, it's not likely to happen on that device. 

Seems it's same issue with more details has been reported in this thread: https://github.com/twilio/twilio-video.js/issues/1281
Comment 1 youenn fablet 2021-02-01 00:01:09 PST
Hi Vicky,
Can you reproduce with STP?
If you can reproduce it, would you be able to take a sysdiagnose and send it to me (youenn@apple.com)?

(In reply to Vicky Cen from comment #0)
> "A MediaStreamTrack ended due to a capture failure" error occurs on Safari
> in around 30 seconds after peer connection establishes. This error can be
> observed most likely in Safari on BigSur 11.1 and 11.0.1, especially when
> multiple callers in a call. When this error occurs, safari caller will see
> self video tile as black, but remote callers can still see and hear safari
> caller well.

If a local capture track gets ended, it seems strange that remote callers could still see the corresponding remote track.

> Seems it's same issue with more details has been reported in this thread:
> https://github.com/twilio/twilio-video.js/issues/1281

According the thread, this seems fixed in iOS 14.2
Comment 2 Vicky Cen 2021-02-02 21:50:17 PST
Hi Youenn,

I can reproduce with STP and sent you the sysdiagnose. 

However, it seems on STP when the error shows, safari caller will get black self video tile and remote caller can't see the track, but still can hear. (sysdiagnose attached and send to your email)

On Safari 14.0.2, I did see when the error shows, safari caller will get black self video tile but remote caller can both see and hear the safari user.
Comment 3 youenn fablet 2021-02-03 00:48:19 PST
Looking at sysdiagnose, some H264 encoding failures happen before capture starts failing.
Comment 4 Radar WebKit Bug Importer 2021-02-03 00:49:05 PST
<rdar://problem/73920852>
Comment 5 youenn fablet 2021-02-08 00:55:12 PST
*** Bug 220998 has been marked as a duplicate of this bug. ***
Comment 6 youenn fablet 2021-10-19 00:35:27 PDT
Vicky, can you still reproduce this issue on recent Safaris?
Comment 7 Vicky Cen 2021-10-24 21:59:11 PDT
Hi youenn, my colleagues and I have very limited number of testing on the latest Safari (Safari 15). We haven't seen this issue on Safari 15 so far.
Comment 8 James Hall 2022-01-05 07:11:39 PST
Seeing it on Safari 15.(In reply to Vicky Cen from comment #7)
> Hi youenn, my colleagues and I have very limited number of testing on the
> latest Safari (Safari 15). We haven't seen this issue on Safari 15 so far.