<?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>286859</bug_id>
          
          <creation_ts>2025-02-01 09:02:54 -0800</creation_ts>
          <short_desc>[WPE] REGRESSION(289282@main) webrtc/captureCanvas-webrtc-with-video-scaling-adaptation.html is a constant crash</short_desc>
          <delta_ts>2026-01-17 03:24:41 -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>WPE WebKit</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>305356</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="Claudio Saavedra">csaavedra</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>lmoura</cc>
    
    <cc>philn</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2091189</commentid>
    <comment_count>0</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2025-02-01 09:02:54 -0800</bug_when>
    <thetext>Prior to 289282@main the test was a constant failure, but starting on that change the test started crashing in WPE consistently.

This is a sample crash log I got from just running it a few times today:

#0  0x00007f68405068a8 in GrResourceCache::notifyARefCntReachedZero(GrGpuResource*, GrIORef&lt;GrGpuResource&gt;::LastRemovedRef) [clone .cold] () from /app/webkit/WebKitBuild/WPE/Release/lib/libWPEWebKit-2.0.so.2
[Current thread is 1 (Thread 0x7f682df81900 (LWP 49))]
(gdb) back
#0  0x00007f68405068a8 in GrResourceCache::notifyARefCntReachedZero(GrGpuResource*, GrIORef&lt;GrGpuResource&gt;::LastRemovedRef) [clone .cold] () at /app/webkit/WebKitBuild/WPE/Release/lib/libWPEWebKit-2.0.so.2
#1  0x00007f684050f137 in GrTextureProxy::~GrTextureProxy() () at /app/webkit/WebKitBuild/WPE/Release/lib/libWPEWebKit-2.0.so.2
#2  0x00007f684050fa41 in virtual thunk to GrTextureRenderTargetProxy::~GrTextureRenderTargetProxy() () at /app/webkit/WebKitBuild/WPE/Release/lib/libWPEWebKit-2.0.so.2
#3  0x00007f6840527c3d in skgpu::ganesh::SurfaceFillContext::~SurfaceFillContext() () at /app/webkit/WebKitBuild/WPE/Release/lib/libWPEWebKit-2.0.so.2
#4  0x00007f684052073c in skgpu::ganesh::SurfaceContext::readPixels(GrDirectContext*, GrPixmap, SkIPoint) () at /app/webkit/WebKitBuild/WPE/Release/lib/libWPEWebKit-2.0.so.2
#5  0x00007f68404b5e8b in skgpu::ganesh::Device::onReadPixels(SkPixmap const&amp;, int, int) () at /app/webkit/WebKitBuild/WPE/Release/lib/libWPEWebKit-2.0.so.2
#6  0x00007f683f8c1df2 in WebCore::ImageBufferSkiaAcceleratedBackend::getPixelBuffer(WebCore::IntRect const&amp;, WebCore::PixelBuffer&amp;) () at /app/webkit/WebKitBuild/WPE/Release/lib/libWPEWebKit-2.0.so.2
#7  0x00007f683f734001 in WebCore::ImageBuffer::getPixelBuffer(WebCore::PixelBufferFormat const&amp;, WebCore::IntRect const&amp;, WebCore::ImageBufferAllocator const&amp;) const ()
    at /app/webkit/WebKitBuild/WPE/Release/lib/libWPEWebKit-2.0.so.2
#8  0x00007f683ed51b94 in WebCore::HTMLCanvasElement::toVideoFrame() () at /app/webkit/WebKitBuild/WPE/Release/lib/libWPEWebKit-2.0.so.2
#9  0x00007f683df13d35 in WebCore::CanvasCaptureMediaStreamTrack::Source::captureCanvas() () at /app/webkit/WebKitBuild/WPE/Release/lib/libWPEWebKit-2.0.so.2
#10 0x00007f683df0a5b2 in WTF::Detail::CallableWrapper&lt;WebCore::Timer::Timer&lt;WebCore::CanvasCaptureMediaStreamTrack::Source, WebCore::CanvasCaptureMediaStreamTrack::Source&gt;(WebCore::CanvasCaptureMediaStreamTrack::Source&amp;, void (WebCore::CanvasCaptureMediaStreamTrack::Source::*)())::{lambda()#1}, void&gt;::call() () at /app/webkit/WebKitBuild/WPE/Release/lib/libWPEWebKit-2.0.so.2
#11 0x00007f683f615feb in WebCore::ThreadTimers::sharedTimerFiredInternal() () at /app/webkit/WebKitBuild/WPE/Release/lib/libWPEWebKit-2.0.so.2
#12 0x00007f683c6a9a25 in WTF::RunLoop::TimerBase::TimerBase(WTF::Ref&lt;WTF::RunLoop, WTF::RawPtrTraits&lt;WTF::RunLoop&gt;, WTF::DefaultRefDerefTraits&lt;WTF::RunLoop&gt; &gt;&amp;&amp;)::{lambda(void*)#1}::_FUN(void*) ()
    at /app/webkit/WebKitBuild/WPE/Release/lib/libWPEWebKit-2.0.so.2
