Bug 277121 - ASSERTION FAILED: Node::scriptExecutionContext() == ActiveDOMObject::scriptExecutionContext() in WebCore::HTMLMediaElement::isSuspended() for fast/events/event-input-contentEditable.html
Summary: ASSERTION FAILED: Node::scriptExecutionContext() == ActiveDOMObject::scriptEx...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-07-25 21:46 PDT by Fujii Hironori
Modified: 2024-08-01 21:47 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fujii Hironori 2024-07-25 21:46:05 PDT
https://build.webkit.org/results/Apple-Ventura-Debug-AppleSilicon-WK1-Tests/279349@main%20(6381)/fast/events/event-input-contentEditable-crash-log.txt

> ASSERTION FAILED: Node::scriptExecutionContext() == ActiveDOMObject::scriptExecutionContext()
> /Volumes/Data/worker/Apple-Ventura-Debug-Build/build/Source/WebCore/html/HTMLMediaElement.cpp(8719) : virtual bool WebCore::HTMLMediaElement::isSuspended() const


History:
  https://results.webkit.org/?suite=layout-tests&test=fast%2Fevents%2Fevent-input-contentEditable.html&style=debug
Comment 1 Fujii Hironori 2024-07-25 21:47:13 PDT
https://build.webkit.org/results/GTK-Linux-64-bit-Debug-Tests/280834@main%20(13834)/fast/events/event-input-contentEditable-crash-log.txt

 ASSERTION FAILED: Node::scriptExecutionContext() == ActiveDOMObject::scriptExecutionContext()
 /app/webkit/Source/WebCore/html/HTMLMediaElement.cpp(8775) : virtual bool WebCore::HTMLMediaElement::isSuspended() const
 1   0x7f256990e387 WebCore::HTMLMediaElement::isSuspended() const
 2   0x7f256a53e11d WebCore::PlatformMediaSession::isSuspended() const
 3   0x7f25699f5b48 WebCore::MediaElementSession::preferredBufferingPolicy() const
 4   0x7f25699f44af WebCore::MediaElementSession::updateClientDataBuffering()
 5   0x7f25699f43d7 WebCore::MediaElementSession::clientDataBufferingTimerFired()
 6   0x7f2569a0c05c void std::__invoke_impl<void, void (WebCore::MediaElementSession::*&)(), WebCore::MediaElementSession*&>(std::__invoke_memfun_deref, void (WebCore::MediaElementSession::*&)(), WebCore::MediaElementSession*&)
 7   0x7f2569a0bfc7 std::__invoke_result<void (WebCore::MediaElementSession::*&)(), WebCore::MediaElementSession*&>::type std::__invoke<void (WebCore::MediaElementSession::*&)(), WebCore::MediaElementSession*&>(void (WebCore::MediaElementSession::*&)(), WebCore::MediaElementSession*&)
 8   0x7f2569a0bf3d void std::_Bind<void (WebCore::MediaElementSession::*(WebCore::MediaElementSession*))()>::__call<void, , 0ul>(std::tuple<>&&, std::_Index_tuple<0ul>)
 9   0x7f2569a0becf void std::_Bind<void (WebCore::MediaElementSession::*(WebCore::MediaElementSession*))()>::operator()<, void>()
 10  0x7f2569a0be98 WTF::Detail::CallableWrapper<std::_Bind<void (WebCore::MediaElementSession::*(WebCore::MediaElementSession*))()>, void>::call()
 11  0x7f2564de9c22 WTF::Function<void ()>::operator()() const
 12  0x7f2564ed319c WebCore::Timer::fired()
 13  0x7f256a4fa620 WebCore::ThreadTimers::sharedTimerFiredInternal()
 14  0x7f256a4f9ee9 operator()
 15  0x7f256a50422e call
 16  0x7f2564de9c22 WTF::Function<void ()>::operator()() const
 17  0x7f256a4a2a49 WebCore::MainThreadSharedTimer::fired()
 18  0x7f256a4acc5a void std::__invoke_impl<void, void (WebCore::MainThreadSharedTimer::*&)(), WebCore::MainThreadSharedTimer*&>(std::__invoke_memfun_deref, void (WebCore::MainThreadSharedTimer::*&)(), WebCore::MainThreadSharedTimer*&)
 19  0x7f256a4acbd3 std::__invoke_result<void (WebCore::MainThreadSharedTimer::*&)(), WebCore::MainThreadSharedTimer*&>::type std::__invoke<void (WebCore::MainThreadSharedTimer::*&)(), WebCore::MainThreadSharedTimer*&>(void (WebCore::MainThreadSharedTimer::*&)(), WebCore::MainThreadSharedTimer*&)
 20  0x7f256a4acb49 void std::_Bind<void (WebCore::MainThreadSharedTimer::*(WebCore::MainThreadSharedTimer*))()>::__call<void, , 0ul>(std::tuple<>&&, std::_Index_tuple<0ul>)
 21  0x7f256a4acadb void std::_Bind<void (WebCore::MainThreadSharedTimer::*(WebCore::MainThreadSharedTimer*))()>::operator()<, void>()
 22  0x7f256a4acaa4 WTF::Detail::CallableWrapper<std::_Bind<void (WebCore::MainThreadSharedTimer::*(WebCore::MainThreadSharedTimer*))()>, void>::call()
 23  0x7f2564de9c22 WTF::Function<void ()>::operator()() const
 24  0x7f2564ed32e6 WTF::RunLoop::Timer::fired()
 25  0x7f25592611d9 operator()
 26  0x7f2559261219 _FUN
 27  0x7f255926063f operator()
 28  0x7f255926068d _FUN
 29  0x7f25595a6d36 g_main_context_dispatch
 30  0x7f25596042b8 g_main_context_iterate.isra.0
 31  0x7f25595a63ff g_main_loop_run
 WebKitWebProcess terminated (pid 130237) for reason: crash
