# Demo Crashes with RME HDSP9652 sound card

**URL:** <https://forum.juce.com/t/demo-crashes-with-rme-hdsp9652-sound-card/3451>\
**Category:** MacOSX and iOS\
**Created:** [December 16, 2008, 4:34pm UTC](https://forum.juce.com/t/demo-crashes-with-rme-hdsp9652-sound-card/3451 "2008-12-16T16:34:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bongo\_john\_uk](https://avatars.discourse-cdn.com/v4/letter/b/e19b73/32.png) [@bongo\_john\_uk](https://forum.juce.com/u/bongo_john_uk)\
**Post date:** [December 16, 2008, 4:34pm UTC](https://forum.juce.com/t/demo-crashes-with-rme-hdsp9652-sound-card/3451/1 "2008-12-16T16:34:56Z")

</div>

JUCE demo crashes when switching input channels on HDSP9652 sound card. It is fine switching output channels. It is also fine using built-in sound card.

Any one using this sound card with JUCE? Any workarounds?

All my usual audio apps work fine with this sound card (it is my main music machine).

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [December 16, 2008, 5:34pm UTC](https://forum.juce.com/t/demo-crashes-with-rme-hdsp9652-sound-card/3451/2 "2008-12-16T17:34:20Z")

</div>

Any clues as to where it’s crashing?

---

<div class="post-metadata">

**Author:** ![bongo\_john\_uk](https://avatars.discourse-cdn.com/v4/letter/b/e19b73/32.png) [@bongo\_john\_uk](https://forum.juce.com/u/bongo_john_uk)\
**Post date:** [December 16, 2008, 9:58pm UTC](https://forum.juce.com/t/demo-crashes-with-rme-hdsp9652-sound-card/3451/3 "2008-12-16T21:58:32Z")

</div>

Process: jucedemo [9117]  
Path: /Users/john/Development/cpp/juce/extras/juce demo/build/macosx/build/Debug/jucedemo.app/Contents/MacOS/jucedemo  
Identifier: com.rawmaterialsoftware.jucedemo  
Version: ??? (1.0)  
Code Type: PPC (Native)  
Parent Process: launchd [167]

Date/Time: 2008-12-16 21:24:35.245 +0000  
OS Version: Mac OS X 10.5.6 (9G55)  
Report Version: 6

Exception Type: EXC\_BAD\_ACCESS (SIGBUS)  
Exception Codes: KERN\_PROTECTION\_FAILURE at 0x0000000000000000  
Crashed Thread: 4

Thread 0:  
0 …awmaterialsoftware.jucedemo 0x0004ebb4 juce::ComboBox::ItemInfo::isRealItem() const + 84 (juce\_amalgamated.cpp:42673)  
1 …awmaterialsoftware.jucedemo 0x001883f4 juce::ComboBox::getItemForIndex(int) const + 100 (juce\_amalgamated.cpp:42624)  
2 …awmaterialsoftware.jucedemo 0x001884cc juce::ComboBox::getItemId(int) const + 56 (juce\_amalgamated.cpp:42661)  
3 …awmaterialsoftware.jucedemo 0x0021353c juce::ComboBox::setSelectedId(int, bool) + 112 (juce\_amalgamated.cpp:42705)  
4 …awmaterialsoftware.jucedemo 0x00343990 juce::AudioDeviceSettingsPanel::changeListenerCallback(void\*) + 4748 (juce\_amalgamated.cpp:67220)  
5 …awmaterialsoftware.jucedemo 0x0017ecac juce::ChangeListenerList::sendSynchronousChangeMessage(void\*) + 196 (juce\_amalgamated.cpp:35820)  
6 …awmaterialsoftware.jucedemo 0x0017ee54 juce::ChangeListenerList::handleMessage(juce::Message const&) + 64 (juce\_amalgamated.cpp:35806)  
7 …awmaterialsoftware.jucedemo 0x001a4890 juce::MessageManager::deliverMessage(void\*) + 152 (juce\_amalgamated.cpp:36379)  
8 …awmaterialsoftware.jucedemo 0x002fefa8 juce::AppDelegateRedirector::deliverMessage(void\*) + 64 (juce\_amalgamated.cpp:268514)  
9 …awmaterialsoftware.jucedemo 0x001cce48 -[JuceAppDelegate\_1\_46\_1 customEvent:] + 176 (juce\_amalgamated.cpp:268626)  
10 com.apple.Foundation 0x91ee516c \_\_NSThreadPerformPerform + 508  
11 com.apple.CoreFoundation 0x9218a290 CFRunLoopRunSpecific + 1104  
12 com.apple.Foundation 0x91f123bc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 168  
13 …awmaterialsoftware.jucedemo 0x0015d7e4 juce::MessageManager::runDispatchLoopUntil(int) + 384 (juce\_amalgamated.cpp:268687)  
14 …awmaterialsoftware.jucedemo 0x00268d70 juce::Component::runModalLoop() + 244 (juce\_amalgamated.cpp:38333)  
15 …awmaterialsoftware.jucedemo 0x002a86b0 juce::DialogWindow::showModalDialog(juce::String const&, juce::Component\*, juce::Component\*, juce::Colour const&, bool, bool, bool) + 200 (juce\_amalgamated.cpp:71994)  
16 …awmaterialsoftware.jucedemo 0x000083a4 AudioDemo::buttonClicked(juce::Button\*) + 340 (AudioDemo.cpp:592)  
17 …awmaterialsoftware.jucedemo 0x002477e8 juce::Button::sendClickMessage(juce::ModifierKeys const&) + 368 (juce\_amalgamated.cpp:41269)  
18 …awmaterialsoftware.jucedemo 0x00248300 juce::Button::internalClickCallback(juce::ModifierKeys const&) + 152 (juce\_amalgamated.cpp:41201)  
19 …awmaterialsoftware.jucedemo 0x001c1fa0 juce::Button::mouseUp(juce::MouseEvent const&) + 216 (juce\_amalgamated.cpp:41342)  
20 …awmaterialsoftware.jucedemo 0x0026ceec juce::Component::internalMouseUp(int, int, int, long long) + 796 (juce\_amalgamated.cpp:39526)  
21 …awmaterialsoftware.jucedemo 0x0026f4f8 juce::ComponentPeer::handleMouseUp(int, int, int, long long) + 808 (juce\_amalgamated.cpp:71462)  
22 …awmaterialsoftware.jucedemo 0x0026f628 juce::NSViewComponentPeer::redirectMouseUp(NSEvent\*) + 244 (juce\_amalgamated.cpp:265735)  
23 …awmaterialsoftware.jucedemo 0x001c42cc -[JuceNSView\_1\_46\_1 mouseUp:] + 112 (juce\_amalgamated.cpp:264807)  
24 com.apple.AppKit 0x9015884c -[NSWindow sendEvent:] + 4660  
25 com.apple.AppKit 0x9012bb5c -[NSApplication sendEvent:] + 3256  
26 com.apple.AppKit 0x90098dc0 -[NSApplication run] + 776  
27 …awmaterialsoftware.jucedemo 0x0015d9bc juce::MessageManager::runDispatchLoop() + 188 (juce\_amalgamated.cpp:268665)  
28 …awmaterialsoftware.jucedemo 0x00260af4 juce::JUCEApplication::main(juce::String&, juce::JUCEApplication\*) + 984 (juce\_amalgamated.cpp:15300)  
29 …awmaterialsoftware.jucedemo 0x00260de0 juce::JUCEApplication::main(int, char\*\*, juce::JUCEApplication\*) + 280 (juce\_amalgamated.cpp:15382)  
30 …awmaterialsoftware.jucedemo 0x00026aa8 main + 120 (ApplicationStartup.cpp:176)  
31 …awmaterialsoftware.jucedemo 0x00002c64 \_start + 756  
32 …awmaterialsoftware.jucedemo 0x00002968 start + 44

Thread 1:  
0 libSystem.B.dylib 0x92eb51d8 semaphore\_timedwait\_signal\_trap + 8  
1 libSystem.B.dylib 0x92ef82c8 \_pthread\_cond\_wait + 1320  
2 …awmaterialsoftware.jucedemo 0x00159688 juce::WaitableEvent::wait(int) const + 400 (juce\_amalgamated.cpp:263517)  
3 …awmaterialsoftware.jucedemo 0x00159738 juce::Thread::wait(int) const + 64 (juce\_amalgamated.cpp:14595)  
4 …awmaterialsoftware.jucedemo 0x00300be4 juce::InternalTimerThread::run() + 324 (juce\_amalgamated.cpp:36797)  
5 …awmaterialsoftware.jucedemo 0x001dba28 juce::Thread::threadEntryPoint(juce::Thread\*) + 244 (juce\_amalgamated.cpp:14439)  
6 …awmaterialsoftware.jucedemo 0x001dbba8 juce::juce\_threadEntryPoint(void\*) + 52 (juce\_amalgamated.cpp:14460)  
7 …awmaterialsoftware.jucedemo 0x001dbbf8 juce::threadEntryProc(void\*) + 56 (juce\_amalgamated.cpp:263342)  
8 libSystem.B.dylib 0x92ef7024 \_pthread\_start + 316

Thread 2:  
0 libSystem.B.dylib 0x92eb5158 mach\_msg\_trap + 8  
1 libSystem.B.dylib 0x92ebc07c mach\_msg + 56  
2 com.apple.CoreFoundation 0x9218a554 CFRunLoopRunSpecific + 1812  
3 com.apple.audio.CoreAudio 0x95648f84 HALRunLoop::OwnThread(void\*) + 212  
4 com.apple.audio.CoreAudio 0x95648dc0 CAPThread::Entry(CAPThread\*) + 104  
5 libSystem.B.dylib 0x92ef7024 \_pthread\_start + 316

Thread 3:  
0 libSystem.B.dylib 0x92eb5158 mach\_msg\_trap + 8  
1 libSystem.B.dylib 0x92ebc07c mach\_msg + 56  
2 com.apple.audio.midi.CoreMIDI 0x00767f34 XServerMachPort::ReceiveMessage(int&, void\*, int&) + 88  
3 com.apple.audio.midi.CoreMIDI 0x00759adc MIDIInPortThread::Run() + 68  
4 com.apple.audio.midi.CoreMIDI 0x0075d104 XThread::RunHelper(void\*) + 24  
5 com.apple.audio.midi.CoreMIDI 0x00768aa8 CAPThread::Entry(CAPThread\*) + 96  
6 libSystem.B.dylib 0x92ef7024 \_pthread\_start + 316

Thread 4 Crashed:  
0 …awmaterialsoftware.jucedemo 0x002e99fc juce::CoreAudioInternal::audioCallback(AudioBufferList const\*, AudioBufferList\*) + 296 (juce\_amalgamated.cpp:269549)  
1 …awmaterialsoftware.jucedemo 0x002e9e78 juce::CoreAudioInternal::audioIOProc(unsigned long, AudioTimeStamp const\*, AudioBufferList const\*, AudioTimeStamp const\*, AudioBufferList\*, AudioTimeStamp const\*, void\*) + 84 (juce\_amalgamated.cpp:269734)  
2 com.apple.audio.CoreAudio 0x9565c5fc HP\_IOProc::Call(AudioTimeStamp const&, AudioTimeStamp const&, AudioBufferList const\*, AudioTimeStamp const&, AudioBufferList\*) + 324  
3 com.apple.audio.CoreAudio 0x9565c288 IOA\_Device::CallIOProcs(AudioTimeStamp const&, AudioTimeStamp const&, AudioTimeStamp const&) + 300  
4 com.apple.audio.CoreAudio 0x9565c13c HP\_IOThread::PerformIO(AudioTimeStamp const&) + 548  
5 com.apple.audio.CoreAudio 0x9565ab0c HP\_IOThread::WorkLoop() + 808  
6 com.apple.audio.CoreAudio 0x9565a7cc HP\_IOThread::ThreadEntry(HP\_IOThread\*) + 12  
7 com.apple.audio.CoreAudio 0x95648dc0 CAPThread::Entry(CAPThread\*) + 104  
8 libSystem.B.dylib 0x92ef7024 \_pthread\_start + 316

Thread 4 crashed with PPC Thread State 32:  
srr0: 0x002e99fc srr1: 0x0200f030 dar: 0x00000000 dsisr: 0x42000000  
r0: 0x00000001 r1: 0xf01849b0 r2: 0x00000000 r3: 0x00000000  
r4: 0x00000000 r5: 0x00000000 r6: 0xffffffff r7: 0x05a49600  
r8: 0xf0184bd8 r9: 0x00aff010 r10: 0x00000000 r11: 0xa056bdbc  
r12: 0x92ebf814 r13: 0x00000000 r14: 0x00000000 r15: 0x00000000  
r16: 0x00000000 r17: 0x00000000 r18: 0x00000000 r19: 0x00000000  
r20: 0x956aa7f8 r21: 0xf0184cec r22: 0x43300000 r23: 0xf0184cf8  
r24: 0xf0184cf8 r25: 0xf0184bd8 r26: 0xf0184b98 r27: 0x05a3cc40  
r28: 0x05a49600 r29: 0x0104b600 r30: 0xf01849b0 r31: 0x002e9900  
cr: 0x44000474 xer: 0x00000000 lr: 0x002e9928 ctr: 0x92ebf814  
vrsave: 0x00000000

Binary Images:  
0x1000 - 0x3fdffb +com.rawmaterialsoftware.jucedemo ??? (1.0) \<0589a2214e032921cc585ab4635e62ca\> /Users/john/Development/cpp/juce/extras/juce demo/build/macosx/build/Debug/jucedemo.app/Contents/MacOS/jucedemo  
0x756000 - 0x772ffb com.apple.audio.midi.CoreMIDI 1.6.1 (42) /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI  
0x788000 - 0x856ff5 com.apple.DiscRecording 4.0.3 (4030.4.3) /System/Library/Frameworks/DiscRecording.framework/Versions/A/DiscRecording  
0x8bd000 - 0x8defff libexpat.1.dylib ??? (???) /usr/lib/libexpat.1.dylib  
0xae6000 - 0xaeafff com.apple.audio.AudioIPCPlugIn 1.0.5 (1.0.5) \<6d30b26789325677bbd205ccdbe755e7\> /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugIn.bundle/Contents/MacOS/AudioIPCPlugIn  
0xaef000 - 0xaf0ffd com.apple.aoa.halplugin 2.5.7 (2.5.7f1) \<7f1a60978b668db2fc7b7ee642120335\> /System/Library/Extensions/IOAudioFamily.kext/Contents/PlugIns/AOAHALPlugin.bundle/Contents/MacOS/AOAHALPlugin  
0x8fe00000 - 0x8fe30c23 dyld 97.1 (???) \<8dc1fc6c74fe1f055be16980dd45001e\> /usr/lib/dyld  
0x90003000 - 0x90063fff com.apple.CoreText 2.0.3 (???) \<4ce8460abbfca7c9bd655ae0173976df\> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText  
0x90064000 - 0x907d9fff com.apple.AppKit 6.5.6 (949.43) \<3afcaa243535d0817efeb978448ef3dc\> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit  
0x907da000 - 0x90829fff com.apple.Metadata 10.5.2 (398.25) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata  
0x9085d000 - 0x9087dff7 libJPEG.dylib ??? (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib  
0x9087e000 - 0x9088cfff libz.1.dylib ??? (???) \<1a70dd3594a8c5ad39d785af5da23237\> /usr/lib/libz.1.dylib  
0x9088d000 - 0x90908fff com.apple.SearchKit 1.2.1 (1.2.1) \<23c2c93a7ec832505d5c7b67fee89a6d\> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit  
0x90909000 - 0x90970ffb libstdc++.6.dylib ??? (???) /usr/lib/libstdc++.6.dylib  
0x90971000 - 0x90974fff com.apple.help 1.1 (36) \<7106d6e074a3b9835ebf1e6cc6c822ce\> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help  
0x90975000 - 0x90ca3ff7 com.apple.QuickTime 7.5.5 (990.7) /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime  
0x90ce2000 - 0x90d1ffff libRIP.A.dylib ??? (???) \<662becbd3173fd67eec7ad523d2d9c56\> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib  
0x90d3c000 - 0x90d3cffa com.apple.CoreServices 32 (32) \<42b6dda539f7411606187335d9eae0c5\> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices  
0x90d3d000 - 0x90dc2fff libsqlite3.0.dylib ??? (???) /usr/lib/libsqlite3.0.dylib  
0x90dc3000 - 0x914a5ff3 com.apple.WebCore 5525.26 (5525.26.6) \<77f5e6579cb4a8496df8d644ca7fa12d\> /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore  
0x914a6000 - 0x914fcfff libGLU.dylib ??? (???) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib  
0x9150e000 - 0x91837fe7 libLAPACK.dylib ??? (???) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib  
0x91838000 - 0x91df2fff libBLAS.dylib ??? (???) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib  
0x91df6000 - 0x91e0effb com.apple.DictionaryServices 1.0.0 (1.0.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices  
0x91e15000 - 0x91edaffb com.apple.CoreData 100.1 (186) \<9cf54cb19b18e53ee22edb7ababa6e6c\> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData  
0x91edb000 - 0x92120ffb com.apple.Foundation 6.5.7 (677.22) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation  
0x92121000 - 0x92246ffb com.apple.CoreFoundation 6.5.5 (476.17) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation  
0x9225b000 - 0x92277ffb com.apple.openscripting 1.2.8 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting  
0x923e5000 - 0x923eefff com.apple.DiskArbitration 2.2.1 (2.2.1) /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration  
0x923ef000 - 0x923effff com.apple.audio.units.AudioUnit 1.5 (1.5) /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit  
0x9242f000 - 0x92442ffb com.apple.speech.synthesis.framework 3.7.1 (3.7.1) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis  
0x92454000 - 0x92481fff libGL.dylib ??? (???) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib  
0x92482000 - 0x9248dffb libgcc\_s.1.dylib ??? (???) /usr/lib/libgcc\_s.1.dylib  
0x9248e000 - 0x925a2ffa com.apple.vImage 3.0 (3.0) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage  
0x925a3000 - 0x925abfff libbsm.dylib ??? (???) /usr/lib/libbsm.dylib  
0x925b2000 - 0x926f9ffb com.apple.audio.toolbox.AudioToolbox 1.5.2 (1.5.2) /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox  
0x926fa000 - 0x92782fff com.apple.ink.framework 101.3 (86) \<66a99ad6bc695390a66dd24789e23dcc\> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink  
0x92783000 - 0x92845fff com.apple.WebKit 5525.27 (5525.27.1) \<7de8ed23795391f9d81127e9b639a3c3\> /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit  
0x92846000 - 0x928a3ffb com.apple.HIServices 1.7.0 (???) \<5f468086ca01158e12cd07f829132edf\> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices  
0x929f2000 - 0x92a73fff com.apple.print.framework.PrintCore 5.5.3 (245.3) \<032f772f8169945c1d1b524d96edcef6\> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore  
0x92ab7000 - 0x92b86fff com.apple.ColorSync 4.5.1 (4.5.1) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync  
0x92b87000 - 0x92b9afff com.apple.LangAnalysis 1.6.4 (1.6.4) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis  
0x92b9b000 - 0x92bc6ff7 libauto.dylib ??? (???) /usr/lib/libauto.dylib  
0x92bc7000 - 0x92bcaffb com.apple.securityhi 3.0 (30817) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI  
0x92bd2000 - 0x92cbafff com.apple.JavaScriptCore 5525.26 (5525.26.2) \<3a03d36ac807322bc73ed78c515e32be\> /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore  
0x92cbb000 - 0x92cc3ffb libCGATS.A.dylib ??? (???) \<0c83819d2d428a8df27c8cc0f13ba1dc\> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib  
0x92cc4000 - 0x92da7fff libobjc.A.dylib ??? (???) \<39035ba996e55c617e20595dcd89c063\> /usr/lib/libobjc.A.dylib  
0x92da8000 - 0x92dafffb com.apple.print.framework.Print 218.0.2 (220.1) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print  
0x92db0000 - 0x92e83fff com.apple.CoreServices.OSServices 226.5 (226.5) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices  
0x92e84000 - 0x92ea3fff com.apple.Accelerate.vecLib 3.4.2 (vecLib 3.4.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib  
0x92eb4000 - 0x93054fe3 libSystem.B.dylib ??? (???) \<3260ab8c558e938c8180b3ba1036aec1\> /usr/lib/libSystem.B.dylib  
0x93d84000 - 0x93e18ff7 com.apple.framework.IOKit 1.5.1 (???) \<498f2ba1b47432ee4deebca2655ff932\> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit  
0x93e19000 - 0x93e3ffff libcups.2.dylib ??? (???) /usr/lib/libcups.2.dylib  
0x93e56000 - 0x93eeffc3 libvDSP.dylib ??? (???) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib  
0x93f59000 - 0x94013fff libcrypto.0.9.7.dylib ??? (???) \<335916b82e302fec637432caf7c9e8e5\> /usr/lib/libcrypto.0.9.7.dylib  
0x9404a000 - 0x9404cffd libRadiance.dylib ??? (???) \<34cc3c24f4be3a4372275400b6e05b85\> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib  
0x9404d000 - 0x94076ffb com.apple.shortcut 1 (1.0) \<032016a45147a2f3f191ce70187587c9\> /System/Library/PrivateFrameworks/Shortcut.framework/Versions/A/Shortcut  
0x94077000 - 0x9410dfff com.apple.LaunchServices 290.3 (290.3) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices  
0x9410e000 - 0x942f4ffb com.apple.security 5.0.4 (34102) \<93e74504c60b38418e708caf47342cf5\> /System/Library/Frameworks/Security.framework/Versions/A/Security  
0x942f5000 - 0x943a3ffb com.apple.QTKit 7.5.5 (990.7) /System/Library/Frameworks/QTKit.framework/Versions/A/QTKit  
0x943a4000 - 0x943e6fff com.apple.CoreMediaIOServicesPrivate 12.0 (12.0) /System/Library/PrivateFrameworks/CoreMediaIOServicesPrivate.framework/Versions/A/CoreMediaIOServicesPrivate  
0x943e7000 - 0x94400ffb com.apple.CoreVideo 1.5.1 (1.5.1) \<7568a5b07a0ccb4ee76a9b997fa3e5d9\> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo  
0x9440c000 - 0x9440cffb com.apple.installserver.framework 1.0 (8) /System/Library/PrivateFrameworks/InstallServer.framework/Versions/A/InstallServer  
0x94414000 - 0x9441bfff com.apple.CommonPanels 1.2.4 (85) \<0d1256175c5512c911ede094d767acfe\> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels  
0x9441c000 - 0x944a6fff libvMisc.dylib ??? (???) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib  
0x944d8000 - 0x94a54ff7 com.apple.CoreGraphics 1.407.2 (???) \<6a101d8218dc8d12ca0b901c57aa44b7\> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics  
0x94a55000 - 0x94aefff7 com.apple.ApplicationServices.ATS 3.4 (???) \<06af1441f632e171a7f61dca809462ba\> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS  
0x94af0000 - 0x94b31ffb libTIFF.dylib ??? (???) \<4c1422124af245485d6ceee207f4d735\> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib  
0x94c01000 - 0x94c05ffe libGIF.dylib ??? (???) \<491b205a6b8bb0c0c6ee6aaeea19a671\> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib  
0x94c06000 - 0x94c07fff libffi.dylib ??? (???) \<11b77dbce4aa0f0b66d40014230abd1d\> /usr/lib/libffi.dylib  
0x94c58000 - 0x94f5affb com.apple.CoreServices.CarbonCore 786.10 (786.10) \<3861a1af8d647c75688761d7ef4b5bf3\> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore  
0x94f5b000 - 0x94f87fff com.apple.CoreMediaPrivate 11.0 (11.0) \<5c3e0852cafaace76f92a112921a8ff0\> /System/Library/PrivateFrameworks/CoreMediaPrivate.framework/Versions/A/CoreMediaPrivate  
0x94f88000 - 0x94f8dff6 libmathCommon.A.dylib ??? (???) /usr/lib/system/libmathCommon.A.dylib  
0x94f8e000 - 0x94fa5ffb com.apple.ImageCapture 5.0.1 (5.0.1) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture  
0x94fb2000 - 0x94ff9fff com.apple.NavigationServices 3.5.2 (163) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices  
0x95115000 - 0x95115ff8 com.apple.Cocoa 6.5 (???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa  
0x95116000 - 0x95124ff3 com.apple.opengl 1.5.9 (1.5.9) /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL  
0x95125000 - 0x9526fffb com.apple.ImageIO.framework 2.0.4 (2.0.4) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO  
0x95270000 - 0x9528ffff com.apple.vecLib 3.4.2 (vecLib 3.4.2) /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib  
0x9555d000 - 0x955acfff libGLImage.dylib ??? (???) \<1df480344fb6e09ff32ac97bfdda7e50\> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib  
0x955bb000 - 0x955f4fff com.apple.SystemConfiguration 1.9.2 (1.9.2) \<1a39075165bf7447fe8be1e93db49346\> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration  
0x95627000 - 0x956afffb com.apple.audio.CoreAudio 3.1.1 (3.1.1) /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio  
0x956b0000 - 0x956b0fff com.apple.Carbon 136 (136) \<6a6a209ec9179368db7ead8382b8ee63\> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon  
0x956b1000 - 0x956bcff9 com.apple.helpdata 1.0.1 (14.2) /System/Library/PrivateFrameworks/HelpData.framework/Versions/A/HelpData  
0x9593e000 - 0x9596ffff com.apple.coreui 1.2 (62) /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI  
0x959d6000 - 0x959fefff libxslt.1.dylib ??? (???) /usr/lib/libxslt.1.dylib  
0x959ff000 - 0x95aa8ffc com.apple.CFNetwork 422.11 (422.11) \<189498280742bb4579e91b165301d331\> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork  
0x95aa9000 - 0x95ab5ff3 com.apple.audio.SoundManager 3.9.2 (3.9.2) \<79588842bcaf6c747a95b2120304397a\> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound  
0x95ab6000 - 0x95ab7ff8 com.apple.ApplicationServices 34 (34) \<6aa5ee485bb2e656531b3505932b845f\> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices  
0x95afd000 - 0x95b0afff libCSync.A.dylib ??? (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib  
0x95b52000 - 0x95b87fff [com.apple.AE](http://com.apple.AE) 402.2 (402.2) \<0b15a08da8ec38b74fb9dd6e579ed25f\> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE  
0x95b88000 - 0x95eedffe com.apple.QuartzCore 1.5.7 (1.5.7) \<75a8ef92c54d1ce016dfe662a6626f04\> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore  
0x95f2e000 - 0x95f2efff com.apple.Accelerate 1.4.2 (Accelerate 1.4.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate  
0x96069000 - 0x96119fff edu.mit.Kerberos 6.0.12 (6.0.12) \<17b514ffed29c890fc8ba8eac9dce56e\> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos  
0x9611a000 - 0x96453ffb com.apple.HIToolbox 1.5.4 (???) \<9624d2ffaf16019b6301517339df88c9\> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox  
0x96454000 - 0x9653dfff libxml2.2.dylib ??? (???) /usr/lib/libxml2.2.dylib  
0x965aa000 - 0x966f2ffb libicucore.A.dylib ??? (???) /usr/lib/libicucore.A.dylib  
0x966f3000 - 0x966fefff com.apple.speech.recognition.framework 3.7.24 (3.7.24) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition  
0x966ff000 - 0x96761ffb com.apple.htmlrendering 68 (1.1.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering  
0x9677f000 - 0x9682ffff com.apple.QD 3.11.54 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD  
0x96830000 - 0x9684bffb libPng.dylib ??? (???) \<248297ff5b022c274d5dcfa0de3b37b2\> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib  
0x9684c000 - 0x96c7affa libGLProgrammability.dylib ??? (???) \<2c52a11697da6ede976b56d54e3815ef\> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib  
0x96e43000 - 0x96e62fff libresolv.9.dylib ??? (???) /usr/lib/libresolv.9.dylib  
0x96e63000 - 0x96ef2ffb com.apple.DesktopServices 1.4.7 (1.4.7) \<5792e9dc03f76544c71dedd802a1fa36\> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv  
0xfffec000 - 0xfffeffff libobjc.A.dylib ??? (???) /usr/lib/libobjc.A.dylib  
0xffff8000 - 0xffff9703 libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib

---

<div class="post-metadata">

**Author:** ![bongo\_john\_uk](https://avatars.discourse-cdn.com/v4/letter/b/e19b73/32.png) [@bongo\_john\_uk](https://forum.juce.com/u/bongo_john_uk)\
**Post date:** [December 16, 2008, 10:03pm UTC](https://forum.juce.com/t/demo-crashes-with-rme-hdsp9652-sound-card/3451/4 "2008-12-16T22:03:48Z")

</div>

There is another one but it is too long for this forum software… It won’t let me post it…

I could email it?

---

<div class="post-metadata">

**Author:** ![yfede](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/yfede/32/506_2.png) [@yfede](https://forum.juce.com/u/yfede)\
**Post date:** [March 19, 2009, 5:00pm UTC](https://forum.juce.com/t/demo-crashes-with-rme-hdsp9652-sound-card/3451/5 "2009-03-19T17:00:01Z")

</div>

(for Jules: this post contains a fix for the current tip)

I think I spotted the problem:

in juce\_mac\_CoreAudio.cpp, around line 590, this is the current code:

```auto
                for (i = numInputChans; --i >= 0;)
                {
                    const CallbackDetailsForChannel& info = inputChannelInfo[i];
                    float* dest = tempInputBuffers [info.sourceChannelNum];
                    const float* src = ((const float*) inInputData->mBuffers[info.streamNum].mData)
                                        + info.dataOffsetSamples;
                    const int stride = info.dataStrideSamples;

                    if (stride != 0) // if this is zero, info is invalid
                    {
                        for (int j = bufferSize; --j >= 0;)
                        {
                            *dest++ = *src;
                            src += stride;
                        }
                    }
                }
```

in particular, the line

```auto

```

should be changed to

`float* dest = tempInputBuffers [i];`

A similar loop is done for output channels (line 630), but it seems Jules already fixed it:

```auto
                for (i = numOutputChans; --i >= 0;)
                {
                    const CallbackDetailsForChannel& info = outputChannelInfo[i];
                    const float* src = tempOutputBuffers [i];
                    float* dest = ((float*) outOutputData->mBuffers[info.streamNum].mData)
                                    + info.dataOffsetSamples;
                    const int stride = info.dataStrideSamples;

                    if (stride != 0) // if this is zero, info is invalid
                    {
                        for (int j = bufferSize; --j >= 0;)
                        {
                            *dest = *src++;
                            dest += stride;
                        }
                    }
                }
```

As you can see, here a similar lines has the correct index:

```auto
const float* src = tempOutputBuffers [i];
```

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [March 20, 2009, 4:09pm UTC](https://forum.juce.com/t/demo-crashes-with-rme-hdsp9652-sound-card/3451/6 "2009-03-20T16:09:55Z")

</div>

Yes, I think you might be right there. Thanks, I’ll take a look and see what’s going on…

---

<div class="post-metadata">

**Author:** ![yfede](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/yfede/32/506_2.png) [@yfede](https://forum.juce.com/u/yfede)\
**Post date:** [March 23, 2009, 8:48am UTC](https://forum.juce.com/t/demo-crashes-with-rme-hdsp9652-sound-card/3451/7 "2009-03-23T08:48:32Z")

</div>

> [@jules](#):
>
> Yes, I think you might be right there. Thanks, I’ll take a look and see what’s going on…

I was working with version 1.45 of JUCE and investigated the problem there. In that version, the buffer assignation suffered of a bug: you were allocating temporary input and output buffers according to their index in audio driver, but the processing was happening for indexes between 0 and numChannels.

Thus, for example, if one chose to process channels 0 and 3 from a 4-input soundcard, actual temporary buffers were allocated for indexes 0 and 3, but since the number of input channels was 2, only indexes 0 (correctly) and 1 (not correctly!) were processed.  
The same was happening for output channels.

The solution was (and you correctly implemented it in the current tip, as I did in my “local” version of the JUCE 1.45) to allocate temporary buffers not according to their index in the sound driver, but counting from 0 to the number of channels actually used (compare the two different implementations of setTempBufferSize() in juce\_mac\_CoreAudio.cpp).

Thus, in the loops where you initialize the pointers, you should not use the “driver” index (info.sourceChannelNum, as it was in version 1.45), but the simple 0-based index “i”.

It seems to me, you correctly changed this in the tip when initializing output temporary buffers, but simply forgot to make the same change for the input buffers, leaving intact the code from the 1.45.
