<?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>269614</bug_id>
          
          <creation_ts>2024-02-16 15:06:17 -0800</creation_ts>
          <short_desc>REGRESSION: [GTK WPE Win] ASSERTION FAILED: m_encodedDataStatus == EncodedDataStatus::SizeAvailable for some image tests</short_desc>
          <delta_ts>2024-02-17 15:57:15 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Images</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>269626</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fujii Hironori">fujii</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>sabouhallawa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2014665</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-02-16 15:06:17 -0800</bug_when>
    <thetext>History:
  https://results.webkit.org/?suite=layout-tests&amp;test=fast%2Fcanvas%2Fcanvas-drawImage-detached-leak.html&amp;style=debug&amp;platform=GTK&amp;platform=WPE&amp;platform=wincairo

This seems like the first failure.

  Buildbot: builder GTK-Linux-64-bit-Debug-Tests build 12421 : 274762@main
  https://build.webkit.org/#/builders/63/builds/12421

stderr:

ASSERTION FAILED: m_encodedDataStatus == EncodedDataStatus::SizeAvailable
/app/webkit/Source/WebCore/platform/image-decoders/ScalableImageDecoder.h(91) : virtual void WebCore::ScalableImageDecoder::setData(const WebCore::FragmentedSharedBuffer&amp;, bool)
1   0x7ff2e2ad7a84 WTFCrash
2   0x7ff2edb22cb6 WTF::isIntegralOrPointerType()
3   0x7ff2ef9179df WebCore::ScalableImageDecoder::setData(WebCore::FragmentedSharedBuffer const&amp;, bool)
4   0x7ff2ef921f4d WebCore::GIFImageDecoder::setData(WebCore::FragmentedSharedBuffer const&amp;, bool)
5   0x7ff2f3e96e70 WebCore::BitmapImageSource::setData(WebCore::FragmentedSharedBuffer*, bool)
6   0x7ff2f3e96f35 WebCore::BitmapImageSource::resetData()
7   0x7ff2f3e96966 WebCore::BitmapImageSource::destroyDecodedData(bool)
8   0x7ff2f3e957ca WebCore::BitmapImage::destroyDecodedData(bool)
9   0x7ff2f397850b operator()
10  0x7ff2f3987e64 call
11  0x7ff2f3989923 WTF::Function&lt;void (WebCore::CachedResource&amp;)&gt;::operator()(WebCore::CachedResource&amp;) const
12  0x7ff2f3978169 WebCore::MemoryCache::forEachResource(WTF::Function&lt;void (WebCore::CachedResource&amp;)&gt; const&amp;)
13  0x7ff2f39785d0 WebCore::MemoryCache::destroyDecodedDataForAllImages()
14  0x7ff279995919 WebCore::Internals::destroyDecodedDataForAllImages()
15  0x7ff279ab5e65 operator()
16  0x7ff279b2f6e5 toJS&lt;WebCore::IDLUndefined, WebCore::jsInternalsPrototypeFunction_destroyDecodedDataForAllImagesBody(JSC::JSGlobalObject*, JSC::CallFrame*, IDLOperation&lt;JSInternals&gt;::ClassParameter)::&lt;lambda()&gt; &gt;
17  0x7ff279ab5f63 jsInternalsPrototypeFunction_destroyDecodedDataForAllImagesBody
18  0x7ff279b2f993 call&lt;WebCore::jsInternalsPrototypeFunction_destroyDecodedDataForAllImagesBody&gt;
19  0x7ff279ab5fcd jsInternalsPrototypeFunction_destroyDecodedDataForAllImages
20  0x7ff28ca08038 ???
WebKitWebProcess terminated (pid 50227) for reason: crash</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2014669</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-02-16 15:11:22 -0800</bug_when>
    <thetext>274746@main (bug#265363) was touching ScalableImageDecoder recently?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2014864</commentid>
    <comment_count>2</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-02-17 15:57:15 -0800</bug_when>
    <thetext>274896@main reverted it.

*** This bug has been marked as a duplicate of bug 269626 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>