Bug 232315 - ASSERTION FAILED: m_wrapper in JSEventListener::ensureJSFunction on media/track/track-disabled.html (flaky)
Summary: ASSERTION FAILED: m_wrapper in JSEventListener::ensureJSFunction on media/tra...
Status: RESOLVED CONFIGURATION CHANGED
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
: 232446 232585 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-10-26 10:20 PDT by Eric Hutchison
Modified: 2022-06-23 14:45 PDT (History)
8 users (show)

See Also:


Attachments
Crash Log (156.74 KB, text/plain)
2021-10-26 10:20 PDT, Eric Hutchison
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Hutchison 2021-10-26 10:20:07 PDT
Created attachment 442504 [details]
Crash Log

media/track/track-disabled.html

is a flaky crash on Catalina Debug wk1 on EWS only.

History: https://results.webkit.org/?suite=layout-tests&test=media/track/track-disabled.html

Build:https://ews-build.webkit.org/#/builders/56/builds/18394

Results: https://ews-build.s3-us-west-2.amazonaws.com/macOS-Catalina-Debug-WK1-Tests-EWS/r442472-18394/results.html

Crash Log (attached): https://ews-build.s3-us-west-2.amazonaws.com/macOS-Catalina-Debug-WK1-Tests-EWS/r442472-18394/media/track/track-disabled-crash-log.txt

