<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>220998</bug_id>
          
          <creation_ts>2021-01-26 11:31:55 -0800</creation_ts>
          <short_desc>Video MediaStreamTrack capture randomly fails and ends after a few minutes</short_desc>
          <delta_ts>2021-05-24 08:56:50 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebRTC</component>
          <version>Safari 14</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 11</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>btham</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>btham</cc>
    
    <cc>daginge</cc>
    
    <cc>mlopez</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1722614</commentid>
    <comment_count>0</comment_count>
    <who name="">btham</who>
    <bug_when>2021-01-26 11:31:55 -0800</bug_when>
    <thetext>Sometimes, when Safari is sending video via WebRTC, after a few minutes the following error occurs: &quot;A MediaStreamTrack ended due to a capture failure.&quot;

This can be a problem for video conferencing web apps, since the camera device stops being captured in the middle of a meeting.

I was able to reproduce this a few times yesterday, but it seems to happen randomly. It looks like it&apos;s a common issue with Safari based on what I&apos;ve read online: https://developer.apple.com/forums/thread/667453.

Here is info about my machine, for reference:
- MacBook Pro (13-inch, 2017)
- macOS Big Sur (11.0.1)

Let me know if you need additional information. Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1722618</commentid>
    <comment_count>1</comment_count>
    <who name="">btham</who>
    <bug_when>2021-01-26 11:36:09 -0800</bug_when>
    <thetext>Sorry, forgot to include my Safari version: 14.0.1 (16610.2.11.51.8)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1722938</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-01-27 06:21:04 -0800</bug_when>
    <thetext>Thanks for the report.
I think this is fixed in https://bugs.webkit.org/show_bug.cgi?id=218389.
Can you reproduce in Safari Tech Preview on the same machine?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1722941</commentid>
    <comment_count>3</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-01-27 06:22:29 -0800</bug_when>
    <thetext>Marking as duplicate. Please reopen if you still see the issue with a more recent Safari, either STP except 118 or Safari in most recent MacOS 11.2 beta.

*** This bug has been marked as a duplicate of bug 218389 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1724912</commentid>
    <comment_count>4</comment_count>
    <who name="">btham</who>
    <bug_when>2021-02-02 15:08:08 -0800</bug_when>
    <thetext>Hi, I just tested with Safari Technology Preview (Release 119). I am still encountering the same problem with the same error message: &quot;A MediaStreamTrack ended due to a capture failure.&quot;

I&apos;m a Webex developer, and I&apos;ve found a way to reproduce this consistently. Let me know if there is anything I can do to help narrow down the root cause.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1724913</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-02-02 15:09:15 -0800</bug_when>
    <thetext>&lt;rdar://problem/73901050&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1726551</commentid>
    <comment_count>6</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-02-08 00:55:12 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 221192 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1726712</commentid>
    <comment_count>7</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-02-08 11:13:16 -0800</bug_when>
    <thetext>Reopening as logs do not seem to validate the dupe I made.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1727504</commentid>
    <comment_count>8</comment_count>
    <who name="Dag-Inge Aas">daginge</who>
    <bug_when>2021-02-10 04:22:30 -0800</bug_when>
    <thetext>We think we&apos;re seeing this in Confrere as well. Could you share the exact reproduction steps btham?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1727507</commentid>
    <comment_count>9</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-02-10 04:48:17 -0800</bug_when>
    <thetext>FWIW, we increased the timer to 30 seconds.
After 30 seconds without any frame, we end the track, which allows the application to take action on the ended event to call getUserMedia again for instance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1753205</commentid>
    <comment_count>10</comment_count>
    <who name="matías lópez">mlopez</who>
    <bug_when>2021-04-22 09:57:16 -0700</bug_when>
    <thetext>This was fixed or not yet? We can&apos;t find a way good to patch this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1761910</commentid>
    <comment_count>11</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-05-20 05:26:10 -0700</bug_when>
    <thetext>btham@cisco.com, if you still have repro steps, can you share them?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1763150</commentid>
    <comment_count>12</comment_count>
    <who name="">btham</who>
    <bug_when>2021-05-24 08:56:50 -0700</bug_when>
    <thetext>Hey Youenn, as we discussed 1:1 via email, my issue seems to have been fixed as of STP 120. Unfortunately, I do not have specific reproduction steps, since for me the issue seems to have been happening randomly. Not sure the issue other people are reporting here are the same as mine, however.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>