Skip to content

iOS crash : specialized RecorderBytesStreamEngine.attach(result:sampleRate:) com.apple.coreaudio.avfaudio - required condition is false: nullptr == Tap() #487

Description

@Tom3652

I would like to come back to #463 previously fixed and i agree !

However it introduced a new bug still under the same logic apparently :
specialized RecorderBytesStreamEngine.attach(result:sampleRate:) com.apple.coreaudio.avfaudio - required condition is false: nullptr == Tap()

Fatal Exception: com.apple.coreaudio.avfaudio
0  CoreFoundation                 0xc5964 __exceptionPreprocess
1  libobjc.A.dylib                0x31814 objc_exception_throw
2  CoreFoundation                 0x14ee0c -[NSException initWithCoder:]
3  AVFAudio                       0x85cc8 AUGraphNodeBaseV3::CreateRecordingTap(unsigned long, unsigned int, AVAudioFormat*, void (AVAudioPCMBuffer*, AVAudioTime*) block_pointer)
4  AVFAudio                       0x116a4c AVAudioEngineImpl::InstallTapOnNode(AVAudioNode*, unsigned long, unsigned int, AVAudioFormat*, void (AVAudioPCMBuffer*, AVAudioTime*) block_pointer)
5  AVFAudio                       0xebed8 -[AVAudioNode installTapOnBus:bufferSize:format:block:]
6  audio_waveforms                0xe23c specialized RecorderBytesStreamEngine.attach(result:sampleRate:) + 24 (RecorderBytesStreamEngine.swift:24)
7  audio_waveforms                0xc310 specialized AudioRecorder.startRecording(_:_:) + 65 (AudioRecorder.swift:65)
8  audio_waveforms                0x14160 specialized SwiftAudioWaveformsPlugin.handle(_:result:) + 35 (SwiftAudioWaveformsPlugin.swift:35)
9  audio_waveforms                0x1232c @objc SwiftAudioWaveformsPlugin.handle(_:result:) (<compiler-generated>)
10 Flutter                        0x4ff1a4 __45-[FlutterMethodChannel setMethodCallHandler:]_block_invoke + 322 (FlutterChannels.mm:322)
11 Flutter                        0x77c88 ___ZN7flutter25PlatformMessageHandlerIos21HandlePlatformMessageENSt4__fl10unique_ptrINS_15PlatformMessageENS1_14default_deleteIS3_EEEE_block_invoke + 111 (ref_ptr.h:111)
12 libdispatch.dylib              0x1adc _dispatch_call_block_and_release
13 libdispatch.dylib              0x1b7fc _dispatch_client_callout
14 libdispatch.dylib              0x38b10 _dispatch_main_queue_drain.cold.5
15 libdispatch.dylib              0x10ec8 _dispatch_main_queue_drain
16 libdispatch.dylib              0x10e04 _dispatch_main_queue_callback_4CF
17 CoreFoundation                 0x6a2b4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
18 CoreFoundation                 0x1db3c __CFRunLoopRun
19 CoreFoundation                 0x1ca6c _CFRunLoopRunSpecificWithOptions
20 GraphicsServices               0x1498 GSEventRunModal
21 UIKitCore                      0x9ddf8 -[UIApplication _run]
22 UIKitCore                      0x46e54 UIApplicationMain
23 UIKitCore                      0x172938 -[UIScrollView contentInset]
24 Runner                         0x8f08 main (AppDelegate.swift)
25 ???                            0x185d32e28 (Missing)
        

Can you please check ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions