Bug 226699 - Flaky assertion hit in AudioSessionRoutingArbitratorProxy::endRoutingArbitration()
Summary: Flaky assertion hit in AudioSessionRoutingArbitratorProxy::endRoutingArbitrat...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-06-06 11:23 PDT by Chris Dumez
Modified: 2021-06-06 20:54 PDT (History)
9 users (show)

See Also:


Attachments
Patch (2.01 KB, patch)
2021-06-06 11:27 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2021-06-06 11:23:01 PDT
Flaky assertion hit in AudioSessionRoutingArbitratorProxy::endRoutingArbitration() is seen on the bots (Wk2 Debug):

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.JavaScriptCore      	0x00000001031fc104 WTFCrash + 20 (Assertions.cpp:321)
1   com.apple.WebCore             	0x000000011fae5280 WTFCrashWithInfo(int, char const*, char const*, int) + 32 (Assertions.h:697)
2   com.apple.WebCore             	0x0000000120cabf40 WebCore::SharedRoutingArbitrator::endRoutingArbitrationForToken(WebCore::SharedRoutingArbitrator::Token const&) + 112 (SharedRoutingArbitrator.mm:123)
3   com.apple.WebKit              	0x000000010cbb1880 WebKit::AudioSessionRoutingArbitratorProxy::endRoutingArbitration() + 68 (AudioSessionRoutingArbitratorProxyCocoa.mm:73)
4   com.apple.WebKit              	0x000000010b4fae84 void IPC::callMemberFunctionImpl<WebKit::AudioSessionRoutingArbitratorProxy, void (WebKit::AudioSessionRoutingArbitratorProxy::*)(), std::__1::tuple<> >(WebKit::AudioSessionRoutingArbitratorProxy*, void (WebKit::AudioSessionRoutingArbitratorProxy::*)(), std::__1::tuple<>&&, std::__1::integer_sequence<unsigned long>) + 116 (HandleMessage.h:43)
5   com.apple.WebKit              	0x000000010b4fa9bc void IPC::callMemberFunction<WebKit::AudioSessionRoutingArbitratorProxy, void (WebKit::AudioSessionRoutingArbitratorProxy::*)(), std::__1::tuple<>, std::__1::integer_sequence<unsigned long> >(std::__1::tuple<>&&, WebKit::AudioSessionRoutingArbitratorProxy*, void (WebKit::AudioSessionRoutingArbitratorProxy::*)()) + 124 (HandleMessage.h:49)
6   com.apple.WebKit              	0x000000010b4f7174 void IPC::handleMessage<Messages::AudioSessionRoutingArbitratorProxy::EndRoutingArbitration, WebKit::AudioSessionRoutingArbitratorProxy, void (WebKit::AudioSessionRoutingArbitratorProxy::*)()>(IPC::Decoder&, WebKit::AudioSessionRoutingArbitratorProxy*, void (WebKit::AudioSessionRoutingArbitratorProxy::*)()) + 160 (HandleMessage.h:119)
7   com.apple.WebKit              	0x000000010b4f6ed8 WebKit::AudioSessionRoutingArbitratorProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&) + 200 (AudioSessionRoutingArbitratorProxyMessageReceiver.cpp:82)
8   com.apple.WebKit              	0x000000010ba8bba0 IPC::MessageReceiverMap::dispatchMessage(IPC::Connection&, IPC::Decoder&) + 384 (MessageReceiverMap.cpp:129)
9   com.apple.WebKit              	0x000000010cad0144 WebKit::AuxiliaryProcessProxy::dispatchMessage(IPC::Connection&, IPC::Decoder&) + 44 (AuxiliaryProcessProxy.cpp:227)
10  com.apple.WebKit              	0x000000010cdca8dc WebKit::WebProcessProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&) + 48 (WebProcessProxy.cpp:819)
11  com.apple.WebKit              	0x000000010b553470 IPC::Connection::dispatchMessage(IPC::Decoder&) + 496 (Connection.cpp:1058)
12  com.apple.WebKit              	0x000000010b553bb8 IPC::Connection::dispatchMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >) + 632 (Connection.cpp:1103)
13  com.apple.WebKit              	0x000000010b552160 IPC::Connection::dispatchIncomingMessages() + 728 (Connection.cpp:1207)
14  com.apple.WebKit              	0x000000010b576ba4 IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >)::$_12::operator()() + 56 (Connection.cpp:1025)
15  com.apple.WebKit              	0x000000010b576aac WTF::Detail::CallableWrapper<IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >)::$_12, void>::call() + 28 (Function.h:53)
16  com.apple.JavaScriptCore      	0x0000000103225968 WTF::Function<void ()>::operator()() const + 124 (Function.h:82)
17  com.apple.JavaScriptCore      	0x00000001032a7fdc WTF::RunLoop::performWork() + 316 (RunLoop.cpp:133)
18  com.apple.JavaScriptCore      	0x00000001032acd08 WTF::RunLoop::performWork(void*) + 44 (RunLoopCF.cpp:46)
19  com.apple.CoreFoundation      	0x0000000184d22ad4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
Comment 1 Chris Dumez 2021-06-06 11:27:46 PDT
Created attachment 430688 [details]
Patch
Comment 2 EWS 2021-06-06 20:53:27 PDT
Committed r278541 (238539@main): <https://commits.webkit.org/238539@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 430688 [details].
Comment 3 Radar WebKit Bug Importer 2021-06-06 20:54:18 PDT
<rdar://problem/78933088>