<?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>240420</bug_id>
          
          <creation_ts>2022-05-14 09:02:39 -0700</creation_ts>
          <short_desc>REGRESSION(r294104): [GStreamer] getUserMedia broken</short_desc>
          <delta_ts>2022-05-16 05:50:16 -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>Platform</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philippe Normand">pnormand</reporter>
          <assigned_to name="Philippe Normand">pnormand</assigned_to>
          <cc>llepage</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1869006</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2022-05-14 09:02:39 -0700</bug_when>
    <thetext>With my C920 cam now the capturer hangs for 30 seconds and errors out:

0:00:00.819701495    64       0x3a0550 DEBUG               pipewire gstpipewiredeviceprovider.c:590:gst_pipewire_device_provider_start:&lt;pipewiredeviceprovider0&gt; starting provider
0:00:00.825504046    64       0x3a0550 DEBUG               pipewire gstpipewiredeviceprovider.c:617:gst_pipewire_device_provider_start:&lt;pipewiredeviceprovider0&gt; connected
0:00:00.829823625    64       0x3a0550 DEBUG               pipewire gstpipewiredeviceprovider.c:639:gst_pipewire_device_provider_start:&lt;pipewiredeviceprovider0&gt; started
0:00:02.856009033    64       0x3a0550 ERROR             video-info video-info.c:545:gst_video_info_from_caps: no format given
0:00:02.885254159    64       0x3a0550 ERROR             video-info video-info.c:545:gst_video_info_from_caps: no format given
0:00:02.885678713    64       0x3a0550 DEBUG            pipewiresrc gstpipewiresrc.c:1110:gst_pipewire_src_open:&lt;Video_0x7f6eac15fd00&gt; open
0:00:02.887812049    64       0x3a0550 DEBUG            pipewiresrc gstpipewiresrc.c:623:wait_started:&lt;Video_0x7f6eac15fd00&gt; waiting for started signal, state now unconnected
0:00:02.888080528    64       0x76c000 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:&lt;Video_0x7f6eac15fd00:src&gt; Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:02.888446598    64       0x76c000 DEBUG            pipewiresrc gstpipewiresrc.c:663:gst_pipewire_src_negotiate:&lt;Video_0x7f6eac15fd00&gt; caps of src: ANY
0:00:02.888653030    64       0x76c000 DEBUG            pipewiresrc gstpipewiresrc.c:673:gst_pipewire_src_negotiate:&lt;Video_0x7f6eac15fd00&gt; caps of peer: video/x-raw
0:00:02.888870282    64       0x76c000 DEBUG            pipewiresrc gstpipewiresrc.c:685:gst_pipewire_src_negotiate:&lt;Video_0x7f6eac15fd00&gt; have common caps: video/x-raw
0:00:02.889119171    64       0x76c000 DEBUG            pipewiresrc gstpipewiresrc.c:712:gst_pipewire_src_negotiate:&lt;Video_0x7f6eac15fd00&gt; connect capture with path 45
0:00:02.889351400    64       0x76c000 DEBUG            pipewiresrc gstpipewiresrc.c:520:on_state_changed: got stream state connecting
0:00:02.907772829    64       0x76c000 DEBUG            pipewiresrc gstpipewiresrc.c:728:gst_pipewire_src_negotiate:&lt;Video_0x7f6eac15fd00&gt; waiting for NEGOTIATED, now connecting
0:00:02.907923739    64       0x3a0550 DEBUG            pipewiresrc gstpipewiresrc.c:623:wait_started:&lt;Video_0x7f6eac15fd00&gt; waiting for started signal, state now connecting
0:00:02.908834481    64 0x7f6ca0001210 DEBUG            pipewiresrc gstpipewiresrc.c:520:on_state_changed: got stream state paused
0:00:02.909151680    64       0x3a0550 DEBUG            pipewiresrc gstpipewiresrc.c:623:wait_started:&lt;Video_0x7f6eac15fd00&gt; waiting for started signal, state now paused
0:00:02.909435676    64       0x76c000 DEBUG            pipewiresrc gstpipewiresrc.c:728:gst_pipewire_src_negotiate:&lt;Video_0x7f6eac15fd00&gt; waiting for NEGOTIATED, now paused
0:00:32.887943781    64       0x3a0550 DEBUG            pipewiresrc gstpipewiresrc.c:642:wait_started:&lt;Video_0x7f6eac15fd00&gt; got started signal: error
0:00:32.889527637    64       0x76eaa0 DEBUG            pipewiresrc gstpipewiresrc.c:623:wait_started:&lt;Video_0x7f6eac15fd00&gt; waiting for started signal, state now paused
0:00:32.907908786    64       0x76c000 DEBUG            pipewiresrc gstpipewiresrc.c:784:gst_pipewire_src_negotiate:&lt;Video_0x7f6eac15fd00&gt; connect error
0:00:32.908201928    64       0x76c000 WARN                 basesrc gstbasesrc.c:3127:gst_base_src_loop:&lt;Video_0x7f6eac15fd00&gt; error: Internal data stream error.
0:00:32.908360928    64       0x76c000 WARN                 basesrc gstbasesrc.c:3127:gst_base_src_loop:&lt;Video_0x7f6eac15fd00&gt; error: streaming stopped, reason not-negotiated (-4)
0:00:32.908618448    64       0x76c000 WARN                typefind gsttypefindelement.c:1012:gst_type_find_element_chain_do_typefinding:&lt;typefind&gt; error: Stream doesn&apos;t contain enough data.
0:00:32.908774100    64       0x76c000 WARN                typefind gsttypefindelement.c:1012:gst_type_find_element_chain_do_typefinding:&lt;typefind&gt; error: Can&apos;t typefind stream
0:00:33.029192929    64       0xb4a460 FIXME                default gstutils.c:4025:gst_pad_create_stream_id_internal:&lt;videosrc:src&gt; Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:33.033511329    64       0x3a0550 WARN               structure gststructure.c:2091:priv_gst_structure_append_to_gstring: No value transform to serialize field &apos;gerror&apos; of type &apos;GError&apos;
0:00:33.033631830    64       0x3a0550 ERROR           webkitcommon GStreamerCommon.cpp:441:operator():&lt;Video_capturer_pipeline0_0x7f6eac15fd00&gt; Got message: error message: 0xadad30, time 99:99:99.999999999, seq-num 139, element &apos;Video_0x7f6eac15fd00&apos;, GstMessageError, gerror=(GError)NULL, debug=(string)&quot;../libs/gst/base/gstbasesrc.c\(3127\):\ gst_base_src_loop\ \(\):\ /GstPipeline:Video_capturer_pipeline0_0x7f6eac15fd00/GstPipeWireSrc:Video_0x7f6eac15fd00:\012streaming\ stopped\,\ reason\ not-negotiated\ \(-4\)&quot;, details=(structure)&quot;details\,\ flow-return\=\(int\)-4\;&quot;;
0:00:33.033779975    64       0x3a0550 WARN               structure gststructure.c:2091:priv_gst_structure_append_to_gstring: No value transform to serialize field &apos;gerror&apos; of type &apos;GError&apos;
0:00:33.033902620    64       0x3a0550 ERROR           webkitcommon GStreamerCommon.cpp:441:operator():&lt;Video_capturer_pipeline0_0x7f6eac15fd00&gt; Got message: error message: 0xadadb0, time 99:99:99.999999999, seq-num 140, element &apos;typefind&apos;, GstMessageError, gerror=(GError)NULL, debug=(string)&quot;../plugins/elements/gsttypefindelement.c\(1012\):\ gst_type_find_element_chain_do_typefinding\ \(\):\ /GstPipeline:Video_capturer_pipeline0_0x7f6eac15fd00/GstBin:bin0/GstDecodebin3:decodebin3-0/GstParseBin:parsebin0/GstTypeFindElement:typefind:\012Can\&apos;t\ typefind\ stream&quot;;
0:01:02.889675312    64       0x76eaa0 DEBUG            pipewiresrc gstpipewiresrc.c:642:wait_started:&lt;Video_0x7f6eac15fd00&gt; got started signal: error
0:01:02.890140919    64       0x76eaa0 DEBUG            pipewiresrc gstpipewiresrc.c:623:wait_started:&lt;Video_0x7f6eac15fd00&gt; waiting for started signal, state now paused</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1869010</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2022-05-14 09:35:57 -0700</bug_when>
    <thetext>Also broke getDisplayMedia:

run-minibrowser --gtk https://webrtc.github.io/samples/src/content/getusermedia/getdisplaymedia/

(WebKitWebProcess:64): GStreamer-CRITICAL **: 09:33:58.571: gst_device_get_caps: assertion &apos;GST_IS_DEVICE (device)&apos; failed

(WebKitWebProcess:64): GStreamer-CRITICAL **: 09:33:58.571: gst_caps_foreach: assertion &apos;GST_IS_CAPS (caps)&apos; failed

** (WebKitWebProcess:64): WARNING **: 09:33:58.648: Unexpected object in singlequeue 0 (refcounting problem?)

(WebKitWebProcess:64): GStreamer-WARNING **: 09:33:58.730: free_priv_data: object finalizing but still has 1 parents (object:0x7f1dcc009900)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1869081</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2022-05-15 10:20:03 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/629</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1869201</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-05-16 05:49:37 -0700</bug_when>
    <thetext>Committed r294229 (250587@main): &lt;https://commits.webkit.org/250587@main&gt;

Reviewed commits have been landed. Closing PR #629 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1869202</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-05-16 05:50:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/93340074&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>