<?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>267537</bug_id>
          
          <creation_ts>2024-01-15 05:03:37 -0800</creation_ts>
          <short_desc>REGRESSION(272806@main): [Debug][GStreamer] ASSERTION FAILED: The string being removed is an atom in the string table of an other thread! in ~_WebKitVideoEncoderPrivate()</short_desc>
          <delta_ts>2024-01-15 11:18:14 -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>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>
          
          
          <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="Vitaly Dyackhov">vitaly</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2005057</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Dyackhov">vitaly</who>
    <bug_when>2024-01-15 05:03:37 -0800</bug_when>
    <thetext>Crashing tests:
imported/w3c/web-platform-tests/webcodecs/video-encoder-h264.https.any.html?baseline
imported/w3c/web-platform-tests/webcodecs/video-encoder-h264.https.any.worker.html?high
imported/w3c/web-platform-tests/webcodecs/video-encoder.https.any.html
imported/w3c/web-platform-tests/webcodecs/videoFrame-drawImage.any.html

Stack trace:
#0  WTFCrash() () at /app/webkit/Source/WTF/wtf/Assertions.cpp:333
#1  0x00007fb801a0aa3d in WTF::AtomStringImpl::remove(WTF::AtomStringImpl*) (string=0x7fb7e1557bc0) at /app/webkit/Source/WTF/wtf/text/AtomStringImpl.cpp:479
#2  0x00007fb801a19da6 in WTF::StringImpl::~StringImpl() (this=0x7fb7e1557bc0, __in_chrg=&lt;optimized out&gt;) at /app/webkit/Source/WTF/wtf/text/StringImpl.cpp:124
#3  0x00007fb801a19f94 in WTF::StringImpl::destroy(WTF::StringImpl*) (stringImpl=0x7fb7e1557bc0) at /app/webkit/Source/WTF/wtf/text/StringImpl.cpp:155
#4  0x00007fb7fdaf5b6a in WTF::StringImpl::deref() (this=0x7fb7e1557bc0) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/text/StringImpl.h:1158
#5  0x00007fb7fdaf7a53 in WTF::DefaultRefDerefTraits&lt;WTF::StringImpl&gt;::derefIfNotNull(WTF::StringImpl*) (ptr=0x7fb7e1557bc0) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/RefPtr.h:43
#6  0x00007fb7fdaf6698 in WTF::RefPtr&lt;WTF::StringImpl, WTF::RawPtrTraits&lt;WTF::StringImpl&gt;, WTF::DefaultRefDerefTraits&lt;WTF::StringImpl&gt; &gt;::~RefPtr() (this=0x7fb530010c88, __in_chrg=&lt;optimized out&gt;) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/RefPtr.h:75
#7  0x00007fb7fdaf5b90 in WTF::String::~String() (this=0x7fb530010c88, __in_chrg=&lt;optimized out&gt;) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/text/WTFString.h:89
#8  0x00007fb8062b1bd2 in _WebKitVideoEncoderPrivate::~_WebKitVideoEncoderPrivate() (this=0x7fb530010c30, __in_chrg=&lt;optimized out&gt;) at /app/webkit/Source/WebCore/platform/gstreamer/VideoEncoderPrivateGStreamer.cpp:195
#9  0x00007fb80629cdc1 in webkit_video_encoder_finalize(GObject*) (object=0x7fb530010cb0) at /app/webkit/Source/WebCore/platform/gstreamer/VideoEncoderPrivateGStreamer.cpp:212
#10 0x00007fb7f19d91ff in g_object_unref (_object=0x7fb530010cb0) at ../gobject/gobject.c:3938
#11 g_object_unref (_object=0x7fb530010cb0) at ../gobject/gobject.c:3802
#12 0x00007fb806189a4c in WTF::derefGPtr&lt;_GstElement&gt;(_GstElement*) (ptr=0x7fb530010cb0 [GstElement|webkitvideoencoder21]) at /app/webkit/Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.cpp:98
#13 0x00007fb803d0a86e in WTF::GRefPtr&lt;_GstElement&gt;::~GRefPtr() (this=0x7fb7e1656a08, __in_chrg=&lt;optimized out&gt;) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/glib/GRefPtr.h:82
#14 0x00007fb8062bcf87 in WebCore::GStreamerElementHarness::~GStreamerElementHarness() (this=0x7fb7e1656a00, __in_chrg=&lt;optimized out&gt;) at /app/webkit/Source/WebCore/platform/gstreamer/GStreamerElementHarness.cpp:176
#15 0x00007fb805e68ab9 in WTF::ThreadSafeRefCounted&lt;WebCore::GStreamerElementHarness, (WTF::DestructionThread)0&gt;::deref() const::{lambda()#1}::operator()() const (__closure=0x7ffd4868fb00) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/ThreadSafeRefCounted.h:115
#16 0x00007fb805e68b0b in WTF::ThreadSafeRefCounted&lt;WebCore::GStreamerElementHarness, (WTF::DestructionThread)0&gt;::deref() const (this=0x7fb7e1656a00) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/ThreadSafeRefCounted.h:127
#17 0x00007fb805e68a22 in WTF::DefaultRefDerefTraits&lt;WebCore::GStreamerElementHarness&gt;::derefIfNotNull(WebCore::GStreamerElementHarness*) (ptr=0x7fb7e1656a00) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/RefPtr.h:43
#18 0x00007fb805e63922 in WTF::RefPtr&lt;WebCore::GStreamerElementHarness, WTF::RawPtrTraits&lt;WebCore::GStreamerElementHarness&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::GStreamerElementHarness&gt; &gt;::~RefPtr() (this=0x7fb7e16f2bc0, __in_chrg=&lt;optimized out&gt;) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/RefPtr.h:75
#19 0x00007fb8061dfcdd in WebCore::GStreamerInternalVideoEncoder::~GStreamerInternalVideoEncoder() (this=0x7fb7e16f2b80, __in_chrg=&lt;optimized out&gt;) at /app/webkit/Source/WebCore/platform/graphics/gstreamer/VideoEncoderGStreamer.cpp:254
#20 0x00007fb806213b36 in WTF::ThreadSafeWeakPtrControlBlock::strongDeref&lt;WebCore::GStreamerInternalVideoEncoder, (WTF::DestructionThread)1&gt;() const::{lambda()#1}::operator()() const (__closure=0x7fb7e16eb528) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/ThreadSafeWeakPtr.h:101
#21 0x00007fb80621f81a in WTF::Detail::CallableWrapper&lt;WTF::ThreadSafeWeakPtrControlBlock::strongDeref&lt;WebCore::GStreamerInternalVideoEncoder, (WTF::DestructionThread)1&gt;() const::{lambda()#1}, void&gt;::call() (this=0x7fb7e16eb520) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:53
#22 0x00007fb7fe4f494d in WTF::Function&lt;void ()&gt;::operator()() const (this=0x7ffd4868fc80) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:82
#23 0x00007fb801993e2d in WTF::RunLoop::performWork() (this=0x7fb7e10180c0) at /app/webkit/Source/WTF/wtf/RunLoop.cpp:147
#24 0x00007fb801a4e7aa in operator()(gpointer) const (__closure=0x0, userData=0x7fb7e10180c0) at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:80
#25 0x00007fb801a4e7ce in _FUN(gpointer) () at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:82
#26 0x00007fb801a4e73d in operator()(GSource*, GSourceFunc, gpointer) const (__closure=0x0, source=0x55db49490280, callback=0x7fb801a4e7b1 &lt;_FUN(gpointer)&gt;, userData=0x7fb7e10180c0) at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:53
#27 0x00007fb801a4e78b in _FUN(GSource*, GSourceFunc, gpointer) () at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:56
#28 0x00007fb7f2f16d36 in g_main_dispatch (context=0x55db49490120) at ../glib/gmain.c:3460
#29 g_main_context_dispatch (context=0x55db49490120) at ../glib/gmain.c:4200
#30 0x00007fb7f2f742b8 in g_main_context_iterate.isra.0 (context=0x55db49490120, block=block@entry=1, dispatch=dispatch@entry=1, self=&lt;optimized out&gt;) at ../glib/gmain.c:4276
#31 0x00007fb7f2f163ff in g_main_loop_run (loop=0x55db49490260) at ../glib/gmain.c:4479
#32 0x00007fb801a4edfe in WTF::RunLoop::run() () at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:108
#33 0x00007fb7ff4d0683 in WebKit::AuxiliaryProcessMainBase&lt;WebKit::WebProcess, true&gt;::run(int, char**) (this=0x7ffd4868ff50, argc=4, argv=0x7ffd48690118) at /app/webkit/Source/WebKit/Shared/AuxiliaryProcessMain.h:72
#34 0x00007fb7ff4cd4eb in WebKit::AuxiliaryProcessMain&lt;WebKit::WebProcessMainWPE&gt;(int, char**) (argc=4, argv=0x7ffd48690118) at /app/webkit/Source/WebKit/Shared/AuxiliaryProcessMain.h:98
#35 0x00007fb7ff4c96a9 in WebKit::WebProcessMain(int, char**) (argc=4, argv=0x7ffd48690118) at /app/webkit/Source/WebKit/WebProcess/wpe/WebProcessMainWPE.cpp:75
#36 0x000055db477d08e9 in main(int, char**) (argc=4, argv=0x7ffd48690118) at /app/webkit/Source/WebKit/WebProcess/EntryPoint/unix/WebProcessMain.cpp:31</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2005058</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Dyackhov">vitaly</who>
    <bug_when>2024-01-15 05:07:58 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/22779</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2005128</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-01-15 11:17:50 -0800</bug_when>
    <thetext>Committed 273048@main (fc613d1a9cda): &lt;https://commits.webkit.org/273048@main&gt;

Reviewed commits have been landed. Closing PR #22779 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2005129</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-01-15 11:18:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/121013000&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>