CRASHING TEST: media/track/track-disabled.html

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.JavaScriptCore      	0x000000011126fb6e WTFCrash + 14 (Assertions.cpp:321)
1   com.apple.WebCore             	0x00000001356b432b WTFCrashWithInfo(int, char const*, char const*, int) + 27
2   com.apple.WebCore             	0x00000001382eb38f WebCore::JSEventListener::ensureJSFunction(WebCore::ScriptExecutionContext&) const + 639 (JSEventListener.h:129)
3   com.apple.WebCore             	0x00000001382ea684 WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext&, WebCore::Event&) + 212 (JSEventListener.cpp:117)
4   com.apple.WebCore             	0x0000000138b71c97 WebCore::EventTarget::innerInvokeEventListeners(WebCore::Event&, WTF::Vector<WTF::RefPtr<WebCore::RegisteredEventListener, WTF::RawPtrTraits<WebCore::RegisteredEventListener>, WTF::DefaultRefDerefTraits<WebCore::RegisteredEventListener> >, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>, WebCore::EventTarget::EventInvokePhase) + 1063 (EventTarget.cpp:345)
5   com.apple.WebCore             	0x0000000138b716f4 WebCore::EventTarget::fireEventListeners(WebCore::Event&, WebCore::EventTarget::EventInvokePhase) + 356 (EventTarget.cpp:276)
6   com.apple.WebCore             	0x0000000138b4103a WebCore::EventContext::handleLocalEvents(WebCore::Event&, WebCore::EventTarget::EventInvokePhase) const + 938 (EventContext.cpp:96)
7   com.apple.WebCore             	0x0000000138b68195 WebCore::dispatchEventInDOM(WebCore::Event&, WebCore::EventPath const&) + 149 (EventDispatcher.cpp:93)
8   com.apple.WebCore             	0x0000000138b67a0e WebCore::EventDispatcher::dispatchEvent(WebCore::Node&, WebCore::Event&) + 1134 (EventDispatcher.cpp:191)
9   com.apple.WebCore             	0x0000000138c0a8ad WebCore::Node::dispatchEvent(WebCore::Event&) + 29 (Node.cpp:2385)
10  com.apple.WebCore             	0x0000000139129747 WebCore::HTMLTrackElement::didCompleteLoad(WebCore::HTMLTrackElement::LoadStatus) + 135 (HTMLTrackElement.cpp:253)
11  com.apple.WebCore             	0x00000001393cc2c5 WebCore::LoadableTextTrack::scheduleLoad(WTF::URL const&)::$_1::operator()() + 309 (LoadableTextTrack.cpp:98)
12  com.apple.WebCore             	0x00000001393cc13e WTF::Detail::CallableWrapper<WebCore::LoadableTextTrack::scheduleLoad(WTF::URL const&)::$_1, void>::call() + 30 (Function.h:53)
13  com.apple.WebCore             	0x00000001356cd232 WTF::Function<void ()>::operator()() const + 130 (Function.h:82)
14  com.apple.WebCore             	0x0000000139139655 WebCore::HTMLTrackElement::scheduleTask(WTF::Function<void ()>&&)::$_3::operator()() + 21 (HTMLTrackElement.cpp:208)
15  com.apple.WebCore             	0x000000013913958e WTF::Detail::CallableWrapper<WebCore::HTMLTrackElement::scheduleTask(WTF::Function<void ()>&&)::$_3, void>::call() + 30 (Function.h:53)
16  com.apple.WebCore             	0x00000001356cd232 WTF::Function<void ()>::operator()() const + 130 (Function.h:82)
17  com.apple.WebCore             	0x0000000139138dae void WebCore::ActiveDOMObject::queueTaskKeepingObjectAlive<WebCore::HTMLTrackElement>(WebCore::HTMLTrackElement&, WebCore::TaskSource, WTF::Function<void ()>&&)::'lambda'()::operator()() const + 30 (ActiveDOMObject.h:111)
18  com.apple.WebCore             	0x00000001391389fe WTF::Detail::CallableWrapper<void WebCore::ActiveDOMObject::queueTaskKeepingObjectAlive<WebCore::HTMLTrackElement>(WebCore::HTMLTrackElement&, WebCore::TaskSource, WTF::Function<void ()>&&)::'lambda'(), void>::call() + 30 (Function.h:53)
19  com.apple.WebCore             	0x00000001356cd232 WTF::Function<void ()>::operator()() const + 130 (Function.h:82)
20  com.apple.WebCore             	0x0000000138b7593e WebCore::EventLoopFunctionDispatchTask::execute() + 30 (EventLoop.cpp:159)
21  com.apple.WebCore             	0x0000000138b6b095 WebCore::EventLoop::run() + 373 (EventLoop.cpp:124)
22  com.apple.WebCore             	0x0000000138d1243c WebCore::WindowEventLoop::didReachTimeToRun() + 44 (WindowEventLoop.cpp:121)
23  com.apple.WebCore             	0x0000000138d158b7 decltype(*(std::__1::forward<WebCore::WindowEventLoop*&>(fp0)).*fp()) std::__1::__invoke<void (WebCore::WindowEventLoop::*&)(), WebCore::WindowEventLoop*&, void>(void (WebCore::WindowEventLoop::*&)(), WebCore::WindowEventLoop*&) + 119 (type_traits:4366)
24  com.apple.WebCore             	0x0000000138d15830 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<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<>&&) + 64 (functional:2716)
25  com.apple.WebCore             	0x0000000138d157e9 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()<>() + 41 (functional:2749)
26  com.apple.WebCore             	0x0000000138d1576e WTF::Detail::CallableWrapper<std::__1::__bind<void (WebCore::WindowEventLoop::*&)(), WebCore::WindowEventLoop*>, void>::call() + 30 (Function.h:53)
27  com.apple.WebCore             	0x00000001356cd232 WTF::Function<void ()>::operator()() const + 130 (Function.h:82)
28  com.apple.WebCore             	0x00000001356f6ebe WebCore::Timer::fired() + 30 (Timer.h:136)
29  com.apple.WebCore             	0x0000000139d682c4 WebCore::ThreadTimers::sharedTimerFiredInternal() + 708 (ThreadTimers.cpp:127)
30  com.apple.WebCore             	0x0000000139d754b1 WebCore::ThreadTimers::setSharedTimer(WebCore::SharedTimer*)::$_0::operator()() const + 33 (ThreadTimers.cpp:67)
31  com.apple.WebCore             	0x0000000139d7543e WTF::Detail::CallableWrapper<WebCore::ThreadTimers::setSharedTimer(WebCore::SharedTimer*)::$_0, void>::call() + 30 (Function.h:53)
32  com.apple.WebCore             	0x00000001356cd232 WTF::Function<void ()>::operator()() const + 130 (Function.h:82)
33  com.apple.WebCore             	0x0000000139d0ebeb WebCore::MainThreadSharedTimer::fired() + 139 (MainThreadSharedTimer.cpp:84)
34  com.apple.WebCore             	0x0000000139dfc576 WebCore::timerFired(__CFRunLoopTimer*, void*) + 38 (MainThreadSharedTimerCF.cpp:86)
35  com.apple.CoreFoundation      	0x00007fff31035468 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
36  com.apple.CoreFoundation      	0x00007fff31034fce __CFRunLoopDoTimer + 872
37  com.apple.CoreFoundation      	0x00007fff31034ab9 __CFRunLoopDoTimers + 322
38  com.apple.CoreFoundation      	0x00007fff3101970d __CFRunLoopRun + 1885
39  com.apple.CoreFoundation      	0x00007fff31018953 CFRunLoopRunSpecific + 466
40  DumpRenderTree                	0x000000010ed2a4a4 runTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 3348 (DumpRenderTree.mm:1965)
41  DumpRenderTree                	0x000000010ed296ea runTestingServerLoop() + 218 (DumpRenderTree.mm:1078)
42  DumpRenderTree                	0x000000010ed28f28 dumpRenderTree(int, char const**) + 616 (DumpRenderTree.mm:1192)
43  DumpRenderTree                	0x000000010ed2b052 DumpRenderTreeMain(int, char const**) + 114 (DumpRenderTree.mm:1309)
44  DumpRenderTree                	0x000000010ee18742 main + 34 (DumpRenderTreeMain.mm:34)
45  libdyld.dylib                 	0x00007fff6b13ccc9 start + 1

I do not have a platform available to attempt local reproduction.
Comment 1 Radar WebKit Bug Importer 2021-10-26 10:21:44 PDT
<rdar://problem/84669575>
Comment 2 Eric Hutchison 2021-10-26 10:28:58 PDT
Updated test expectations at https://trac.webkit.org/changeset/284877/webkit
Comment 3 Eric Hutchison 2021-11-01 15:10:26 PDT
*** Bug 232585 has been marked as a duplicate of this bug. ***
Comment 4 Eric Hutchison 2021-11-01 15:11:28 PDT
*** Bug 232446 has been marked as a duplicate of this bug. ***
Comment 5 Brent Fulgham 2022-06-23 14:45:19 PDT
Jer Noble confirmed this is no longer an issue as of 5/3/2022.