Bug 245047

Summary: [GStreamer][Debug] 2 mediastream tests hitting asserts
Product: WebKit Reporter: Philippe Normand <philn>
Component: PlatformAssignee: Philippe Normand <philn>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Philippe Normand 2022-09-11 09:21:17 PDT
fast/mediacapturefromelement/CanvasCaptureMediaStream-capture-out-of-DOM-canvas.html
fast/mediastream/captureStream/canvas3d.html

Thread 1 (Thread 0x7fd25fe78140 (LWP 74678)):
#0  0x00007fd26126b860 in g_type_check_instance_is_a (type_instance=type_instance@entry=0x562a3d5cab00, iface_type=<optimized out>) at ../gobject/gtype.c:4078
#1  0x00007fd26490a73d in gst_stream_get_tags (stream=0x562a3d5cab00) at ../gst/gststreams.c:410
#2  0x00007fd27239510d in WebCore::MediaPlayerPrivateGStreamer::naturalSize() const (this=0x7fd2563d1300) at /app/webkit/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:1586
#3  0x00007fd275f3e0c0 in WebCore::MediaPlayer::naturalSize() (this=0x7fd2560a6bd0) at /app/webkit/Source/WebCore/platform/graphics/MediaPlayer.cpp:846
#4  0x00007fd2752c5365 in WebCore::HTMLVideoElement::videoWidth() const (this=0x7fd0f20ed510) at /app/webkit/Source/WebCore/html/HTMLVideoElement.cpp:216
#5  0x00007fd2752c54a7 in WebCore::HTMLVideoElement::scheduleResizeEvent() (this=0x7fd0f20ed510) at /app/webkit/Source/WebCore/html/HTMLVideoElement.cpp:228
#6  0x00007fd275200bce in WebCore::HTMLMediaElement::setReadyState(WebCore::MediaPlayerEnums::ReadyState) (this=0x7fd0f20ed510, state=WebCore::MediaPlayerEnums::ReadyState::HaveEnoughData) at /app/webkit/Source/WebCore/html/HTMLMediaElement.cpp:2707
#7  0x00007fd2751fff4d in WebCore::HTMLMediaElement::mediaPlayerReadyStateChanged() (this=0x7fd0f20ed510) at /app/webkit/Source/WebCore/html/HTMLMediaElement.cpp:2582
#8  0x00007fd275f3f6c4 in WebCore::MediaPlayer::readyStateChanged() (this=0x7fd2560a6bd0) at /app/webkit/Source/WebCore/platform/graphics/MediaPlayer.cpp:1386
#9  0x00007fd27239f17e in operator()() const (__closure=0x7fd03f084128) at /app/webkit/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:3493
#10 0x00007fd2723ae026 in WTF::Detail::CallableWrapper<WebCore::MediaPlayerPrivateGStreamer::triggerRepaint(GstSample*)::<lambda()>, void>::call(void) (this=0x7fd03f084120) at /app/webkit/WebKitBuild/Debug/WTF/Headers/wtf/Function.h:53
#11 0x00007fd26e9a3217 in WTF::Function<void ()>::operator()() const (this=0x7ffe86107f00) at /app/webkit/WebKitBuild/Debug/WTF/Headers/wtf/Function.h:82
#12 0x00007fd272092e97 in WTF::RunLoop::performWork() (this=0x7fd2560140c0) at /app/webkit/Source/WTF/wtf/RunLoop.cpp:133
#13 0x00007fd27214628e in operator()(gpointer) const (__closure=0x0, userData=0x7fd2560140c0) at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:80
#14 0x00007fd2721462b2 in _FUN(gpointer) () at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:82
#15 0x00007fd272146221 in operator()(GSource*, GSourceFunc, gpointer) const (__closure=0x0, source=0x562a3d144060, callback=0x7fd272146295 <_FUN(gpointer)>, userData=0x7fd2560140c0) at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:53
#16 0x00007fd27214626f in _FUN(GSource*, GSourceFunc, gpointer) () at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:56
#17 0x00007fd264af9294 in g_main_dispatch (context=0x562a3d142eb0) at ../glib/gmain.c:3381
#18 g_main_context_dispatch (context=0x562a3d142eb0) at ../glib/gmain.c:4099
#19 0x00007fd264af9638 in g_main_context_iterate (context=0x562a3d142eb0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4175
#20 0x00007fd264af9943 in g_main_loop_run (loop=0x562a3d11cbd0) at ../glib/gmain.c:4373
#21 0x00007fd2721468da in WTF::RunLoop::run() () at /app/webkit/Source/WTF/wtf/glib/RunLoopGLib.cpp:108
#22 0x00007fd27001ea23 in WebKit::AuxiliaryProcessMainBase<WebKit::WebProcess, true>::run(int, char**) (this=0x7ffe861081b0, argc=4, argv=0x7ffe86108358) at /app/webkit/Source/WebKit/Shared/AuxiliaryProcessMain.h:71
#23 0x00007fd270019df9 in WebKit::AuxiliaryProcessMain<WebKit::WebProcessMainWPE>(int, char**) (argc=4, argv=0x7ffe86108358) at /app/webkit/Source/WebKit/Shared/AuxiliaryProcessMain.h:97
#24 0x00007fd27000cb03 in WebKit::WebProcessMain(int, char**) (argc=4, argv=0x7ffe86108358) at /app/webkit/Source/WebKit/WebProcess/wpe/WebProcessMainWPE.cpp:75
#25 0x0000562a3c14f919 in main(int, char**) (argc=4, argv=0x7ffe86108358) at /app/webkit/Source/WebKit/WebProcess/EntryPoint/unix/WebProcessMain.cpp:31
Comment 1 Philippe Normand 2022-09-11 10:07:45 PDT
Pull request: https://github.com/WebKit/WebKit/pull/4238
Comment 2 EWS 2022-09-12 01:15:13 PDT
Committed 254373@main (a7b5bc7a6c12): <https://commits.webkit.org/254373@main>

Reviewed commits have been landed. Closing PR #4238 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2022-09-12 01:16:17 PDT
<rdar://problem/99812684>