<?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>257487</bug_id>
          
          <creation_ts>2023-05-30 08:07:34 -0700</creation_ts>
          <short_desc>[GStreamer] Crash when setting the deadline property of vpxenc</short_desc>
          <delta_ts>2023-05-31 00:55:17 -0700</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>1958754</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2023-05-30 08:07:34 -0700</bug_when>
    <thetext>(gdb) bt                                                                                                                                                                                                             
#0  g_logv (log_domain=0x7f52f8cd0030 &quot;GLib-GObject&quot;, log_level=G_LOG_LEVEL_CRITICAL, format=&lt;optimized out&gt;, args=args@entry=0x7ffd3b5bdf00) at ../glib/gmessages.c:1422                                            
#1  0x00007f52f8ba52a3 in g_log                                                                                                                                                                                      
    (log_domain=log_domain@entry=0x7f52f8cd0030 &quot;GLib-GObject&quot;, log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=format@entry=0x7f52f8cd5e98 &quot;value \&quot;%s\&quot; of type &apos;%s&apos; is invalid or out of range for property
 &apos;%s&apos; of type &apos;%s&apos;&quot;) at ../glib/gmessages.c:1460                                                                                                                                                                     
#2  0x00007f52f8cb0857 in object_set_property (object=object@entry=0x26e59b0, pspec=pspec@entry=0x2a31db0, value=value@entry=0x7ffd3b5be080, nqueue=nqueue@entry=0x26e8250, user_specified=user_specified@entry=1)   
    at ../gobject/gobject.c:1830                                                                                                                                                                                     
#3  0x00007f52f8cb3a86 in g_object_set_valist (var_args=0x7ffd3b5be130, first_property_name=&lt;optimized out&gt;, object=&lt;optimized out&gt;) at ../gobject/gobject.c:2781                                                    
#4  g_object_set_valist (object=&lt;optimized out&gt;, first_property_name=&lt;optimized out&gt;, var_args=0x7ffd3b5be130) at ../gobject/gobject.c:2742                                                                          
#5  0x00007f52f8cb3f1d in g_object_set (_object=0x26e59b0, first_property_name=0x7f5307542db3 &quot;threads&quot;) at ../gobject/gobject.c:2957                                                                                
#6  0x00007f5302617698 in webkit_video_encoder_class_init(_WebKitVideoEncoderClass*)::$_14::operator()(_GstElement*, LatencyMode) const (this=0x7f52e93aeae8, encoder=0x26e59b0, mode=REALTIME_LATENCY_MODE)         
    at /var/home/phil/WebKit/Source/WebCore/platform/gstreamer/VideoEncoderPrivateGStreamer.cpp:646                                                                                                                  
#7  0x00007f5302617607 in WTF::Detail::CallableWrapper&lt;webkit_video_encoder_class_init(_WebKitVideoEncoderClass*)::$_14, void, _GstElement*, LatencyMode&gt;::call(_GstElement*, LatencyMode)                           
    (this=0x7f52e93aeae0, in=0x26e59b0, in=REALTIME_LATENCY_MODE) at WTF/Headers/wtf/Function.h:53                                                                                                                   
#8  0x00007f530261fb60 in WTF::Function&lt;void (_GstElement*, LatencyMode)&gt;::operator()(_GstElement*, LatencyMode) const (this=0x7f52e90991e8, in=0x26e59b0, in=REALTIME_LATENCY_MODE)                                 
    at WTF/Headers/wtf/Function.h:82                                                                                                                                                                                 
#9  0x00007f530260ee4a in videoEncoderSetEncoder(_WebKitVideoEncoder*, EncoderId, WTF::GRefPtr&lt;_GstCaps&gt;&amp;&amp;) (self=0x2abd230, encoderId=Vp9, encodedCaps=...)                                                         
    at /var/home/phil/WebKit/Source/WebCore/platform/gstreamer/VideoEncoderPrivateGStreamer.cpp:353                                                                                                                  
#10 0x00007f530260e5b5 in videoEncoderSetFormat(_WebKitVideoEncoder*, WTF::GRefPtr&lt;_GstCaps&gt;&amp;&amp;) (self=0x2abd230, caps=...)                                                                                           
    at /var/home/phil/WebKit/Source/WebCore/platform/gstreamer/VideoEncoderPrivateGStreamer.cpp:425                                                                                                                  
#11 0x00007f5302599b71 in WebCore::GStreamerInternalVideoEncoder::initialize(WebCore::VideoEncoder::Config const&amp;) (this=0x7f52e97408a0, config=...)                                                                 
    at /var/home/phil/WebKit/Source/WebCore/platform/graphics/gstreamer/VideoEncoderGStreamer.cpp:226                                                                                                                