Comment 2 Fujii Hironori 2024-07-26 00:21:17 PDT
The assertion was added by 276714@main.
Comment 3 Fujii Hironori 2024-07-26 01:06:56 PDT
This is reproducible on my PC
Windows port Debug build 281386@main.

> python .\Tools\Scripts\run-webkit-tests --debug  --iter=1000 -f fast/events/drag-text-with-clear.html fast/events/event-handler-detached-document.html fast/events/event-creation.html fast/events/drag-outside-window.html fast/events/event-handler-detached-document-dispatchEvent.html fast/events/event-input-contentEditable.html

[328/6000] fast/events/event-creation.html failed unexpectedly (WebProcess crashed [pid=31412])
[381/6000] fast/events/event-handler-detached-document.html failed unexpectedly (WebProcess crashed [pid=25528])
[546/6000] fast/events/event-input-contentEditable.html failed unexpectedly (WebProcess crashed [pid=34864])
Comment 4 Fujii Hironori 2024-07-27 14:28:55 PDT
fast/events/event-handler-detached-document.html is also flaky crash.
https://results.webkit.org/?suite=layout-tests&test=fast%2Fevents%2Fevent-handler-detached-document.html
https://build.webkit.org/results/Apple-Sonoma-Debug-AppleSilicon-WK1-Tests/280999@main%20(3597)/fast/events/event-handler-detached-document-crash-log.txt

ASSERTION FAILED: Node::scriptExecutionContext() == ActiveDOMObject::scriptExecutionContext()
/Volumes/Data/worker/Apple-Sonoma-Debug-Build/build/Source/WebCore/html/HTMLMediaElement.cpp(8784) : virtual bool WebCore::HTMLMediaElement::isSuspended() const
1   0x127bccdf8 WebCore::HTMLMediaElement::isSuspended() const
2   0x128a65260 WebCore::PlatformMediaSession::isSuspended() const
3   0x127cd790c WebCore::MediaElementSession::preferredBufferingPolicy() const
4   0x127cd717c WebCore::MediaElementSession::updateClientDataBuffering()
5   0x127cd6c10 WebCore::MediaElementSession::clientDataBufferingTimerFired()
6   0x127ced6c4 decltype(*std::declval<WebCore::MediaElementSession*&>().*std::declval<void (WebCore::MediaElementSession::*&)()>()()) std::__1::__invoke[abi:sn170006]<void (WebCore::MediaElementSession::*&)(), WebCore::MediaElementSession*&, void>(void (WebCore::MediaElementSession::*&)(), WebCore::MediaElementSession*&)
7   0x127ced644 std::__1::__bind_return<void (WebCore::MediaElementSession::*)(), std::__1::tuple<WebCore::MediaElementSession*>, std::__1::tuple<>, __is_valid_bind_return<void (WebCore::MediaElementSession::*)(), std::__1::tuple<WebCore::MediaElementSession*>, std::__1::tuple<>>::value>::type std::__1::__apply_functor[abi:sn170006]<void (WebCore::MediaElementSession::*)(), std::__1::tuple<WebCore::MediaElementSession*>, 0ul, std::__1::tuple<>>(void (WebCore::MediaElementSession::*&)(), std::__1::tuple<WebCore::MediaElementSession*>&, std::__1::__tuple_indices<0ul>, std::__1::tuple<>&&)
8   0x127ced5fc std::__1::__bind_return<void (WebCore::MediaElementSession::*)(), std::__1::tuple<WebCore::MediaElementSession*>, std::__1::tuple<>, __is_valid_bind_return<void (WebCore::MediaElementSession::*)(), std::__1::tuple<WebCore::MediaElementSession*>, std::__1::tuple<>>::value>::type std::__1::__bind<void (WebCore::MediaElementSession::*&)(), WebCore::MediaElementSession*>::operator()[abi:sn170006]<>()
9   0x127ced5a0 WTF::Detail::CallableWrapper<std::__1::__bind<void (WebCore::MediaElementSession::*&)(), WebCore::MediaElementSession*>, void>::call()
10  0x126b2dcc0 WTF::Function<void ()>::operator()() const
11  0x12348e298 WebCore::Timer::fired()
12  0x128a0f1e4 WebCore::ThreadTimers::sharedTimerFiredInternal()
13  0x128a19780 WebCore::ThreadTimers::setSharedTimer(WebCore::SharedTimer*)::$_0::operator()() const
14  0x128a1972c WTF::Detail::CallableWrapper<WebCore::ThreadTimers::setSharedTimer(WebCore::SharedTimer*)::$_0, void>::call()
15  0x126b2dcc0 WTF::Function<void ()>::operator()() const
16  0x1289b6524 WebCore::MainThreadSharedTimer::fired()
17  0x128abe700 WebCore::timerFired(__CFRunLoopTimer*, void*)
18  0x18b2c65b8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
19  0x18b2c625c __CFRunLoopDoTimer
20  0x18b2c5d94 __CFRunLoopDoTimers
21  0x18b2a91cc __CFRunLoopRun
22  0x18b2a8434 CFRunLoopRunSpecific
23  0x1024a4508 runTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)
24  0x1024a37d0 runTestingServerLoop()
25  0x1024a2e34 dumpRenderTree(int, char const**)
26  0x1024a4e60 DumpRenderTreeMain(int, char const**)
27  0x10257a02c main
28  0x18ae420e0 start
Comment 5 Radar WebKit Bug Importer 2024-08-01 21:47:14 PDT
<rdar://problem/133035485>