<?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>228759</bug_id>
          
          <creation_ts>2021-08-03 15:47:48 -0700</creation_ts>
          <short_desc>[GPUP] Test WebKit2.CrashGPUProcessAfterApplyingConstraints fails when Media in GPU Process is enabled</short_desc>
          <delta_ts>2021-08-16 04:41:58 -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>Media</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=228589</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=228941</see_also>
          <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="Peng Liu">peng.liu6</reporter>
          <assigned_to name="youenn fablet">youennf</assigned_to>
          <cc>eric.carlson</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>ggaren</cc>
    
    <cc>glenn</cc>
    
    <cc>hta</cc>
    
    <cc>jer.noble</cc>
    
    <cc>philipj</cc>
    
    <cc>pnormand</cc>
    
    <cc>sergio</cc>
    
    <cc>tommyw</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1781772</commentid>
    <comment_count>0</comment_count>
    <who name="Peng Liu">peng.liu6</who>
    <bug_when>2021-08-03 15:47:48 -0700</bug_when>
    <thetext>/Volumes/Data/webkit/OpenSource/Tools/TestWebKitAPI/Tests/WebKit/GetUserMedia.mm:82
Expected equality of these values:
  @&quot;PASS&quot;
    Which is: &quot;PASS&quot;
  [message body]
    Which is: &quot;FAIL checkConstraints, width is not 320 but 640&quot;

worker/0 TestWebKitAPI.WebKit2.CrashGPUProcessAfterApplyingConstraints Failed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1782010</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-08-04 13:09:24 -0700</bug_when>
    <thetext>&lt;rdar://problem/81529641&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1782461</commentid>
    <comment_count>2</comment_count>
      <attachid>435060</attachid>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-08-06 02:51:46 -0700</bug_when>
    <thetext>Created attachment 435060
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1782462</commentid>
    <comment_count>3</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-08-06 02:52:44 -0700</bug_when>
    <thetext>@Phil, is reverting this change breaking GStreamer backend?
How about if GStreamerVideoCaptureSource is wrapped around a RealtimeVideoSource?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1782471</commentid>
    <comment_count>4</comment_count>
      <attachid>435060</attachid>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-08-06 05:44:03 -0700</bug_when>
    <thetext>Comment on attachment 435060
Patch

Mac-wk2 debug error is unrelated</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1782472</commentid>
    <comment_count>5</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-08-06 05:45:17 -0700</bug_when>
    <thetext>@Eric, it seems https://bugs.webkit.org/show_bug.cgi?id=228795 did not fix the audio shared unit assert.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1782508</commentid>
    <comment_count>6</comment_count>
      <attachid>435060</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2021-08-06 09:39:06 -0700</bug_when>
    <thetext>Comment on attachment 435060
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1782537</commentid>
    <comment_count>7</comment_count>
      <attachid>435060</attachid>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-08-06 11:58:58 -0700</bug_when>
    <thetext>Comment on attachment 435060
Patch

Landing fix since it removes the regression.
@Philn, let me know if you need further help for GStreamer layer</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1782540</commentid>
    <comment_count>8</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2021-08-06 12:06:22 -0700</bug_when>
    <thetext>Committed r280732 (240319@main): &lt;https://commits.webkit.org/240319@main&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 435060.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1784455</commentid>
    <comment_count>9</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2021-08-16 04:10:38 -0700</bug_when>
    <thetext>(In reply to youenn fablet from comment #7)
&gt; Comment on attachment 435060 [details]
&gt; Patch
&gt; 
&gt; Landing fix since it removes the regression.
&gt; @Philn, let me know if you need further help for GStreamer layer

Maybe it fixed your regression but it introduced another one in WPE/GTK:
https://bugs.webkit.org/show_bug.cgi?id=228941

I think I&apos;ll have to add a ifdef there, I don´t see how else to fix this, the mock sources of Cocoa and GStreamer ports differ regarding constraints validation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1784461</commentid>
    <comment_count>10</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-08-16 04:30:47 -0700</bug_when>
    <thetext>(In reply to Philippe Normand from comment #9)
&gt; (In reply to youenn fablet from comment #7)
&gt; &gt; Comment on attachment 435060 [details]
&gt; &gt; Patch
&gt; &gt; 
&gt; &gt; Landing fix since it removes the regression.
&gt; &gt; @Philn, let me know if you need further help for GStreamer layer
&gt; 
&gt; Maybe it fixed your regression but it introduced another one in WPE/GTK:
&gt; https://bugs.webkit.org/show_bug.cgi?id=228941
&gt; 
&gt; I think I&apos;ll have to add a ifdef there, I don´t see how else to fix this,
&gt; the mock sources of Cocoa and GStreamer ports differ regarding constraints
&gt; validation.

Could you try updating GStreamer to wrap GStreamerVideoCaptureSource with a RealtimeVideoSource?
That is how it is used by other classes like AVVideoCaptureSource. Ideally RealtimeVideoCaptureSource should not be a RealtimeMediaSource, but I haven&apos;t refactored the code to do so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1784468</commentid>
    <comment_count>11</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2021-08-16 04:41:58 -0700</bug_when>
    <thetext>(In reply to youenn fablet from comment #10)
&gt; (In reply to Philippe Normand from comment #9)
&gt; &gt; (In reply to youenn fablet from comment #7)
&gt; &gt; &gt; Comment on attachment 435060 [details]
&gt; &gt; &gt; Patch
&gt; &gt; &gt; 
&gt; &gt; &gt; Landing fix since it removes the regression.
&gt; &gt; &gt; @Philn, let me know if you need further help for GStreamer layer
&gt; &gt; 
&gt; &gt; Maybe it fixed your regression but it introduced another one in WPE/GTK:
&gt; &gt; https://bugs.webkit.org/show_bug.cgi?id=228941
&gt; &gt; 
&gt; &gt; I think I&apos;ll have to add a ifdef there, I don´t see how else to fix this,
&gt; &gt; the mock sources of Cocoa and GStreamer ports differ regarding constraints
&gt; &gt; validation.
&gt; 
&gt; Could you try updating GStreamer to wrap GStreamerVideoCaptureSource with a
&gt; RealtimeVideoSource?

I tried already, didn&apos;t change anything :(</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>435060</attachid>
            <date>2021-08-06 02:51:46 -0700</date>
            <delta_ts>2021-08-06 12:06:23 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-228759-20210806115144.patch</filename>
            <type>text/plain</type>
            <size>3106</size>
            <attacher name="youenn fablet">youennf</att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