syedhali / EZAudio

An iOS and macOS audio visualization framework built upon Core Audio useful for anyone doing real-time, low-latency audio processing and visualizations.
Other
4.93k stars 821 forks source link

ios13, iphone 11 max, crash while recording #385

Open manueljmgomes opened 4 years ago

manueljmgomes commented 4 years ago

Hi, I am experiencing some problems, but only on iphone 11 pro max, other iphones, even with ios13, work prefectly.

The stack trace is: Crashed: AURemoteIO::IOThread 0 AudioToolboxCore 0x1b15955d0 CABufferList::BytesConsumed(unsigned int) + 296 1 AudioToolboxCore 0x1b15c26b8 ExtAudioFile::WriteInputProc(OpaqueAudioConverter*, unsigned int*, AudioBufferList*, AudioStreamPacketDescription**, void*) + 120 2 AudioToolboxCore 0x1b15b0098 AudioConverterChain::CallInputProc(unsigned int) + 440 3 AudioToolboxCore 0x1b15b3924 AudioConverterChain::FillBufferFromInputProc(unsigned int*, CABufferList*) + 268 4 AudioToolboxCore 0x1b1594fc4 BufferedAudioConverter::GetInputBytes(unsigned int, unsigned int&, CABufferList const*&) + 200 5 AudioToolboxCore 0x1b171f148 CBRConverter::RenderOutput(CABufferList*, unsigned int, unsigned int&, AudioStreamPacketDescription*) + 120 6 AudioToolboxCore 0x1b15952f0 BufferedAudioConverter::FillBuffer(unsigned int&, AudioBufferList&, AudioStreamPacketDescription*) + 396 7 AudioToolboxCore 0x1b1594f94 BufferedAudioConverter::GetInputBytes(unsigned int, unsigned int&, CABufferList const*&) + 152 8 AudioToolboxCore 0x1b16bcc04 CodecConverter::GetCodecInput(unsigned int&) + 680 9 AudioToolboxCore 0x1b16bbc5c CodecConverter::EncoderFillBuffer(unsigned int&, AudioBufferList&, AudioStreamPacketDescription*) + 740 10 AudioToolboxCore 0x1b16be9e4 CodecConverter::FillBuffer(unsigned int&, AudioBufferList&, AudioStreamPacketDescription*) + 60 11 AudioToolboxCore 0x1b15b03f8 AudioConverterChain::RenderOutput(CABufferList*, unsigned int, unsigned int&, AudioStreamPacketDescription*) + 128 12 AudioToolboxCore 0x1b15952f0 BufferedAudioConverter::FillBuffer(unsigned int&, AudioBufferList&, AudioStreamPacketDescription*) + 396 13 AudioToolboxCore 0x1b163f080 AudioConverterFillComplexBuffer + 352 14 AudioToolboxCore 0x1b15c1e2c ExtAudioFile::WritePacketsFromCallback(int (*)(OpaqueAudioConverter*, unsigned int*, AudioBufferList*, AudioStreamPacketDescription**, void*), void*) + 132 15 AudioToolboxCore 0x1b164bff4 ExtAudioFileWrite + 84 16 EZAudio 0x102a96604 -[EZRecorder appendDataFromBufferList:withBufferSize:] + 68 17 mpscribe 0x1027260b8 specialized GravadorViewController.microphone(_:hasBufferList:withBufferSize:withNumberOfChannels:) + 506 (GravadorViewController.swift:506) 18 mpscribe 0x102724508 @objc GravadorViewController.microphone(_:hasBufferList:withBufferSize:withNumberOfChannels:) + 4366796040 (<compiler-generated>:4366796040) 19 EZAudio 0x102a936a0 EZAudioMicrophoneCallback + 224 20 libEmbeddedSystemAUs.dylib 0x1c25892bc AURemoteIO::PerformIO(unsigned int, unsigned int, unsigned int, AudioTimeStamp const&, AudioTimeStamp const&, AudioBufferList const*, AudioBufferList*, int&) 21 libEmbeddedSystemAUs.dylib 0x1c25cf76c _XPerformIO 22 libAudioToolboxUtility.dylib 0x1af7cd6c4 mshMIGPerform + 268 23 libAudioToolboxUtility.dylib 0x1af7cdae4 MSHMIGDispatchMessage + 40 24 libEmbeddedSystemAUs.dylib 0x1c257f568 AURemoteIO::IOThread::Entry(void*) 25 libAudioToolboxUtility.dylib 0x1af7cb828 CAPThread::Entry(CAPThread*) + 92 26 libsystem_pthread.dylib 0x1a3fc1840 _pthread_start + 168 27 libsystem_pthread.dylib 0x1a3fc99f4 thread_start + 8

LemonSpike commented 3 years ago

https://github.com/syedhali/EZAudio/issues/173 might help?