<?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>264933</bug_id>
          
          <creation_ts>2023-11-16 03:03:27 -0800</creation_ts>
          <short_desc>[GTK][WPE][Debug] ASSERT triggered by fast/mediastream/image-capture-take-photo.html</short_desc>
          <delta_ts>2024-01-30 03:30:20 -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>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <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="Philippe Normand">philn</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1993056</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2023-11-16 03:03:27 -0800</bug_when>
    <thetext>Thread 1 (Thread 0x7f82af7fe640 (LWP 97497)):
#0  WTFCrash() () at /app/webkit/Source/WTF/wtf/Assertions.cpp:333
#1  0x00007f8639836c91 in WTFCrashWithInfo(int, char const*, char const*, int) () at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Assertions.h:778
#2  0x00007f8641d34e53 in WebCore::encodeImage(cairo_surface_t*, WTF::String const&amp;, WTF::Vector&lt;unsigned char, 0, WTF::CrashOnOverflow, 16, WTF::FastMalloc&gt;*) (image=0x7f8318008e80, mimeType=..., output=0x7f82af7fd600) at /app/webkit/Source/WebCore/platform/graphics/cairo/ImageBufferUtilitiesCairo.cpp:63
#3  0x00007f8641d34ed1 in WebCore::encodeData(_cairo_surface*, WTF::String const&amp;, std::optional&lt;double&gt;) (image=0x7f8318008e80, mimeType=...) at /app/webkit/Source/WebCore/platform/graphics/cairo/ImageBufferUtilitiesCairo.cpp:71
#4  0x00007f8641c5b8c2 in WebCore::ImageBuffer::toData(WTF::Ref&lt;WebCore::ImageBuffer, WTF::RawPtrTraits&lt;WebCore::ImageBuffer&gt; &gt;, WTF::String const&amp;, std::optional&lt;double&gt;, WebCore::PreserveResolution) (source=..., mimeType=..., quality=std::optional&lt;double&gt; [no contained value], preserveResolution=WebCore::PreserveResolution::No) at /app/webkit/Source/WebCore/platform/graphics/ImageBuffer.cpp:425
#5  0x00007f8641fe4451 in operator()() (__closure=0x7f861e0a2368) at /app/webkit/Source/WebCore/platform/mock/MockRealtimeVideoSource.cpp:255
#6  0x00007f8641fe4597 in operator()() (__closure=0x7f861e0a2348) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/NativePromise.h:1359
#7  0x00007f8641fea152 in WTF::Detail::CallableWrapper&lt;WTF::invokeAsync&lt;WebCore::MockRealtimeVideoSource::takePhotoInternal(WebCore::PhotoSettings&amp;&amp;)::&lt;lambda()&gt; &gt;(SerialFunctionDispatcher&amp;, WebCore::MockRealtimeVideoSource::takePhotoInternal(WebCore::PhotoSettings&amp;&amp;)::&lt;lambda()&gt;&amp;&amp;, const Logger::LogSiteIdentifier&amp;)::&lt;lambda()&gt;, void&gt;::call(void) (this=0x7f861e0a2340) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:53
#8  0x00007f863a1b8c41 in WTF::Function&lt;void ()&gt;::operator()() const (this=0x7f82af7fd850) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:82
#9  0x00007f863d60e837 in WTF::RunLoop::performWork() (this=0x7f861e118300) at /app/webkit/Source/WTF/wtf/RunLoop.cpp:147
#10 0x00007f863d6c2972 in operator()(gpointer) const (__closure=0x0, userData=0x7f861e118300) at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:80
#11 0x00007f863d6c2996 in _FUN(gpointer) () at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:82
#12 0x00007f863d6c2905 in operator()(GSource*, GSourceFunc, gpointer) const (__closure=0x0, source=0x7f83180011d0, callback=0x7f863d6c2979 &lt;_FUN(gpointer)&gt;, userData=0x7f861e118300) at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:53
#13 0x00007f863d6c2953 in _FUN(GSource*, GSourceFunc, gpointer) () at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:56
#14 0x00007f862edbe527 in g_main_dispatch (context=0x7f8318000b90) at ../glib/gmain.c:3460
#15 g_main_context_dispatch (context=0x7f8318000b90) at ../glib/gmain.c:4200
#16 0x00007f862ee1b888 in g_main_context_iterate.constprop.0 (context=0x7f8318000b90, block=&lt;optimized out&gt;, dispatch=1, self=&lt;optimized out&gt;) at ../glib/gmain.c:4276
#17 0x00007f862edbdd7f in g_main_loop_run (loop=0x7f8318000fc0) at ../glib/gmain.c:4479
#18 0x00007f863d6c2fc6 in WTF::RunLoop::run() () at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:108
#19 0x00007f863d60e5cb in operator()() const (__closure=0x7f861e190dc8) at /app/webkit/Source/WTF/wtf/RunLoop.cpp:114
#20 0x00007f863d60fcd8 in WTF::Detail::CallableWrapper&lt;WTF::RunLoop::create(char const*, WTF::ThreadType, WTF::Thread::QOS)::&lt;lambda()&gt;, void&gt;::call(void) (this=0x7f861e190dc0) at /app/webkit/Source/WTF/wtf/Function.h:53
#21 0x00007f863a1b8c41 in WTF::Function&lt;void ()&gt;::operator()() const (this=0x7f82af7fdb50) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:82
#22 0x00007f863d61852d in WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) (newThreadContext=0x7f861e34be70) at /app/webkit/Source/WTF/wtf/Threading.cpp:258
#23 0x00007f863d6d0d87 in WTF::wtfThreadEntryPoint(void*) (context=0x7f861e34be70) at /app/webkit/Source/WTF/wtf/posix/ThreadingPOSIX.cpp:243
#24 0x00007f862e63b25a in start_thread (arg=&lt;optimized out&gt;) at pthread_create.c:442
#25 0x00007f862e6c3fc4 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993379</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Dyackhov">vitaly</who>
    <bug_when>2023-11-17 02:00:58 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/20658</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993834</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-11-20 01:35:15 -0800</bug_when>
    <thetext>Committed 270967@main (d6decd31fc74): &lt;https://commits.webkit.org/270967@main&gt;

Reviewed commits have been landed. Closing PR #20658 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2008869</commentid>
    <comment_count>3</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2024-01-30 03:29:53 -0800</bug_when>
    <thetext>Still flaky crash/fail.


Thread 1 (Thread 0x7f202cffd6c0 (LWP 133680)):
#0  WTFCrash() () at /app/webkit/Source/WTF/wtf/Assertions.cpp:333
#1  0x00007f23e1ebabf6 in WTFCrashWithInfo(int, char const*, char const*, int) () at /app/webkit/WebKitBuild/GTK/Debug/WTF/Headers/wtf/Assertions.h:778
#2  0x00007f23e8590116 in WebCore::MockRealtimeVideoSource::generatePhoto() (this=0x7f237a0bbc00) at /app/webkit/Source/WebCore/platform/mock/MockRealtimeVideoSource.cpp:608
#3  0x00007f23e858c4e1 in operator()() (__closure=0x7f23c24f20a8) at /app/webkit/Source/WebCore/platform/mock/MockRealtimeVideoSource.cpp:254
#4  0x00007f23e858c6f1 in operator()() (__closure=0x7f23c24f2088) at /app/webkit/WebKitBuild/GTK/Debug/WTF/Headers/wtf/NativePromise.h:1442
#5  0x00007f23e8592428 in WTF::Detail::CallableWrapper&lt;WTF::invokeAsync&lt;WebCore::MockRealtimeVideoSource::takePhotoInternal(WebCore::PhotoSettings&amp;&amp;)::&lt;lambda()&gt; &gt;(SerialFunctionDispatcher&amp;, WebCore::MockRealtimeVideoSource::takePhotoInternal(WebCore::PhotoSettings&amp;&amp;)::&lt;lambda()&gt;&amp;&amp;, const Logger::LogSiteIdentifier&amp;)::&lt;lambda()&gt;, void&gt;::call(void) (this=0x7f23c24f2080) at /app/webkit/WebKitBuild/GTK/Debug/WTF/Headers/wtf/Function.h:53
#6  0x00007f23d61bed45 in WTF::Function&lt;void ()&gt;::operator()() const (this=0x7f202cffc880) at /app/webkit/WebKitBuild/GTK/Debug/WTF/Headers/wtf/Function.h:82
#7  0x00007f23d78bb70b in WTF::RunLoop::performWork() (this=0x7f23c22e00c0) at /app/webkit/Source/WTF/wtf/RunLoop.cpp:147
#8  0x00007f23d797844e in operator()(gpointer) const (__closure=0x0, userData=0x7f23c22e00c0) at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:80
#9  0x00007f23d7978472 in _FUN(gpointer) () at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:82
#10 0x00007f23d79783e1 in operator()(GSource*, GSourceFunc, gpointer) const (__closure=0x0, source=0x7f20240208b0, callback=0x7f23d7978455 &lt;_FUN(gpointer)&gt;, userData=0x7f23c22e00c0) at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:53
#11 0x00007f23d797842f in _FUN(GSource*, GSourceFunc, gpointer) () at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:56
#12 0x00007f23d0917d36 in g_main_dispatch (context=0x7f2024000b70) at ../glib/gmain.c:3460
#13 g_main_context_dispatch (context=0x7f2024000b70) at ../glib/gmain.c:4200
#14 0x00007f23d09752b8 in g_main_context_iterate.isra.0 (context=0x7f2024000b70, block=block@entry=1, dispatch=dispatch@entry=1, self=&lt;optimized out&gt;) at ../glib/gmain.c:4276
#15 0x00007f23d09173ff in g_main_loop_run (loop=0x7f2024022cd0) at ../glib/gmain.c:4479
#16 0x00007f23d7978aa2 in WTF::RunLoop::run() () at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:108
#17 0x00007f23d78bb49f in operator()() const (__closure=0x7f23c272a688) at /app/webkit/Source/WTF/wtf/RunLoop.cpp:114
#18 0x00007f23d78bcbac in WTF::Detail::CallableWrapper&lt;WTF::RunLoop::create(char const*, WTF::ThreadType, WTF::Thread::QOS)::&lt;lambda()&gt;, void&gt;::call(void) (this=0x7f23c272a680) at /app/webkit/Source/WTF/wtf/Function.h:53
#19 0x00007f23d61bed45 in WTF::Function&lt;void ()&gt;::operator()() const (this=0x7f202cffcb80) at /app/webkit/WebKitBuild/GTK/Debug/WTF/Headers/wtf/Function.h:82
#20 0x00007f23d78c7d59 in WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) (newThreadContext=0x7f23c22b6110) at /app/webkit/Source/WTF/wtf/Threading.cpp:258
#21 0x00007f23d79866af in WTF::wtfThreadEntryPoint(void*) (context=0x7f23c22b6110) at /app/webkit/Source/WTF/wtf/posix/ThreadingPOSIX.cpp:247
#22 0x00007f23d03b8e39 in start_thread (arg=&lt;optimized out&gt;) at pthread_create.c:444
#23 0x00007f23d04408c4 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>