How to reproduce:
1. Open the “AudioCaptureCrash.zip“ project
2. Open the “Build Profiles” window (File → Build Profiles)
3. In “Platform Settings (macOS)” dropdown check the “Create Xcode Project” option
4. Build for macOS
5. Open the generated “[buildName].xcodeproj” project
6. Build for the host machine
7. Observe the crash
Actual result: The app crashes after 40-80 iterations
Expected result: The app does not crash
Reproducible with: 6000.0.23f1, 6000.0.77f1, 6000.3.17f1, 6000.4.11f1, 6000.5.0b12, 6000.6.0a7
Could not test with: 6000.0.0f1, 6000.0.10f1 (Xcode errors)
Reproducible environment: macOS 26.5 (25F71) (M3 Max)
Not reproducible environment: macOS 15.7.3 (M1 Max)
First few lines of the stack trace:
frame #0: 0x000000019f485a98 AudioToolbox`AQ::API::V2Impl::AudioQueueProcessingTapGetSourceAudio(OpaqueAudioQueueProcessingTap*, unsigned int, AudioTimeStamp*, unsigned int*, unsigned int*, AudioBufferList*) + 392
frame #1: 0x000000019eb71880 MediaToolbox`___lldb_unnamed_symbol46797 + 124
frame #2: 0x00000001362348b4 AVProVideo`___lldb_unnamed_symbol512 + 104
frame #3: 0x000000019e7a0094 MediaToolbox`___lldb_unnamed_symbol32457 + 240
frame #4: 0x000000019f49faa4 AudioToolbox`void* caulk::thread_proxy<std::_1::tuple<caulk::thread::attributes, AQ::API::ProcessingTapManager::RTState::RTState(applesauce::xpc::object const&, AQ::API::ProcessingTapAttributes&, int&)::$_0, std::_1::tuple<>>>(void*) + 704
frame #5: 0x000000010248108c libsystem_pthread.dylib`_pthread_start + 136