<?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>258332</bug_id>
          
          <creation_ts>2023-06-20 18:00:09 -0700</creation_ts>
          <short_desc>REGRESISON(265142@Main): [ Debug iOS, macOS x86_64] imported/w3c/web-platform-tests/webcodecs/videoFrame-construction.crossOriginSource.sub.html is a constant crash</short_desc>
          <delta_ts>2023-06-22 08:55:29 -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>WebKit Nightly Build</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=257749</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="Robert Jenner">jenner</reporter>
          <assigned_to name="youenn fablet">youennf</assigned_to>
          <cc>eric.carlson</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1962700</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2023-06-20 18:00:09 -0700</bug_when>
    <thetext>imported/w3c/web-platform-tests/webcodecs/videoFrame-construction.crossOriginSource.sub.html

is a constant crash on debug iOS, and debug macOS but only on Intel for Mac. 

HISTORY:
https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fwebcodecs%2FvideoFrame-construction.crossOriginSource.sub.html

CRASHLOG URL:
https://build.webkit.org/results/Apple-Ventura-Debug-WK2-Tests/265332@main%20(2488)/imported/w3c/web-platform-tests/webcodecs/videoFrame-construction.crossOriginSource.sub-crash-log.txt

CRASHLOG TEXT:
SHOULD NEVER BE REACHED
/Volumes/Data/worker/Apple-Ventura-Debug-Build/build/Source/WebCore/platform/VideoPixelFormat.cpp(49) : WebCore::VideoPixelFormat WebCore::convertVideoFramePixelFormat(uint32_t, bool)
1   0x2a8daa519 WTFCrash
2   0x25b1e928b WTFCrashWithInfo(int, char const*, char const*, int)
3   0x25fa2caee WebCore::convertVideoFramePixelFormat(unsigned int, bool)
4   0x25ddfe208 WebCore::WebCodecsVideoFrame::initializeFrameFromOtherFrame(WebCore::ScriptExecutionContext&amp;, WTF::Ref&lt;WebCore::VideoFrame, WTF::RawPtrTraits&lt;WebCore::VideoFrame&gt;&gt;&amp;&amp;, WebCore::WebCodecsVideoFrame::Init&amp;&amp;)
5   0x25de23586 WebCore::WebCodecsVideoFrame::create(WebCore::ScriptExecutionContext&amp;, std::__1::variant&lt;WTF::RefPtr&lt;WebCore::HTMLImageElement, WTF::RawPtrTraits&lt;WebCore::HTMLImageElement&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::HTMLImageElement&gt;&gt;, WTF::RefPtr&lt;WebCore::SVGImageElement, WTF::RawPtrTraits&lt;WebCore::SVGImageElement&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::SVGImageElement&gt;&gt;,</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1962701</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-06-20 18:01:07 -0700</bug_when>
    <thetext>&lt;rdar://problem/111073090&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1962705</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2023-06-20 18:12:19 -0700</bug_when>
    <thetext>I have marked an expectation for this test here:
https://commits.webkit.org/265340@main

I was also able to reproduce the crash at iOS 16 Debug ToT running the test as follows:

Run-webkit-tests --iOS-simulator imported/w3c/web-platform-tests/webcodecs/videoFrame-construction.crossOriginSource.sub.html

I verified that the same crash is seen on Intel Mac Debug, and iOS Debug. I have also bisected to a specific regression point. 265142@main appears to have broken this test, causing it to crash. 

I set my checkout to 265141@main, and re-ran the test at the same iOS16 Debug ToT build and the crash did not reproduce. I then updated the checkout to 265142@main, and re-ran the test again and the crashing returned.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1963029</commentid>
    <comment_count>3</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-06-22 04:49:03 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/15192</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1963057</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-06-22 08:55:27 -0700</bug_when>
    <thetext>Committed 265405@main (156e8c02d46b): &lt;https://commits.webkit.org/265405@main&gt;

Reviewed commits have been landed. Closing PR #15192 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>