-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App fails to start when USB misconfigured #6614
Comments
Thanks My bet is the juce audio manager interacts with the flaky system to give us a bus we don't expect but we aren't defensive about a null output bus properly in processBlock and blammo. Probably just a defensive if there. |
Yeah not familiar with low level audio handling here, but that seems right to me. BTW, I note that when I change audio settings, they often don't reflect until I restart. |
@MilesParker Can you try to reproduce this issue with the latest Surge XT nightly? Thanks! |
Yup my thoughts exactly! |
Yes that sounds exactly like the sequence that was happening for me -- I will verify but won't be able to get to it until tmrw or Friday. Apologies! |
Just FYI I have not seen this with any new builds. |
Excellent let me close this then. Thanks for getting back to us! |
Bug Description:
After connecting to and selecting a (somewhat flakey) external usb device then quitting, removing that connection and restarting, got a hard crash (even after plugging external speakers back in.
Surge XT Version
1.1.0.012f6ce
Reproduction Steps:
Will be hard to reproduce probably, but this was my path:
Workaround
I was able to fix by going into /Users/{username}/Library/Application\ Support/Surge\ XT.settings and just deleting the VALUE audioSetup::DEVICESETUP (but most users wouldn't know to do this).
Computer Information (please complete the following!):
Additional Information:
Relevant trace:
Thread 5 Crashed:: USB Audio
0 Surge XT 0x10a3ee417 SurgeSynthProcessor::processBlock(juce::AudioBuffer&, juce::MidiBuffer&) + 1223
1 Surge XT 0x10a756685 juce::AudioProcessorPlayer::audioDeviceIOCallback(float const**, int, float**, int, int) + 1733
2 Surge XT 0x10a3e3046 juce::StandalonePluginHolder::CallbackMaxSizeEnforcer::audioDeviceIOCallback(float const**, int, float**, int, int) + 134
3 Surge XT 0x10a9c151c juce::AudioDeviceManager::audioDeviceIOCallbackInt(float const**, int, float**, int, int) + 492
4 Surge XT 0x10a9cc243 juce::CoreAudioClasses::AudioIODeviceCombiner::run() + 1395
5 Surge XT 0x10a6d114a juce::Thread::threadEntryPoint() + 282
6 Surge XT 0x10a7044da juce::threadEntryProc(void*) + 26
7 libsystem_pthread.dylib 0x7ff80279f4e1 _pthread_start + 125
8 libsystem_pthread.dylib 0x7ff80279af6b thread_start + 15
Thread 5 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00007000004aea98 rcx: 0x0000000000000000 rdx: 0x00007ff6d3900000
rdi: 0x0000000000000000 rsi: 0x00007000004ae5f0 rbp: 0x00007000004aead0 rsp: 0x00007000004ae5d0
r8: 0x0000000000000002 r9: 0x0000000000000003 r10: 0x0000000000000000 r11: 0x0000000000000000
r12: 0x00007ff725038a80 r13: 0x0000000000000000 r14: 0x00007ff7280c8000 r15: 0x00000000ffffffff
rip: 0x000000010a3ee417 rfl: 0x0000000000010246 cr2: 0x0000000000000000
The text was updated successfully, but these errors were encountered: