Bug 229810

Summary: [ iOS ] SHOULD NEVER BE REACHED ./Modules/mediastream/MediaStreamTrack.cpp(294) : WebCore::DoubleRange WebCore::capabilityDoubleRange(const WebCore::CapabilityValueOrRange &)
Product: WebKit Reporter: ayumi_kojima
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: bfulgham, ehutchison, eric.carlson, webkit-bot-watchers-bugzilla, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: iPhone / iPad   
OS: Unspecified   

Description ayumi_kojima 2021-09-02 09:14:52 PDT
fast/mediastream/get-display-media-capabilities.html

Is crashing on iOS 14 E debug and failing on iOS 14 E release. 

The failure is also showing on iOS-14-Simulator-WK2-Tests-EWS as a pre-existing test failure.

History: https://results.webkit.org/?suite=layout-tests&test=fast%2Fmediastream%2Fget-display-media-capabilities.html

Crash log:

SHOULD NEVER BE REACHED
./Modules/mediastream/MediaStreamTrack.cpp(294) : WebCore::DoubleRange WebCore::capabilityDoubleRange(const WebCore::CapabilityValueOrRange &)
1   0x30583c0d9 WTFCrash
2   0x30e332f0b WTFCrashWithInfo(int, char const*, char const*, int)
3   0x31071c77d WebCore::capabilityDoubleRange(WebCore::CapabilityValueOrRange const&)
4   0x31071c0dd WebCore::MediaStreamTrack::getCapabilities() const
5   0x30f4acc10 WebCore::jsMediaStreamTrackPrototypeFunction_getCapabilitiesBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSMediaStreamTrack*)
6   0x30f4acb0c long long WebCore::IDLOperation<WebCore::JSMediaStreamTrack>::call<&(WebCore::jsMediaStreamTrackPrototypeFunction_getCapabilitiesBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSMediaStreamTrack*)), (WebCore::CastedThisErrorBehavior)0>(JSC::JSGlobalObject&, JSC::CallFrame&, char const*)
7   0x30f4abdb4 WebCore::jsMediaStreamTrackPrototypeFunction_getCapabilities(JSC::JSGlobalObject*, JSC::CallFrame*)
8   0x59a7e3c011d8
9   0x305eff4d9 llint_entry
10  0x305eff4d9 llint_entry
11  0x305eff431 llint_entry
12  0x305eff4d9 llint_entry
13  0x305eff431 llint_entry
14  0x305edc430 vmEntryToJavaScript
15  0x306ec64bb JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*)
16  0x306ec6c1c JSC::Interpreter::executeCall(JSC::JSGlobalObject*, JSC::JSObject*, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&)
17  0x3072b9aad JSC::call(JSC::JSGlobalObject*, JSC::JSValue, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&)
18  0x3072b9d83 JSC::profiledCall(JSC::JSGlobalObject*, JSC::ProfilingReason, JSC::JSValue, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&)
19  0x307556631 JSC::JSMicrotask::run(JSC::JSGlobalObject*)
20  0x310d030de WebCore::JSExecState::runTask(JSC::JSGlobalObject*, JSC::Microtask&)
21  0x310d0a08b WebCore::JSMicrotaskCallback::call()
22  0x310d09ec4 WebCore::JSDOMWindowBase::queueMicrotaskToEventLoop(JSC::JSGlobalObject&, WTF::Ref<JSC::Microtask, WTF::RawPtrTraits<JSC::Microtask> >&&)::$_40::operator()()
23  0x310d09dae WTF::Detail::CallableWrapper<WebCore::JSDOMWindowBase::queueMicrotaskToEventLoop(JSC::JSGlobalObject&, WTF::Ref<JSC::Microtask, WTF::RawPtrTraits<JSC::Microtask> >&&)::$_40, void>::call()
24  0x30e34df22 WTF::Function<void ()>::operator()() const
25  0x3114b52ce WebCore::EventLoopFunctionDispatchTask::execute()
26  0x3114fe84b WebCore::MicrotaskQueue::performMicrotaskCheckpoint()
27  0x3114aaa11 WebCore::EventLoop::run()
28  0x311651f8c WebCore::WindowEventLoop::didReachTimeToRun()
29  0x311655467 decltype(*(std::__1::forward<WebCore::WindowEventLoop*&>(fp0)).*fp()) std::__1::__invoke<void (WebCore::WindowEventLoop::*&)(), WebCore::WindowEventLoop*&, void>(void (WebCore::WindowEventLoop::*&)(), WebCore::WindowEventLoop*&)
30  0x3116553e0 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<>&&)
31  0x311655399 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()<>()
com.apple.WebKit.WebContent.Development terminated (pid 1274) because the process crashed

Diff:

--- /Volumes/Data/worker/ios-simulator-14-release-tests-wk2/build/layout-test-results/fast/mediastream/get-display-media-capabilities-expected.txt
+++ /Volumes/Data/worker/ios-simulator-14-release-tests-wk2/build/layout-test-results/fast/mediastream/get-display-media-capabilities-actual.txt
@@ -1,3 +1,3 @@
 
-PASS check capabilities
+FAIL check capabilities assert_equals: expected 1 but got 45
Comment 1 ayumi_kojima 2021-09-02 09:16:05 PDT
The test has been failing/ crashing since it is added at https://trac.webkit.org/changeset/281880/webkit
Comment 2 Radar WebKit Bug Importer 2021-09-02 09:16:43 PDT
<rdar://problem/82678194>
Comment 3 ayumi_kojima 2021-09-02 09:22:51 PDT
Marked expectations : https://trac.webkit.org/changeset/281927/webkit
Comment 4 ayumi_kojima 2021-09-02 09:38:56 PDT
Per Eric's request, updated expectations so that the test skip on iOS: https://trac.webkit.org/changeset/281929/webkit
Comment 5 Brent Fulgham 2022-06-23 14:09:13 PDT
*** Bug 229812 has been marked as a duplicate of this bug. ***