#13 0x00007f683c6aa47f in WTF::RunLoop::{lambda(_GSource*, int (*)(void*), void*)#1}::_FUN(_GSource*, int (*)(void*), void*) () at /app/webkit/WebKitBuild/WPE/Release/lib/libWPEWebKit-2.0.so.2
#14 0x00007f6834c8dd36 in g_main_dispatch (context=0x55b0dd4ccc20) at ../glib/gmain.c:3460
#15 g_main_context_dispatch (context=0x55b0dd4ccc20) at ../glib/gmain.c:4200
#16 0x00007f6834ceb2b8 in g_main_context_iterate.isra.0 (context=0x55b0dd4ccc20, block=block@entry=1, dispatch=dispatch@entry=1, self=&lt;optimized out&gt;) at ../glib/gmain.c:4276
#17 0x00007f6834c8d3ff in g_main_loop_run (loop=0x55b0dd4ccd60) at ../glib/gmain.c:4479
#18 0x00007f683c6aa5b0 in WTF::RunLoop::run() () at /app/webkit/WebKitBuild/WPE/Release/lib/libWPEWebKit-2.0.so.2
#19 0x00007f683a7aea3f in int WebKit::AuxiliaryProcessMain&lt;WebKit::WebProcessMainWPE&gt;(int, char**) () at /app/webkit/WebKitBuild/WPE/Release/lib/libWPEWebKit-2.0.so.2
#20 0x00007f683443b08a in __libc_start_call_main (main=main@entry=0x55b0ae2538d0 &lt;main&gt;, argc=argc@entry=5, argv=argv@entry=0x7ffc5bafc108) at ../sysdeps/nptl/libc_start_call_main.h:58
#21 0x00007f683443b14b in __libc_start_main_impl (main=0x55b0ae2538d0 &lt;main&gt;, argc=5, argv=0x7ffc5bafc108, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7ffc5bafc0f8)
    at ../csu/libc-start.c:360
#22 0x000055b0ae253805 in _start () at ../sysdeps/x86_64/start.S:115</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2091194</commentid>
    <comment_count>1</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2025-02-01 09:56:46 -0800</bug_when>
    <thetext>Gardened in https://commits.webkit.org/289668@main</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2091334</commentid>
    <comment_count>2</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2025-02-02 12:21:50 -0800</bug_when>
    <thetext>http/wpt/mediarecorder/MediaRecorder-webm-AV-audio-video-dataavailable.html is also crashing with the same stacktrace (in Release only from what I can see).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2164811</commentid>
    <comment_count>3</comment_count>
    <who name="Claudio Saavedra">csaavedra</who>
    <bug_when>2025-12-10 08:17:12 -0800</bug_when>
    <thetext>This started failing with text failure around 303624@main. The crash still happens occasionally, so updating the expectation to this below:

# This also crashes with that skia issue, but since 303624@main it started having a text failure:
webkit.org/b/286859 webrtc/captureCanvas-webrtc-with-video-scaling-adaptation.html [ Text Crash Pass ]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2171321</commentid>
    <comment_count>4</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2026-01-12 19:47:41 -0800</bug_when>
    <thetext>webrtc/video-vp8-videorange.html was assigned to this bug, but it&apos;s not crashing anymore since late December 2025. I&apos;ve created bug305356 to track its current text failure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2172727</commentid>
    <comment_count>5</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2026-01-17 03:24:41 -0800</bug_when>
    <thetext>

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

    </bug>

</bugzilla>