<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>241449</bug_id>
          
          <creation_ts>2022-06-08 21:39:08 -0700</creation_ts>
          <short_desc>Assertion in AudioOutputUnitAdaptor::configure() when running simulator API tests</short_desc>
          <delta_ts>2022-06-12 21:56:19 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>240692</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1874893</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-06-08 21:39:08 -0700</bug_when>
    <thetext>Running `run-api-tests --no-build --ios-simulator &quot;TestWebKitAPI.GPUProcess.*&quot;` results in several tests that assert here, with an iOS 15.5 SDK:

ASSERTION FAILED: !result
/Volumes/Data/Development/system/webkit/OpenSource/Source/WebCore/platform/audio/ios/AudioOutputUnitAdaptorIOS.cpp(70) : void WebCore::AudioOutputUnitAdaptor::configure(float, unsigned int)
1   0x140c12189 WTFCrash
2   0x16616825b WTFCrashWithInfo(int, char const*, char const*, int)
3   0x166215017 WebCore::AudioOutputUnitAdaptor::configure(float, unsigned int)
4   0x12bf84ed3 WebKit::RemoteAudioDestination::RemoteAudioDestination(WebKit::GPUConnectionToWebProcess&amp;, WTF::ObjectIdentifier&lt;WebKit::RemoteAudioDestinationIdentifierType&gt;, WTF::String const&amp;, unsigned int, unsigned int, float, float, IPC::Semaphore&amp;&amp;)
5   0x12bf84d7d WebKit::RemoteAudioDestination::RemoteAudioDestination(WebKit::GPUConnectionToWebProcess&amp;, WTF::ObjectIdentifier&lt;WebKit::RemoteAudioDestinationIdentifierType&gt;, WTF::String const&amp;, unsigned int, unsigned int, float, float, IPC::Semaphore&amp;&amp;)
6   0x12bf84cb6 WTF::UniqueRef&lt;WebKit::RemoteAudioDestination&gt; WTF::makeUniqueRefWithoutFastMallocCheck&lt;WebKit::RemoteAudioDestination, WebKit::GPUConnectionToWebProcess&amp;, WTF::ObjectIdentifier&lt;WebKit::RemoteAudioDestinationIdentifierType&gt;&amp;, WTF::String const&amp;, unsigned int&amp;, unsigned int&amp;, float&amp;, float&amp;, IPC::Semaphore&gt;(WebKit::GPUConnectionToWebProcess&amp;, WTF::ObjectIdentifier&lt;WebKit::RemoteAudioDestinationIdentifierType&gt;&amp;, WTF::String const&amp;, unsigned int&amp;, unsigned int&amp;, float&amp;, float&amp;, IPC::Semaphore&amp;&amp;)
7   0x12bf82661 WTF::UniqueRef&lt;WebKit::RemoteAudioDestination&gt; WTF::makeUniqueRef&lt;WebKit::RemoteAudioDestination, WebKit::GPUConnectionToWebProcess&amp;, WTF::ObjectIdentifier&lt;WebKit::RemoteAudioDestinationIdentifierType&gt;&amp;, WTF::String const&amp;, unsigned int&amp;, unsigned int&amp;, float&amp;, float&amp;, IPC::Semaphore&gt;(WebKit::GPUConnectionToWebProcess&amp;, WTF::ObjectIdentifier&lt;WebKit::RemoteAudioDestinationIdentifierType&gt;&amp;, WTF::String const&amp;, unsigned int&amp;, unsigned int&amp;, float&amp;, float&amp;, IPC::Semaphore&amp;&amp;)
8   0x12bf823f9 WebKit::RemoteAudioDestinationManager::createAudioDestination(WTF::String const&amp;, unsigned int, unsigned int, float, float, IPC::Semaphore&amp;&amp;, WTF::CompletionHandler&lt;void (WTF::ObjectIdentifier&lt;WebKit::RemoteAudioDestinationIdentifierType&gt;)&gt;&amp;&amp;)
9   0x12c5ef748 void IPC::callMemberFunctionImpl&lt;WebKit::RemoteAudioDestinationManager, void (WebKit::RemoteAudioDestinationManager::*)(WTF::String const&amp;, unsigned int, unsigned int, float, float, IPC::Semaphore&amp;&amp;, WTF::CompletionHandler&lt;void (WTF::ObjectIdentifier&lt;WebKit::RemoteAudioDestinationIdentifierType&gt;)&gt;&amp;&amp;), void (WTF::ObjectIdentifier&lt;WebKit::RemoteAudioDestinationIdentifierType&gt;), std::__1::tuple&lt;WTF::String, unsigned int, unsigned int, float, float, IPC::Semaphore&gt;, 0ul, 1ul, 2ul, 3ul, 4ul, 5ul&gt;(WebKit::RemoteAudioDestinationManager*, void (WebKit::RemoteAudioDestinationManager::*)(WTF::String const&amp;, unsigned int, unsigned int, float, float, IPC::Semaphore&amp;&amp;, WTF::CompletionHandler&lt;void (WTF::ObjectIdentifier&lt;WebKit::RemoteAudioDestinationIdentifierType&gt;)&gt;&amp;&amp;), WTF::CompletionHandler&lt;void (WTF::ObjectIdentifier&lt;WebKit::RemoteAudioDestinationIdentifierType&gt;)&gt;&amp;&amp;, std::__1::tuple&lt;WTF::String, unsigned int, unsigned int, float, float, IPC::Semaphore&gt;&amp;&amp;, std::__1::integer_sequence&lt;unsigned long, 0ul, 1ul, 2ul, 3ul, 4ul, 5ul&gt;)
10  0x12c5eb262 void IPC::callMemberFunction&lt;WebKit::RemoteAudioDestinationManager, void (WebKit::RemoteAudioDestinationManager::*)(WTF::String const&amp;, unsigned int, unsigned int, float, float, IPC::Semaphore&amp;&amp;, WTF::CompletionHandler&lt;void (WTF::ObjectIdentifier&lt;WebKit::RemoteAudioDestinationIdentifierType&gt;)&gt;&amp;&amp;), void (WTF::ObjectIdentifier&lt;WebKit::RemoteAudioDestinationIdentifierType&gt;), std::__1::tuple&lt;WTF::String, unsigned int, unsigned int, float, float, IPC::Semaphore&gt;, std::__1::integer_sequence&lt;unsigned long, 0ul, 1ul, 2ul, 3ul, 4ul, 5ul&gt; &gt;(std::__1::tuple&lt;WTF::String, unsigned int, unsigned int, float, float, IPC::Semaphore&gt;&amp;&amp;, WTF::CompletionHandler&lt;void (WTF::ObjectIdentifier&lt;WebKit::RemoteAudioDestinationIdentifierType&gt;)&gt;&amp;&amp;, WebKit::RemoteAudioDestinationManager*, void (WebKit::RemoteAudioDestinationManager::*)(WTF::String const&amp;, unsigned int, unsigned int, float, float, IPC::Semaphore&amp;&amp;, WTF::CompletionHandler&lt;void (WTF::ObjectIdentifier&lt;WebKit::RemoteAudioDestinationIdentifierType&gt;)&gt;&amp;&amp;))
11  0x12c5a3181 bool IPC::handleMessageSynchronous&lt;Messages::RemoteAudioDestinationManager::CreateAudioDestination, WebKit::RemoteAudioDestinationManager, void (WebKit::RemoteAudioDestinationManager::*)(WTF::String const&amp;, unsigned int, unsigned int, float, float, IPC::Semaphore&amp;&amp;, WTF::CompletionHandler&lt;void (WTF::ObjectIdentifier&lt;WebKit::RemoteAudioDestinationIdentifierType&gt;)&gt;&amp;&amp;)&gt;(IPC::Connection&amp;, IPC::Decoder&amp;, WTF::UniqueRef&lt;IPC::Encoder&gt;&amp;, WebKit::RemoteAudioDestinationManager*, void (WebKit::RemoteAudioDestinationManager::*)(WTF::String const&amp;, unsigned int, unsigned int, float, float, IPC::Semaphore&amp;&amp;, WTF::CompletionHandler&lt;void (WTF::ObjectIdentifier&lt;WebKit::RemoteAudioDestinationIdentifierType&gt;)&gt;&amp;&amp;))
12  0x12c5a2f42 WebKit::RemoteAudioDestinationManager::didReceiveSyncMessage(IPC::Connection&amp;, IPC::Decoder&amp;, WTF::UniqueRef&lt;IPC::Encoder&gt;&amp;)
13  0x12c6b879e WebKit::RemoteAudioDestinationManager::didReceiveSyncMessageFromWebProcess(IPC::Connection&amp;, IPC::Decoder&amp;, WTF::UniqueRef&lt;IPC::Encoder&gt;&amp;)
14  0x12c6b83db WebKit::GPUConnectionToWebProcess::dispatchSyncMessage(IPC::Connection&amp;, IPC::Decoder&amp;, WTF::UniqueRef&lt;IPC::Encoder&gt;&amp;)
15  0x12c4fccd1 WebKit::GPUConnectionToWebProcess::didReceiveSyncMessage(IPC::Connection&amp;, IPC::Decoder&amp;, WTF::UniqueRef&lt;IPC::Encoder&gt;&amp;)
16  0x12cec735a IPC::Connection::dispatchSyncMessage(IPC::Decoder&amp;)
17  0x12cec7f5b IPC::Connection::dispatchMessage(std::__1::unique_ptr&lt;IPC::Decoder, std::__1::default_delete&lt;IPC::Decoder&gt; &gt;)
18  0x12cec13f3 IPC::Connection::SyncMessageState::ConnectionAndIncomingMessage::dispatch()
19  0x12cec1688 IPC::Connection::SyncMessageState::dispatchMessagesAndResetDidScheduleDispatchMessagesForConnection(IPC::Connection&amp;)
20  0x12ced97ac IPC::Connection::SyncMessageState::processIncomingMessage(IPC::Connection&amp;, std::__1::unique_ptr&lt;IPC::Decoder, std::__1::default_delete&lt;IPC::Decoder&gt; &gt;&amp;)::$_5::operator()()
21  0x12ced96d9 WTF::Detail::CallableWrapper&lt;IPC::Connection::SyncMessageState::processIncomingMessage(IPC::Connection&amp;, std::__1::unique_ptr&lt;IPC::Decoder, std::__1::default_delete&lt;IPC::Decoder&gt; &gt;&amp;)::$_5, void&gt;::call()
22  0x140c3e0d2 WTF::Function&lt;void ()&gt;::operator()() const
23  0x140ccd5e2 WTF::RunLoop::performWork()
24  0x140cd0f0e WTF::RunLoop::performWork(void*)
25  0x110530833 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
26  0x11053072b __CFRunLoopDoSource0
27  0x11052fbf8 __CFRunLoopDoSources0
28  0x11052a2f4 __CFRunLoopRun
29  0x110529a90 CFRunLoopRunSpecific
30  0x110e79e31 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
31  0x110e7a04f -[NSRunLoop(NSRunLoop) run]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1874894</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-06-08 21:39:21 -0700</bug_when>
    <thetext>&lt;rdar://problem/94691398&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1874896</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-06-08 21:53:08 -0700</bug_when>
    <thetext>I tried a second time and saw no assertions. Maybe it depends on some other state on the system?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1874897</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-06-08 21:54:28 -0700</bug_when>
    <thetext>Given the line numbers in bug 240692, it looks like `AudioUnitSetProperty` is the call that returns an error.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>