Bug 278318

Summary: [macOS Debug] ASSERTION FAILED: m_wrapper on media/video-playsinline.html, also flaky failure in Release
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ap, darbinyan, fujii.hironori, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=278239
https://bugs.webkit.org/show_bug.cgi?id=280646

David Kilzer (:ddkilzer)
Reported 2024-08-19 09:17:59 PDT
[mac wk2] media/video-playsinline.html is a flaky failure. Test history: <https://results.webkit.org/?suite=layout-tests&test=media/video-playsinline.html> Flaky failure is seen most often on Mac WK2 Release builds: --- /Volumes/Data/worker/Apple-Ventura-Release-WK2-Tests/build/layout-test-results/media/video-timeupdate-during-playback-expected.txt +++ /Volumes/Data/worker/Apple-Ventura-Release-WK2-Tests/build/layout-test-results/media/video-timeupdate-during-playback-actual.txt @@ -15,5 +15,6 @@ RUN(video.pause()) EVENT(pause) +'timeupdate' events posted after pausing FAIL END OF TEST But the test also crashes flakily on Mac WK2 Debug as seen on this EWS run: PR: <https://github.com/WebKit/WebKit/pull/32362> Test run: <https://ews-build.webkit.org/#/builders/62/builds/11945> Test results #1: <https://ews-build.s3-us-west-2.amazonaws.com/macOS-Sonoma-Debug-WK2-Tests-EWS/6c84dd0a-11945/results.html> Test results #2: <https://ews-build.s3-us-west-2.amazonaws.com/macOS-Sonoma-Debug-WK2-Tests-EWS/6c84dd0a-11945-rerun/results.html> ASSERTION FAILED: m_wrapper /Volumes/Data/worker/macOS-Sonoma-Debug-Build-EWS/build/Source/WebCore/bindings/js/JSEventListener.h(164) : JSC::JSObject *WebCore::JSEventListener::ensureJSFunction(ScriptExecutionContext &) const 1 0x32f389cbc WebCore::JSEventListener::ensureJSFunction(WebCore::ScriptExecutionContext&) const 2 0x32f3fb510 WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext&, WebCore::Event&) 3 0x32ff80870 WebCore::EventTarget::innerInvokeEventListeners(WebCore::Event&, WTF::Vector<WTF::RefPtr<WebCore::RegisteredEventListener, WTF::RawPtrTraits<WebCore::RegisteredEventListener>, WTF::DefaultRefDerefTraits<WebCore::RegisteredEventListener>>, 1ul, WTF::CrashOnOverflow, 2ul, WTF::FastMalloc>, WebCore::EventTarget::EventInvokePhase) 4 0x32ff80240 WebCore::EventTarget::fireEventListeners(WebCore::Event&, WebCore::EventTarget::EventInvokePhase) 5 0x32ff6b5e4 WebCore::EventContext::handleLocalEvents(WebCore::Event&, WebCore::EventTarget::EventInvokePhase) const 6 0x32ff6c8f8 WebCore::dispatchEventInDOM(WebCore::Event&, WebCore::EventPath const&) 7 0x32ff6c0e8 WebCore::EventDispatcher::dispatchEvent(WebCore::Node&, WebCore::Event&) 8 0x330010f08 WebCore::Node::dispatchEvent(WebCore::Event&) 9 0x3304583d8 WebCore::HTMLMediaElement::dispatchEvent(WebCore::Event&) 10 0x32fd47e30 WebCore::ActiveDOMObject::queueCancellableTaskToDispatchEventInternal(WebCore::EventTarget&, WebCore::TaskSource, WTF::TaskCancellationGroup&, WTF::Ref<WebCore::Event, WTF::RawPtrTraits<WebCore::Event>, WTF::DefaultRefDerefTraits<WebCore::Event>>&&)::$_6::operator()() const 11 0x32fd47d54 WTF::Detail::CallableWrapper<WebCore::ActiveDOMObject::queueCancellableTaskToDispatchEventInternal(WebCore::EventTarget&, WebCore::TaskSource, WTF::TaskCancellationGroup&, WTF::Ref<WebCore::Event, WTF::RawPtrTraits<WebCore::Event>, WTF::DefaultRefDerefTraits<WebCore::Event>>&&)::$_6, void>::call() 12 0x32baf63f8 WTF::Function<void ()>::operator()() const 13 0x32f327a88 WTF::CancellableTask::operator()() 14 0x32f3278d0 WTF::Detail::CallableWrapper<WTF::CancellableTask, void>::call() 15 0x32baf63f8 WTF::Function<void ()>::operator()() const 16 0x32fd4384c WebCore::ActiveDOMObjectEventDispatchTask::execute() 17 0x32ff78a30 WebCore::EventLoop::run(std::__1::optional<WTF::ApproximateTime>) 18 0x33014e7b4 WebCore::WindowEventLoop::didReachTimeToRun() 19 0x330152430 decltype(*std::declval<WebCore::WindowEventLoop*&>().*std::declval<void (WebCore::WindowEventLoop::*&)()>()()) std::__1::__invoke[abi:sn170006]<void (WebCore::WindowEventLoop::*&)(), WebCore::WindowEventLoop*&, void>(void (WebCore::WindowEventLoop::*&)(), WebCore::WindowEventLoop*&) 20 0x3301523b0 std::__1::__bind_return<void (WebCore::WindowEventLoop::*)(), std::__1::tuple<WebCore::WindowEventLoop*>, std::__1::tuple<>, __is_valid_bind_return<void (WebCore::WindowEventLoop::*)(), std::__1::tuple<WebCore::WindowEventLoop*>, std::__1::tuple<>>::value>::type std::__1::__apply_functor[abi:sn170006]<void (WebCore::WindowEventLoop::*)(), std::__1::tuple<WebCore::WindowEventLoop*>, 0ul, std::__1::tuple<>>(void (WebCore::WindowEventLoop::*&)(), std::__1::tuple<WebCore::WindowEventLoop*>&, std::__1::__tuple_indices<0ul>, std::__1::tuple<>&&) 21 0x330152368 std::__1::__bind_return<void (WebCore::WindowEventLoop::*)(), std::__1::tuple<WebCore::WindowEventLoop*>, std::__1::tuple<>, __is_valid_bind_return<void (WebCore::WindowEventLoop::*)(), std::__1::tuple<WebCore::WindowEventLoop*>, std::__1::tuple<>>::value>::type std::__1::__bind<void (WebCore::WindowEventLoop::*&)(), WebCore::WindowEventLoop*>::operator()[abi:sn170006]<>() 22 0x33015230c WTF::Detail::CallableWrapper<std::__1::__bind<void (WebCore::WindowEventLoop::*&)(), WebCore::WindowEventLoop*>, void>::call() 23 0x32baf63f8 WTF::Function<void ()>::operator()() const 24 0x32bc3d354 WebCore::Timer::fired() 25 0x331294fa8 WebCore::ThreadTimers::sharedTimerFiredInternal() 26 0x33129f574 WebCore::ThreadTimers::setSharedTimer(WebCore::SharedTimer*)::$_0::operator()() const 27 0x33129f520 WTF::Detail::CallableWrapper<WebCore::ThreadTimers::setSharedTimer(WebCore::SharedTimer*)::$_0, void>::call() 28 0x32baf63f8 WTF::Function<void ()>::operator()() const 29 0x33123c0f4 WebCore::MainThreadSharedTimer::fired() 30 0x3313450ac WebCore::timerFired(__CFRunLoopTimer*, void*) 31 0x197d0a5b8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ com.apple.WebKit.WebContent.Development terminated (pid 8502) for reason: crash
Attachments
Radar WebKit Bug Importer
Comment 1 2024-08-19 09:18:19 PDT
David Kilzer (:ddkilzer)
Comment 2 2024-08-19 09:20:45 PDT
Test expectations as of 281902@main (Tue, Aug 06): $ grep -r media/video-playsinline.html LayoutTests/TestExpectations LayoutTests/platform LayoutTests/platform/mac-site-isolation/TestExpectations:media/video-playsinline.html [ Skip ] LayoutTests/platform/glib/TestExpectations:webkit.org/b/261024 media/video-playsinline.html [ Failure Pass ] LayoutTests/platform/ios/TestExpectations:media/video-playsinline.html
EWS
Comment 3 2024-08-20 15:55:59 PDT
Test gardening commit 282525@main (50d318d04432): <https://commits.webkit.org/282525@main> Reviewed commits have been landed. Closing PR #32489 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.