sonobus
sonobus copied to clipboard
Input sample rate related crash on launch with macOS Monterey 12.2.1
Hey there, hope you are all well. I've just installed SonoBus, and have unfortunately hit a snag when launching the app. I think I've narrowed down the cause to a mismatch between the sample rate of the input and output device. Lmk if this should actually be filed upstream with JUCE.
Steps to reproduce:
- Set system input to
Logitech HD Pro Webcam C920
, or another input that has a max sample rate of 32000 Hz. - Set system output to
MacBook Pro Speakers
(default sample rate of 48000 Hz). - Launch SonoBus and observe crash.
Similar crash:
- Set the system I/O devices to
MacBook Pro Microphone
andMacBook Pro Speakers
. - Launch SonoBus.
- Set SonoBus Output to
<<none>>
. - Set SonoBus Input to
Logitech HD Pro Webcam C920
. - Set SonoBus Output to
MacBook Pro Speakers
and observe crash.
Workaround:
Set system input and output to devices with matching sample rates, and launch SonoBus. You can then disable the output device and use the input device with limited sample rate, or use another output device that has a sample rate that matches your input.
Truncated crash report
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: SonoBus [2531]
Path: /Applications/SonoBus.app/Contents/MacOS/SonoBus
Identifier: com.Sonosaurus.SonoBus
Version: 1.4.9 (72)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2022-02-25 21:53:19.5534 -0800
OS Version: macOS 12.2.1 (21D62)
Report Version: 12
Bridge OS Version: 6.2 (19P744)
Anonymous UUID: FF07F3B8-F1F6-9F45-FC1C-4298373EAA57
Time Awake Since Boot: 1400 seconds
System Integrity Protection: enabled
Crashed Thread: 9 MacBook Pro Speakers
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [2531]
VM Region Info: 0 is not in any region. Bytes before following region: 4542767104
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 10ec52000-10f346000 [ 7120K] r-x/r-x SM=COW ...MacOS/SonoBus
Thread 0:: JUCE Message Thread Dispatch queue: com.apple.main-thread
0 SonoBus 0x10ee951d8 juce::SortedSet<juce::LookAndFeel::ColourSetting, juce::DummyCriticalSection>::add(juce::LookAndFeel::ColourSetting const&) + 56
1 SonoBus 0x10ed92262 SonoLookAndFeel::SonoLookAndFeel() + 4898
2 SonoBus 0x10edd358c SonobusAudioProcessorEditor::SonobusAudioProcessorEditor(SonobusAudioProcessor&) + 2908
3 SonoBus 0x10edf29f2 SonobusAudioProcessor::createEditor() + 34
4 SonoBus 0x10ee84464 juce::AudioProcessor::createEditorIfNeeded() + 84
5 SonoBus 0x10ed978c3 juce::StandaloneFilterWindow::MainContentComponent::MainContentComponent(juce::StandaloneFilterWindow&) + 851
6 SonoBus 0x10ed95dfe juce::SonobusStandaloneFilterApp::createWindow() + 862
7 SonoBus 0x10ed93959 juce::SonobusStandaloneFilterApp::initialise(juce::String const&) + 825
8 SonoBus 0x10efcf2cc juce::JUCEApplicationBase::initialiseApp() + 652
9 SonoBus 0x10ef519ab juce::JUCEApplication::initialiseApp() + 11
10 SonoBus 0x10ecb44d3 main + 147
11 dyld 0x11e9a34fe start + 462
Thread 1:
0 libsystem_pthread.dylib 0x7ff80123efec start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x7ff80123efec start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x7ff80123efec start_wqthread + 0
Thread 4:: SonoBusSendThread
0 libsystem_kernel.dylib 0x7ff801209506 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x7ff801243a69 _pthread_cond_wait + 1224
2 libc++.1.dylib 0x7ff8011a2f53 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lockstd::__1::mutex&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 93
3 SonoBus 0x10efe02b2 juce::WaitableEvent::wait(int) const + 130
4 SonoBus 0x10ee12d76 SonobusAudioProcessor::SendThread::run() + 182
5 SonoBus 0x10eff45b9 juce::threadEntryProc(void*) + 553
6 libsystem_pthread.dylib 0x7ff8012434f4 _pthread_start + 125
7 libsystem_pthread.dylib 0x7ff80123f00f thread_start + 15
Thread 5:: SonoBusRecvThread
0 libsystem_kernel.dylib 0x7ff80120d1ae poll + 10
1 SonoBus 0x10ee0e6a6 SonobusAudioProcessor::RecvThread::run() + 150
2 SonoBus 0x10eff45b9 juce::threadEntryProc(void*) + 553
3 libsystem_pthread.dylib 0x7ff8012434f4 _pthread_start + 125
4 libsystem_pthread.dylib 0x7ff80123f00f thread_start + 15
Thread 6:: SonoBusEventThread
0 libsystem_kernel.dylib 0x7ff8012093da __semwait_signal + 10
1 libsystem_c.dylib 0x7ff80111e8a9 nanosleep + 196
2 SonoBus 0x10ee03951 SonobusAudioProcessor::EventThread::run() + 97
3 SonoBus 0x10eff45b9 juce::threadEntryProc(void*) + 553
4 libsystem_pthread.dylib 0x7ff8012434f4 _pthread_start + 125
5 libsystem_pthread.dylib 0x7ff80123f00f thread_start + 15
Thread 7:: SonoBusClientThread
0 libsystem_kernel.dylib 0x7ff80120d1ae poll + 10
1 SonoBus 0x10ee42659 aoo::net::client::run() + 937
2 SonoBus 0x10eff45b9 juce::threadEntryProc(void*) + 553
3 libsystem_pthread.dylib 0x7ff8012434f4 _pthread_start + 125
4 libsystem_pthread.dylib 0x7ff80123f00f thread_start + 15
Thread 8:: AMCP Logging Spool
0 libsystem_kernel.dylib 0x7ff801206af6 semaphore_wait_trap + 10
1 caulk 0x7ff809ccd1c0 caulk::mach::semaphore::wait_or_error() + 16
2 caulk 0x7ff809cb408a caulk::concurrent::details::worker_thread::run() + 36
3 caulk 0x7ff809cb3d4e void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::)(), std::__1::tuplecaulk::concurrent::details::worker_thread* > >(void) + 41
4 libsystem_pthread.dylib 0x7ff8012434f4 _pthread_start + 125
5 libsystem_pthread.dylib 0x7ff80123f00f thread_start + 15
Thread 9 Crashed:: MacBook Pro Speakers
0 libsystem_platform.dylib 0x7ff801256675 _platform_bzero$VARIANT$Haswell + 53
1 libvDSP.dylib 0x7ff80b052896 vDSP_vclr + 54
2 SonoBus 0x10edf06ce SonobusAudioProcessor::processBlock(juce::AudioBuffer&, juce::MidiBuffer&) + 17614
3 SonoBus 0x10ee757c9 juce::AudioProcessorPlayer::audioDeviceIOCallback(float const**, int, float**, int, int) + 2025
4 SonoBus 0x10ed9a3be juce::StandalonePluginHolder::audioDeviceIOCallback(float const**, int, float**, int, int) + 206
5 SonoBus 0x10f0b6da4 juce::AudioDeviceManager::CallbackHandler::audioDeviceIOCallback(float const**, int, float**, int, int) + 916
6 SonoBus 0x10f0ab4ec juce::CoreAudioClasses::AudioIODeviceCombiner::run() + 2588
7 SonoBus 0x10eff45b9 juce::threadEntryProc(void*) + 553
8 libsystem_pthread.dylib 0x7ff8012434f4 _pthread_start + 125
9 libsystem_pthread.dylib 0x7ff80123f00f thread_start + 15
Thread 10:: com.apple.audio.IOThread.client
0 libsystem_kernel.dylib 0x7ff801206aba mach_msg_trap + 10
1 libsystem_kernel.dylib 0x7ff801206e2b mach_msg + 59
2 CoreAudio 0x7ff802e8a95b HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, bool, unsigned int) + 111
3 CoreAudio 0x7ff802d190ff HALC_ProxyIOContext::IOWorkLoop() + 3937
4 CoreAudio 0x7ff802d17bc1 invocation function for block in HALC_ProxyIOContext::HALC_ProxyIOContext(unsigned int, unsigned int) + 63
5 CoreAudio 0x7ff802ee076c HALB_IOThread::Entry(void*) + 72
6 libsystem_pthread.dylib 0x7ff8012434f4 _pthread_start + 125
7 libsystem_pthread.dylib 0x7ff80123f00f thread_start + 15
Thread 11:: com.apple.audio.IOThread.client
0 libsystem_kernel.dylib 0x7ff801206aba mach_msg_trap + 10
1 libsystem_kernel.dylib 0x7ff801206e2b mach_msg + 59
2 CoreAudio 0x7ff802e8a95b HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, bool, unsigned int) + 111
3 CoreAudio 0x7ff802d190ff HALC_ProxyIOContext::IOWorkLoop() + 3937
4 CoreAudio 0x7ff802d17bc1 invocation function for block in HALC_ProxyIOContext::HALC_ProxyIOContext(unsigned int, unsigned int) + 63
5 CoreAudio 0x7ff802ee076c HALB_IOThread::Entry(void*) + 72
6 libsystem_pthread.dylib 0x7ff8012434f4 _pthread_start + 125
7 libsystem_pthread.dylib 0x7ff80123f00f thread_start + 15