Skip to content

Fatal Exception: com.apple.coreaudio.avfaudio required condition is false: IsFormatSampleRateAndChannelCountValid(format) #873

@artyorsh

Description

@artyorsh

Description

The app has crashed 270 times out of the total ~550k sessions.

          Fatal Exception: com.apple.coreaudio.avfaudio
0  CoreFoundation                 0xc5994 (Missing UUID b4a0233bf37d3ef6a977e4f36199c5a4)
1  libobjc.A.dylib                0x31814 objc_exception_throw
2  CoreFoundation                 0x14d99c (Missing UUID b4a0233bf37d3ef6a977e4f36199c5a4)
3  AVFAudio                       0x6d254 AVAudioEngineGraph::_Connect(AVAudioNodeImplBase*, AVAudioNodeImplBase*, unsigned int, unsigned int, AVAudioFormat*)
4  AVFAudio                       0x110dcc AVAudioEngineImpl::Connect(AVAudioNode*, AVAudioNode*, unsigned long, unsigned long, AVAudioFormat*)
5  AVFAudio                       0x114d14 -[AVAudioEngine connect:to:format:]
6  app                       0x3cb874 -[AudioEngine rebuildAudioEngine] + 57 (AudioEngine.mm:57)
7  app                       0x3cbaf0 -[AudioEngine rebuildAudioEngineAndStartIfNecessary] + 69 (AudioEngine.mm:69)
8  app                       0x3f35cc -[NotificationManager handleMediaServicesReset:] + 227 (NotificationManager.mm:227)
9  CoreFoundation                 0x50864 (Missing UUID b4a0233bf37d3ef6a977e4f36199c5a4)
10 CoreFoundation                 0x50914 (Missing UUID b4a0233bf37d3ef6a977e4f36199c5a4)
11 CoreFoundation                 0x50770 (Missing UUID b4a0233bf37d3ef6a977e4f36199c5a4)
12 CoreFoundation                 0x50f10 (Missing UUID b4a0233bf37d3ef6a977e4f36199c5a4)
13 Foundation                     0x963254 (Missing UUID 218da4dc727a3341b59e8fdb39a2d7c4)
14 AudioSession                   0x8f88 invocation function for block in avas::client::NotificationStateManager::PostNotificationType(AVAudioSessionNotificationType, NSString*, NSDictionary*, id<AVAudioSecureSessionProtocol>, std::__1::shared_ptr<avas::client::NotificationStateManager>, avas::client::SessionCore const*)
15 libdispatch.dylib              0x1adc _dispatch_call_block_and_release

Steps to reproduce

There's not much that we've configured:

  1. configure AudioManager to use ambient category to mix the playback with other apps
  2. download an .mp3
  3. play.

See the minimal repro attached.

Snack or a link to a repository

https://github.com/artyorsh/AudioAPIAVFAudioIssue

React Native Audio API version

0.10.3

React Native version

0.80.1

Platforms

iOS

JavaScript runtime

Hermes

Workflow

React Native

Architecture

Fabric (New Architecture)

Build type

Release app & production bundle

Device

Real device

Device model

Most probably all iPhone models (iOS 26., 18.5., 18.6.* and 18.7.*)

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions