<?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>264935</bug_id>
          
          <creation_ts>2023-11-16 03:11:55 -0800</creation_ts>
          <short_desc>[GStreamer][WebCodecs][Debug] ASSERTs in video encoder</short_desc>
          <delta_ts>2023-11-20 01:00:52 -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>Platform</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="Philippe Normand">philn</reporter>
          <assigned_to name="Philippe Normand">philn</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1993058</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2023-11-16 03:11:55 -0800</bug_when>
    <thetext>Thread 1 (Thread 0x7fdc4f018ec0 (LWP 713522)):
#0  WTFCrash() () at /app/webkit/Source/WTF/wtf/Assertions.cpp:333
#1  0x00007fdc644799ed in WTF::AtomStringImpl::remove(WTF::AtomStringImpl*) (string=0x7fdc458872a0) at /app/webkit/Source/WTF/wtf/text/AtomStringImpl.cpp:479
#2  0x00007fdc644875fc in WTF::StringImpl::~StringImpl() (this=0x7fdc458872a0, __in_chrg=&lt;optimized out&gt;) at /app/webkit/Source/WTF/wtf/text/StringImpl.cpp:124
#3  0x00007fdc644877ea in WTF::StringImpl::destroy(WTF::StringImpl*) (stringImpl=0x7fdc458872a0) at /app/webkit/Source/WTF/wtf/text/StringImpl.cpp:155
#4  0x00007fdc60639ada in WTF::StringImpl::deref() (this=0x7fdc458872a0) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/text/StringImpl.h:1160
#5  0x00007fdc6063b81a in WTF::DefaultRefDerefTraits&lt;WTF::StringImpl&gt;::derefIfNotNull(WTF::StringImpl*) (ptr=0x7fdc458872a0) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/RefPtr.h:43
#6  0x00007fdc6063a634 in WTF::RefPtr&lt;WTF::StringImpl, WTF::RawPtrTraits&lt;WTF::StringImpl&gt;, WTF::DefaultRefDerefTraits&lt;WTF::StringImpl&gt; &gt;::~RefPtr() (this=0x7fdc455a2388, __in_chrg=&lt;optimized out&gt;) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/RefPtr.h:75
#7  0x00007fdc60639b00 in WTF::String::~String() (this=0x7fdc455a2388, __in_chrg=&lt;optimized out&gt;) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/text/WTFString.h:89
#8  0x00007fdc68c27ff9 in WebCore::GStreamerInternalVideoEncoder::~GStreamerInternalVideoEncoder() (this=0x7fdc455a2380, __in_chrg=&lt;optimized out&gt;) at /app/webkit/Source/WebCore/platform/graphics/gstreamer/VideoEncoderGStreamer.cpp:259
#9  0x00007fdc68c5dae8 in WTF::ThreadSafeWeakPtrControlBlock::strongDeref&lt;WebCore::GStreamerInternalVideoEncoder, (WTF::DestructionThread)1&gt;() const::{lambda()#1}::operator()() const (__closure=0x7fdc457f86a8) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/ThreadSafeWeakPtr.h:101
#10 0x00007fdc68c6bad4 in WTF::Detail::CallableWrapper&lt;WTF::ThreadSafeWeakPtrControlBlock::strongDeref&lt;WebCore::GStreamerInternalVideoEncoder, (WTF::DestructionThread)1&gt;() const::{lambda()#1}, void&gt;::call() (this=0x7fdc457f86a0) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:53
#11 0x00007fdc60fb1c41 in WTF::Function&lt;void ()&gt;::operator()() const (this=0x7ffed0437d50) at /app/webkit/WebKitBuild/WPE/Debug/WTF/Headers/wtf/Function.h:82
#12 0x00007fdc64407837 in WTF::RunLoop::performWork() (this=0x7fdc450180c0) at /app/webkit/Source/WTF/wtf/RunLoop.cpp:147
#13 0x00007fdc644bb972 in operator()(gpointer) const (__closure=0x0, userData=0x7fdc450180c0) at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:80
#14 0x00007fdc644bb996 in _FUN(gpointer) () at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:82
#15 0x00007fdc644bb905 in operator()(GSource*, GSourceFunc, gpointer) const (__closure=0x0, source=0x55d11086de50, callback=0x7fdc644bb979 &lt;_FUN(gpointer)&gt;, userData=0x7fdc450180c0) at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:53
#16 0x00007fdc644bb953 in _FUN(GSource*, GSourceFunc, gpointer) () at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:56
#17 0x00007fdc55bb7527 in g_main_dispatch (context=0x55d11086dcf0) at ../glib/gmain.c:3460
#18 g_main_context_dispatch (context=0x55d11086dcf0) at ../glib/gmain.c:4200
#19 0x00007fdc55c14888 in g_main_context_iterate.constprop.0 (context=0x55d11086dcf0, block=&lt;optimized out&gt;, dispatch=1, self=&lt;optimized out&gt;) at ../glib/gmain.c:4276
#20 0x00007fdc55bb6d7f in g_main_loop_run (loop=0x55d11086de30) at ../glib/gmain.c:4479
#21 0x00007fdc644bbfc6 in WTF::RunLoop::run() () at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:108
#22 0x00007fdc61f92679 in WebKit::AuxiliaryProcessMainBase&lt;WebKit::WebProcess, true&gt;::run(int, char**) (this=0x7ffed0438020, argc=4, argv=0x7ffed04381e8) at /app/webkit/Source/WebKit/Shared/AuxiliaryProcessMain.h:72
#23 0x00007fdc61f8f717 in WebKit::AuxiliaryProcessMain&lt;WebKit::WebProcessMainWPE&gt;(int, char**) (argc=4, argv=0x7ffed04381e8) at /app/webkit/Source/WebKit/Shared/AuxiliaryProcessMain.h:98
#24 0x00007fdc61f8c1d3 in WebKit::WebProcessMain(int, char**) (argc=4, argv=0x7ffed04381e8) at /app/webkit/Source/WebKit/WebProcess/wpe/WebProcessMainWPE.cpp:75
#25 0x000055d10eabe8e9 in main(int, char**) (argc=4, argv=0x7ffed04381e8) at /app/webkit/Source/WebKit/WebProcess/EntryPoint/unix/WebProcessMain.cpp:31

STDERR: ASSERTION FAILED: The string being removed is an atom in the string table of an other thread!
STDERR: iterator != atomStringTable.end()
STDERR: /app/webkit/Source/WTF/wtf/text/AtomStringImpl.cpp(479) : static void WTF::AtomStringImpl::remove(WTF::AtomStringImpl*)

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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993067</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2023-11-16 04:26:08 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/20599</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993404</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-11-17 04:36:44 -0800</bug_when>
    <thetext>Committed 270883@main (0bb4da6c65e2): &lt;https://commits.webkit.org/270883@main&gt;

Reviewed commits have been landed. Closing PR #20599 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993405</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-11-17 04:37:20 -0800</bug_when>
    <thetext>&lt;rdar://problem/118559880&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993660</commentid>
    <comment_count>4</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2023-11-18 02:11:44 -0800</bug_when>
    <thetext>Still happening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993661</commentid>
    <comment_count>5</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2023-11-18 02:15:29 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/20702</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993832</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-11-20 01:00:50 -0800</bug_when>
    <thetext>Committed 270966@main (6656a3ab0212): &lt;https://commits.webkit.org/270966@main&gt;

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

    </bug>

</bugzilla>