#12 0x00007f530259931c in WebCore::GStreamerVideoEncoder::initialize(WebCore::VideoEncoder::Config const&amp;) (this=0x7f52e9093340, config=...)                                                                         
    at /var/home/phil/WebKit/Source/WebCore/platform/graphics/gstreamer/VideoEncoderGStreamer.cpp:130                                                                                                                
#13 0x00007f53025990d4 in WebCore::GStreamerVideoEncoder::create(WTF::String const&amp;, WebCore::VideoEncoder::Config const&amp;, WTF::Function&lt;void (std::experimental::fundamentals_v3::expected&lt;WTF::UniqueRef&lt;WebCore::V
ideoEncoder&gt;, WTF::String&gt;&amp;&amp;)&gt;&amp;&amp;, WTF::Function&lt;void (WebCore::VideoEncoder::ActiveConfiguration&amp;&amp;)&gt;&amp;&amp;, WTF::Function&lt;void (WebCore::VideoEncoder::EncodedFrame&amp;&amp;)&gt;&amp;&amp;, WTF::Function&lt;void (WTF::Function&lt;void ()&gt;&amp;&amp;)&gt;
&amp;&amp;) (codecName=..., config=..., callback=..., descriptionCallback=..., outputCallback=..., postTaskCallback=...) at /var/home/phil/WebKit/Source/WebCore/platform/graphics/gstreamer/VideoEncoderGStreamer.cpp:96    
#14 0x00007f5305f64fad in WebCore::VideoEncoder::createLocalEncoder(WTF::String const&amp;, WebCore::VideoEncoder::Config const&amp;, WTF::Function&lt;void (std::experimental::fundamentals_v3::expected&lt;WTF::UniqueRef&lt;WebCore
::VideoEncoder&gt;, WTF::String&gt;&amp;&amp;)&gt;&amp;&amp;, WTF::Function&lt;void (WebCore::VideoEncoder::ActiveConfiguration&amp;&amp;)&gt;&amp;&amp;, WTF::Function&lt;void (WebCore::VideoEncoder::EncodedFrame&amp;&amp;)&gt;&amp;&amp;, WTF::Function&lt;void (WTF::Function&lt;void ()&gt;&amp;
&amp;)&gt;&amp;&amp;) (codecName=..., config=..., callback=..., descriptionCallback=..., outputCallback=..., postCallback=...) at /var/home/phil/WebKit/Source/WebCore/platform/VideoEncoder.cpp:73                                 
#15 0x00007f5305f64f61 in WebCore::VideoEncoder::create(WTF::String const&amp;, WebCore::VideoEncoder::Config const&amp;, WTF::Function&lt;void (std::experimental::fundamentals_v3::expected&lt;WTF::UniqueRef&lt;WebCore::VideoEncod
er&gt;, WTF::String&gt;&amp;&amp;)&gt;&amp;&amp;, WTF::Function&lt;void (WebCore::VideoEncoder::ActiveConfiguration&amp;&amp;)&gt;&amp;&amp;, WTF::Function&lt;void (WebCore::VideoEncoder::EncodedFrame&amp;&amp;)&gt;&amp;&amp;, WTF::Function&lt;void (WTF::Function&lt;void ()&gt;&amp;&amp;)&gt;&amp;&amp;)      
    (codecName=..., config=..., callback=..., descriptionCallback=..., outputCallback=..., postCallback=...) at /var/home/phil/WebKit/Source/WebCore/platform/VideoEncoder.cpp:54                                    
#16 0x00007f530460e144 in WebCore::WebCodecsVideoEncoder::configure(WebCore::ScriptExecutionContext&amp;, WebCore::WebCodecsVideoEncoderConfig&amp;&amp;)::$_1::operator()() (this=0x7f52e908a050)                               
    at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoEncoder.cpp:134                                                                                                                          
#17 0x00007f530460dfb9 in WTF::Detail::CallableWrapper&lt;WebCore::WebCodecsVideoEncoder::configure(WebCore::ScriptExecutionContext&amp;, WebCore::WebCodecsVideoEncoderConfig&amp;&amp;)::$_1, void&gt;::call() (this=0x7f52e908a040) 
    at WTF/Headers/wtf/Function.h:53                                                                                                                                                                                 
#18 0x00007f53012353b2 in WTF::Function&lt;void ()&gt;::operator()() const (this=0x7ffd3b5bea20) at WTF/Headers/wtf/Function.h:82                                                                                          
#19 0x00007f53045fef84 in WebCore::WebCodecsVideoEncoder::queueControlMessageAndProcess(WTF::Function&lt;void ()&gt;&amp;&amp;) (this=0x7f525a016370, message=...)                                                                 
    at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoEncoder.cpp:354                                                                                                                          
