<?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>255786</bug_id>
          
          <creation_ts>2023-04-21 07:39:58 -0700</creation_ts>
          <short_desc>[GStreamer][Debug] mediarecorder tests hitting ASSERT</short_desc>
          <delta_ts>2023-04-28 02:58:44 -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>
          
          <blocked>235885</blocked>
          <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>1950361</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2023-04-21 07:39:58 -0700</bug_when>
    <thetext>http/wpt/mediarecorder/MediaRecorder-frame.html
http/wpt/mediarecorder/MediaRecorder-multiple-start-stop.html
http/wpt/mediarecorder/MediaRecorder-onremovetrack.html
http/wpt/mediarecorder/MediaRecorder-video-bitrate.html
http/wpt/mediarecorder/MediaRecorder-video-h264-profiles.html

Thread 1 (Thread 0x7fee1ffff640 (LWP 172574)):
#0  WTFCrash() () at /app/webkit/Source/WTF/wtf/Assertions.cpp:327
#1  0x00007ff185b3e069 in WTFCrashWithInfo(int, char const*, char const*, int) () at /app/webkit/WebKitBuild/Debug/WTF/Headers/wtf/Assertions.h:758
#2  0x00007ff18dc9babe in WebCore::RealtimeMediaSource::removeAudioSampleObserver(WebCore::RealtimeMediaSource::AudioSampleObserver&amp;) (this=0x7ff16b5ac0e0, observer=...) at /app/webkit/Source/WebCore/platform/mediastream/RealtimeMediaSource.cpp:106
#3  0x00007ff189b62c23 in InternalSource::stopObserving() (this=0x7ff16b11e040) at /app/webkit/Source/WebCore/platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp:208
#4  0x00007ff189b5ecd1 in webkitMediaStreamSrcChangeState(GstElement*, GstStateChange) (element=0x55aa5111c410 [GstElement|webkitmediastreamsrc7], transition=GST_STATE_CHANGE_READY_TO_NULL) at /app/webkit/Source/WebCore/platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp:660
#5  0x00007ff17b57b3f6 in gst_element_change_state (element=element@entry=0x55aa5111c410 [GstElement|webkitmediastreamsrc7], transition=transition@entry=GST_STATE_CHANGE_READY_TO_NULL) at ../gst/gstelement.c:3093
#6  0x00007ff17b57ba40 in gst_element_set_state_func (element=0x55aa5111c410 [GstElement|webkitmediastreamsrc7], state=GST_STATE_NULL) at ../gst/gstelement.c:3047
#7  0x00007fefe84f61a7 in remove_source (urisrc=0x55aa51101020 [GstURISourceBin|urisourcebin7]) at ../gst/playback/gsturisourcebin.c:2228
#8  0x00007fefe84f9a08 in gst_uri_source_bin_change_state (element=0x55aa51101020 [GstElement|urisourcebin7], transition=&lt;optimized out&gt;) at ../gst/playback/gsturisourcebin.c:3013
#9  0x00007ff17b57b3f6 in gst_element_change_state (element=element@entry=0x55aa51101020 [GstElement|urisourcebin7], transition=transition@entry=GST_STATE_CHANGE_PAUSED_TO_READY) at ../gst/gstelement.c:3093
#10 0x00007ff17b57ba40 in gst_element_set_state_func (element=0x55aa51101020 [GstElement|urisourcebin7], state=GST_STATE_READY) at ../gst/gstelement.c:3047
#11 0x00007ff17b5533fb in gst_bin_element_set_state (next=&lt;optimized out&gt;, current=&lt;optimized out&gt;, start_time=&lt;optimized out&gt;, base_time=&lt;optimized out&gt;, element=0x55aa51101020 [GstElement|urisourcebin7], bin=0x55aa511c3180 [GstBin|uritranscodebin]) at ../gst/gstbin.c:2581
#12 gst_bin_change_state_func (element=0x55aa511c3180 [GstElement|uritranscodebin], transition=&lt;optimized out&gt;) at ../gst/gstbin.c:2930
#13 0x00007ff17b5a90c7 in gst_pipeline_change_state (element=0x55aa511c3180 [GstElement|uritranscodebin], transition=GST_STATE_CHANGE_PAUSED_TO_READY) at ../gst/gstpipeline.c:529
#14 0x00007ff10c12d422 in gst_uri_transcode_bin_change_state (element=0x55aa511c3180 [GstElement|uritranscodebin], transition=GST_STATE_CHANGE_PAUSED_TO_READY) at ../gst/transcode/gsturitranscodebin.c:467
#15 0x00007ff17b57b3f6 in gst_element_change_state (element=element@entry=0x55aa511c3180 [GstElement|uritranscodebin], transition=GST_STATE_CHANGE_PAUSED_TO_READY) at ../gst/gstelement.c:3093
#16 0x00007ff17b57b29a in gst_element_continue_state (element=element@entry=0x55aa511c3180 [GstElement|uritranscodebin], ret=ret@entry=GST_STATE_CHANGE_NO_PREROLL) at ../gst/gstelement.c:2801
#17 0x00007ff17b57b501 in gst_element_change_state (element=element@entry=0x55aa511c3180 [GstElement|uritranscodebin], transition=transition@entry=GST_STATE_CHANGE_PLAYING_TO_PAUSED) at ../gst/gstelement.c:3139
#18 0x00007ff17b57ba40 in gst_element_set_state_func (element=0x55aa511c3180 [GstElement|uritranscodebin], state=GST_STATE_NULL) at ../gst/gstelement.c:3047
#19 0x00007ff1784a9acd in gst_transcoder_main (data=0x55aa50fbc820) at ../gst-libs/gst/transcoder/gsttranscoder.c:843
#20 0x00007ff17b7d3722 in g_thread_proxy (data=0x7fee9400f0c0) at ../glib/gthread.c:827
#21 0x00007ff17b0421da in start_thread (arg=&lt;optimized out&gt;) at pthread_create.c:442
#22 0x00007ff17b0caf44 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100

STDERR: /app/webkit/Source/WebKit/NetworkProcess/storage/StorageUtilities.h(73) : bool WebKit::writeOriginToFile(const WTF::String&amp;, const WebCore::ClientOrigin&amp;)
STDERR: ASSERTION FAILED: isMainThread()
STDERR: /app/webkit/Source/WebCore/platform/mediastream/RealtimeMediaSource.cpp(106) : void WebCore::RealtimeMediaSource::removeAudioSampleObserver(AudioSampleObserver&amp;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1950364</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2023-04-21 07:46:19 -0700</bug_when>
    <thetext>Same crash for fast/mediacapturefromelement/CanvasCaptureMediaStream-webgl-events.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1950383</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2023-04-21 08:39:59 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/13033</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1950726</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-04-24 03:29:39 -0700</bug_when>
    <thetext>Committed 263305@main (d20f97b6f4a0): &lt;https://commits.webkit.org/263305@main&gt;

Reviewed commits have been landed. Closing PR #13033 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1950727</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-04-24 03:30:22 -0700</bug_when>
    <thetext>&lt;rdar://problem/108445961&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>