Posts

Post not yet marked as solved
13 Replies
@eskimo I find this problem is caused by GetKaiser(unsigned int, double) in libAudioToolboxUtility.dylib void* GetKaiser(unsigned int, double) { static std::mutex sKaiserWindowsMutex; static std::vectorKaiserWindow sKaiserWindows; } after call _terminateWithStatus, sKaiserWindowsMutex is deconstructed, so SampleRateConverter can't create object of Resampler2 log: SampleRateConverter : failed to create a new converter for rates 44100.00 48000.00 SampleRateConverter : failed to create a new converter for rates 44100.00 48000.00 call stack: (error: mutex lock failed) text thread #62, queue = 'com.apple.coreaudio.auremoteio', stop reason = breakpoint 5.2frame #0: 0x00000001ae3d8dd0 libc++abi.dylib`__cxa_throw  frame #1: 0x00000001ae3af3c8 libc++.1.dylib`std::__1::__throw_system_error(int, char const*) + 100   frame #2: 0x00000001ae3a40fc libc++.1.dylib`std::__1::mutex::lock() + 40   frame #3: 0x00000001aea5e2e8 libAudioToolboxUtility.dylib`GetKaiser(unsigned int, double) + 84   frame #4: 0x00000001aea55cb8 libAudioToolboxUtility.dylib`SincKernel::CalculateFilterCoefficients() + 116   frame #5: 0x00000001aea55b38 libAudioToolboxUtility.dylib`SincKernelFactory::ReferenceSincKernel(int, int, double, double) + 208   frame #6: 0x00000001a9eaf994 AudioToolboxCore`Resampler2::Resampler2(double, double, int, int, int, double, bool) + 884   frame #7: 0x00000001a9dc50a0 AudioToolboxCore`SampleRateConverter::ReplaceResampler() + 304   frame #8: 0x00000001a9eee008 AudioToolboxCore`PCMConverterFactory::AddSRC(StreamDescPair&, ChainBuildSettings const&, std::__1::vectorBufferedAudioConverter*, std::__1::allocatorBufferedAudioConverter* &) + 548   frame #9: 0x00000001a9eeb564 AudioToolboxCore`PCMConverterFactory::BuildConverterChain(StreamDescPair const&, ChainBuildSettings const&, AudioConverterChain*, PCMConverterFactory*) + 1300   frame #10: 0x00000001a9e87ef8 AudioToolboxCore`_AudioConverterNewInternal + 608   frame #11: 0x00000001cb207878 libEmbeddedSystemAUs.dylib`AUConverterBase::SetupConverter(unsigned int, bool) + 1084   frame #12: 0x00000001cb28cce0 libEmbeddedSystemAUs.dylib`AURemoteIO::SetupConverter(unsigned int, bool) + 192   frame #13: 0x00000001cb209308 libEmbeddedSystemAUs.dylib`AUConverterBase::SetupAllConverters(bool, unsigned int) + 156   frame #14: 0x00000001cb29b3e0 libEmbeddedSystemAUs.dylib`__AURIOCallbackReceiver_IOFormatsChanged_block_invoke + 1764   frame #15: 0x000000012bc77bcc libdispatch.dylib`_dispatch_call_block_and_release + 32   frame #16: 0x000000012bc796c0 libdispatch.dylib`_dispatch_client_callout + 20   frame #17: 0x000000012bc81354 libdispatch.dylib`_dispatch_lane_serial_drain + 736   frame #18: 0x000000012bc820c0 libdispatch.dylib`_dispatch_lane_invoke + 448   frame #19: 0x000000012bc8e644 libdispatch.dylib`_dispatch_workloop_worker_thread + 1520   frame #20: 0x00000001e4b33804 libsystem_pthread.dylib`_pthread_wqthread + 276