#20 0x00007f53045feb8c in WebCore::WebCodecsVideoEncoder::configure(WebCore::ScriptExecutionContext&amp;, WebCore::WebCodecsVideoEncoderConfig&amp;&amp;) (this=0x7f525a016370, context=..., config=...)                         
    at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoEncoder.cpp:117                                                                                                                          
#21 0x00007f5303d5bb8e in WebCore::jsWebCodecsVideoEncoderPrototypeFunction_configureBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSWebCodecsVideoEncoder*)::{lambda()#1}::operator()() const                
    (this=0x7ffd3b5bec10) at WebCore/DerivedSources/JSWebCodecsVideoEncoder.cpp:347                                                                                                                                  
#22 0x00007f5303d5bad1 in WebCore::toJS&lt;WebCore::IDLUndefined, WebCore::jsWebCodecsVideoEncoderPrototypeFunction_configureBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSWebCodecsVideoEncoder*)::{lambda()#1
}&gt;(JSC::JSGlobalObject&amp;, JSC::ThrowScope&amp;, WebCore::jsWebCodecsVideoEncoderPrototypeFunction_configureBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSWebCodecsVideoEncoder*)::{lambda()#1}&amp;&amp;)                
    (lexicalGlobalObject=..., throwScope=..., valueOrFunctor=...) at /var/home/phil/WebKit/Source/WebCore/bindings/js/JSDOMConvertBase.h:168                                                                         
#23 0x00007f5303d5ba53 in WebCore::jsWebCodecsVideoEncoderPrototypeFunction_configureBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSWebCodecsVideoEncoder*)                                                  
    (lexicalGlobalObject=0x7f528aabd7b0, callFrame=0x7ffd3b5bee80, castedThis=0x7f52e923b988) at WebCore/DerivedSources/JSWebCodecsVideoEncoder.cpp:347                                                              
#24 0x00007f5303d5b6fe in WebCore::IDLOperation&lt;WebCore::JSWebCodecsVideoEncoder&gt;::call&lt;&amp;WebCore::jsWebCodecsVideoEncoderPrototypeFunction_configureBody, (WebCore::CastedThisErrorBehavior)0&gt;(JSC::JSGlobalObject&amp;, 
JSC::CallFrame&amp;, char const*) (lexicalGlobalObject=..., callFrame=..., operationName=0x7f5308094490 &quot;configure&quot;) at /var/home/phil/WebKit/Source/WebCore/bindings/js/JSDOMOperation.h:63                             
#25 0x00007f5303d5b394 in WebCore::jsWebCodecsVideoEncoderPrototypeFunction_configure(JSC::JSGlobalObject*, JSC::CallFrame*) (lexicalGlobalObject=0x7f528aabd7b0, callFrame=0x7ffd3b5bee80)                          
    at WebCore/DerivedSources/JSWebCodecsVideoEncoder.cpp:352
...
(gdb) f 2                                                                                                                                                                                                            
#2  0x00007f52f8cb0857 in object_set_property (object=object@entry=0x26e59b0, pspec=pspec@entry=0x2a31db0, value=value@entry=0x7ffd3b5be080, nqueue=nqueue@entry=0x26e8250, user_specified=user_specified@entry=1)   
    at ../gobject/gobject.c:1830
(gdb) p pspec                                                                                                                                                                                                        
$2 = 0x2a31db0                                                                                                                                                                                                       
(gdb) p *$2                                                                                                                                                                                                          
$3 = {g_type_instance = {g_class = 0x23e7b60 [g_type: None]}, name = 0x7f5288140d7e &quot;deadline&quot;, flags = 8419, value_type = 0x28, owner_type = Python Exception &lt;class &apos;TypeError&apos;&gt;: can only concatenate str (not &quot;No
neType&quot;) to str                                                                                                                                                                                                      
, _nick = 0x7f5288140d75 &quot;Deadline&quot;,                                                                                                                                                                                 
  _blurb = 0x7f5288142d30 &quot;Deadline per frame (usec, 0=best, 1=realtime)&quot;, qdata = 0x0, ref_count = 2, param_id = 31}

Should be an int64, and BTW I was mislead of the doc, 1 is not 1 but 1000000...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1958758</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2023-05-30 08:36:28 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/14483</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1958977</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-05-31 00:54:36 -0700</bug_when>
    <thetext>Committed 264719@main (918cb05fde45): &lt;https://commits.webkit.org/264719@main&gt;

Reviewed commits have been landed. Closing PR #14483 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1958978</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-05-31 00:55:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/110049859&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>