<?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>239942</bug_id>
          
          <creation_ts>2022-05-01 06:01:04 -0700</creation_ts>
          <short_desc>[GStreamer][Debug] media-recorder tests hitting an ASSERT</short_desc>
          <delta_ts>2022-05-02 03:58:14 -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">pnormand</reporter>
          <assigned_to name="Philippe Normand">pnormand</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1865711</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2022-05-01 06:01:04 -0700</bug_when>
    <thetext>Thread 1 (Thread 0x7f7cc17fa640 (LWP 46093)):
#0  WTFCrash() () at /app/webkit/Source/WTF/wtf/Assertions.cpp:322
#1  0x00007f7e39393be6 in WTFCrashWithInfo(int, char const*, char const*, int) () at /app/webkit/WebKitBuild/Debug/WTF/Headers/wtf/Assertions.h:748
#2  0x00007f7e406de452 in WebCore::RealtimeMediaSource::removeAudioSampleObserver(WebCore::RealtimeMediaSource::AudioSampleObserver&amp;) (this=0x7f7d44186500, observer=...) at /app/webkit/Source/WebCore/platform/mediastream/RealtimeMediaSource.cpp:73
#3  0x00007f7e3cbe6c43 in InternalSource::stopObserving() (this=0x7f7cde096900) at /app/webkit/Source/WebCore/platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp:197
#4  0x00007f7e3cbe30ed in webkitMediaStreamSrcChangeState(GstElement*, GstStateChange) (element=0x5626fb816770 [WebKitMediaStreamSrc|webkitmediastreamsrc6], transition=GST_STATE_CHANGE_PAUSED_TO_READY) at /app/webkit/Source/WebCore/platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp:539
#5  0x00007f7e2fb97922 in gst_element_change_state (element=element@entry=0x5626fb816770 [WebKitMediaStreamSrc|webkitmediastreamsrc6], transition=transition@entry=GST_STATE_CHANGE_PAUSED_TO_READY) at ../gst/gstelement.c:3083
#6  0x00007f7e2fb98065 in gst_element_set_state_func (element=0x5626fb816770 [WebKitMediaStreamSrc|webkitmediastreamsrc6], state=GST_STATE_READY) at ../gst/gstelement.c:3037
#7  0x00007f7e2fb73eec in gst_bin_element_set_state (next=GST_STATE_READY, current=GST_STATE_PAUSED, start_time=0 [0:00:00.000000000], base_time=11596110641054559 [3221:08:30.641054559], element=0x5626fb816770 [WebKitMediaStreamSrc|webkitmediastreamsrc6], bin=0x5626fb826550 [GstURISourceBin|urisourcebin6]) at ../gst/gstbin.c:2581
#8  gst_bin_change_state_func (element=0x5626fb826550 [GstURISourceBin|urisourcebin6], transition=GST_STATE_CHANGE_PAUSED_TO_READY) at ../gst/gstbin.c:2923
#9  0x00007f7de817469f in gst_uri_source_bin_change_state (element=0x5626fb826550 [GstURISourceBin|urisourcebin6], transition=GST_STATE_CHANGE_PAUSED_TO_READY) at ../gst/playback/gsturisourcebin.c:2931
#10 0x00007f7e2fb97922 in gst_element_change_state (element=element@entry=0x5626fb826550 [GstURISourceBin|urisourcebin6], transition=transition@entry=GST_STATE_CHANGE_PAUSED_TO_READY) at ../gst/gstelement.c:3083
#11 0x00007f7e2fb98065 in gst_element_set_state_func (element=0x5626fb826550 [GstURISourceBin|urisourcebin6], state=GST_STATE_READY) at ../gst/gstelement.c:3037
#12 0x00007f7e2fb73eec in gst_bin_element_set_state (next=GST_STATE_READY, current=GST_STATE_PAUSED, start_time=0 [0:00:00.000000000], base_time=11596110641054559 [3221:08:30.641054559], element=0x5626fb826550 [GstURISourceBin|urisourcebin6], bin=0x5626fb89a070 [GstUriTranscodeBin|uritranscodebin]) at ../gst/gstbin.c:2581
#13 gst_bin_change_state_func (element=0x5626fb89a070 [GstUriTranscodeBin|uritranscodebin], transition=GST_STATE_CHANGE_PAUSED_TO_READY) at ../gst/gstbin.c:2923
#14 0x00007f7e2fbc223e in gst_pipeline_change_state (element=0x5626fb89a070 [GstUriTranscodeBin|uritranscodebin], transition=GST_STATE_CHANGE_PAUSED_TO_READY) at ../gst/gstpipeline.c:529
#15 0x00007f7de81e6e8e in gst_uri_transcode_bin_change_state (element=0x5626fb89a070 [GstUriTranscodeBin|uritranscodebin], transition=GST_STATE_CHANGE_PAUSED_TO_READY) at ../gst/transcode/gsturitranscodebin.c:466
#16 0x00007f7e2fb97922 in gst_element_change_state (element=element@entry=0x5626fb89a070 [GstUriTranscodeBin|uritranscodebin], transition=GST_STATE_CHANGE_PAUSED_TO_READY) at ../gst/gstelement.c:3083
#17 0x00007f7e2fb9839a in gst_element_continue_state (element=element@entry=0x5626fb89a070 [GstUriTranscodeBin|uritranscodebin], ret=ret@entry=GST_STATE_CHANGE_NO_PREROLL) at ../gst/gstelement.c:2791
#18 0x00007f7e2fb97a25 in gst_element_change_state (element=element@entry=0x5626fb89a070 [GstUriTranscodeBin|uritranscodebin], transition=transition@entry=GST_STATE_CHANGE_PLAYING_TO_PAUSED) at ../gst/gstelement.c:3129
#19 0x00007f7e2fb98065 in gst_element_set_state_func (element=0x5626fb89a070 [GstUriTranscodeBin|uritranscodebin], state=GST_STATE_NULL) at ../gst/gstelement.c:3037
#20 0x00007f7e2cc5f3bb in gst_transcoder_main (data=&lt;optimized out&gt;) at ../gst-libs/gst/transcoder/gsttranscoder.c:842
#21 0x00007f7e2fdf9351 in g_thread_proxy (data=0x7f7ccc0018c0) at ../glib/gthread.c:827
#22 0x00007f7e2d3cc3ba in start_thread (arg=0x7f7cc17fa640) at pthread_create.c:481
#23 0x00007f7e2f6c3b03 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

STDERR: ASSERTION FAILED: isMainThread()
STDERR: /app/webkit/Source/WebCore/platform/mediastream/RealtimeMediaSource.cpp(73) : void WebCore::RealtimeMediaSource::removeAudioSampleObserver(WebCore::RealtimeMediaSource::AudioSampleObserver&amp;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1865712</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2022-05-01 06:06:05 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/450</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1865796</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-05-02 03:57:14 -0700</bug_when>
    <thetext>Committed r293661 (250165@main): &lt;https://commits.webkit.org/250165@main&gt;

Reviewed commits have been landed. Closing PR #450 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1865797</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-05-02 03:58:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/92600078&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>