• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem with DLS node output in Leopard (AUMixerEntry crash)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with DLS node output in Leopard (AUMixerEntry crash)


  • Subject: Re: Problem with DLS node output in Leopard (AUMixerEntry crash)
  • From: "Roni Music" <email@hidden>
  • Date: Sat, 2 Feb 2008 22:36:50 +0100

Message: 6
Date: Sat, 2 Feb 2008 17:41:13 +1300
From: Michael Norris <email@hidden>
Subject: Re: Problem with DLS node output in Leopard (AUMixerEntry
crash)
To: Keith Hamel <email@hidden>
Cc: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

Perfect. Thanks Keith - is this documented anywhere?

We had the same problem looks as a bug in CoreAudio

not one call to any CoreAudio stuff crashes if it's performed with wrong parameters/when running etc
it should just return a valid error messages, not crash


Rolf


On 2/02/2008, at 3:29 AM, Keith Hamel wrote:

Michael:

In Leopard, you have to stop the AUGraph - AUGraphStop(graph) before
you make AudioUnitSetProperty calls to load soundfonts or
soundbanks.  Restart it after the call with AUGraphStart(graph)


Yours, Keith Hamel

On Jan 31, 2008, at 5:59 PM, Michael Norris wrote:

Hi there

I have an application which creates an AUGraph consisting of a DLS
node connected to a mixer connected to an output node. This ran
find on 10.3 and 10.4. I'm now finding, however, that it crashes
Leopard at AUMixerEntry. Any thoughts?


Here's the code (updated for 10.5 APIs):

error = AUGraphNodeInfo(gAUGraph, gPianoNode,NULL, &synthUnit);
error = AudioUnitSetProperty (synthUnit,
kMusicDeviceProperty_SoundBankFSRef, kAudioUnitScope_Global,  0,
&outFSRef, sizeof (FSRef));


Here's the stack trace:

Process:         EarConditioner [14591]
Path:            /Users/michaelnorris/Development/AuralDev/build/
Development/EarConditioner.app/Contents/MacOS/EarConditioner
Identifier:      nz.ac.vuw.earconditioner
Version:         EarConditioner b0904 (1.0beta)
Code Type:       PPC (Native)
Parent Process:  launchd [71]

Date/Time:       2008-02-01 14:55:03.170 +1300
OS Version:      Mac OS X 10.5.1 (9B18)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Crashed Thread:  4

Application Specific Information:
objc[14591]: garbage collection is ON

Thread 0:
0   libSystem.B.dylib             0x956ac7e4 pread$UNIX2003 + 12
1   ...ple.CoreServices.CarbonCore 0x948df29c
BasicRead(FileRecord*, short, long long, unsigned long long*,
void*, unsigned long long*) + 652
2   ...ple.CoreServices.CarbonCore 0x948defbc PBReadForkSync + 136
3   ...ple.CoreServices.CarbonCore 0x948e0378 FSReadFork + 48
4   ...pple.audio.units.Components 0x7004a7e8 SystemOutputAUEntry +
67864
5   ...pple.audio.units.Components 0x70041ab4 SystemOutputAUEntry +
31716
6   ...pple.audio.units.Components 0x7003b194 SystemOutputAUEntry +
4804
7   ...pple.audio.units.Components 0x70024b08 DLSMusicDeviceEntry +
42160
8   ...pple.audio.units.Components 0x7001b940 DLSMusicDeviceEntry +
4840
9   ...pple.audio.units.Components 0x700086e4 0x70000000 + 34532
10  ...pple.audio.units.Components 0x7003a6dc SystemOutputAUEntry +
2060
11  ...pple.audio.units.Components 0x7001a708 DLSMusicDeviceEntry +
176
12  ...apple.audio.units.AudioUnit 0x907c7700 AudioUnitSetProperty
+ 64
13  nz.ac.vuw.earconditioner      0x00053cb8 -[MNMIDIClient
checkForSoundFont:showSoundFontSelector:hideSoundFontSelector:] +
1596 (MNMIDIClient.m:468)
14  nz.ac.vuw.earconditioner      0x00007160 -[AppController
awakeFromNib] + 1324 (AppController.m:88)
15  com.apple.CoreFoundation      0x919a5b50 -[NSSet
makeObjectsPerformSelector:] + 200
16  com.apple.AppKit              0x93927054 -[NSIBObjectData
nibInstantiateWithOwner:topLevelObjects:] + 1264
17  com.apple.AppKit              0x9391e658 loadNib + 224
18  com.apple.AppKit              0x9391dffc +
[NSBundle(NSNibLoading)
_loadNibFile:nameTable:withZone:ownerBundle:] + 840
19  com.apple.AppKit              0x9391dbd8 +
[NSBundle(NSNibLoading) loadNibNamed:owner:] + 336
20  com.apple.AppKit              0x9391d8c0 NSApplicationMain + 332
21  nz.ac.vuw.earconditioner      0x00002dac main + 64 (main.m:16)
22  nz.ac.vuw.earconditioner      0x00002d14 start + 64

Thread 1:
0   libSystem.B.dylib             0x9565d3ec __semwait_signal + 12
1   libSystem.B.dylib             0x95699fa0 _pthread_cond_wait +
1580
2   libauto.dylib                 0x90872cd8
auto_collection_thread(void*) + 104
3   libSystem.B.dylib             0x95698bf8 _pthread_start + 316

Thread 2:
0   libSystem.B.dylib             0x956569d8 mach_msg_trap + 8
1   libSystem.B.dylib             0x9565d8fc mach_msg + 56
2   com.apple.audio.midi.CoreMIDI 0x000e1f34
XServerMachPort::ReceiveMessage(int&, void*, int&) + 88
3   com.apple.audio.midi.CoreMIDI 0x000d3adc
MIDIInPortThread::Run() + 68
4   com.apple.audio.midi.CoreMIDI 0x000d7104
XThread::RunHelper(void*) + 24
5   com.apple.audio.midi.CoreMIDI 0x000e2aa8
CAPThread::Entry(CAPThread*) + 96
6   libSystem.B.dylib             0x95698bf8 _pthread_start + 316

Thread 3:
0   libSystem.B.dylib             0x956569d8 mach_msg_trap + 8
1   libSystem.B.dylib             0x9565d8fc mach_msg + 56
2   com.apple.CoreFoundation      0x9192a664 CFRunLoopRunSpecific
+ 1828
3   com.apple.audio.CoreAudio     0x9184fe3c
HALRunLoop::OwnThread(void*) + 212
4   com.apple.audio.CoreAudio     0x9184fc80
CAPThread::Entry(CAPThread*) + 104
5   libSystem.B.dylib             0x95698bf8 _pthread_start + 316

Thread 4 Crashed:
0   ...pple.audio.units.Components 0x70030480 AUMixerEntry + 3704
1   ...pple.audio.units.Components 0x70030ecc AUMixerEntry + 6340
2   ...pple.audio.units.Components 0x7003a264 SystemOutputAUEntry +
916
3   ...pple.audio.units.Components 0x7000e6bc 0x70000000 + 59068
4   ...pple.audio.units.Components 0x7000d878 0x70000000 + 55416
5   ....audio.toolbox.AudioToolbox 0x922115f8
AudioConverterChain::CallInputProc(unsigned long) + 504
6   ....audio.toolbox.AudioToolbox 0x922111bc
AudioConverterChain::FillBufferFromInputProc(unsigned long*,
CABufferList*) + 156
7   ....audio.toolbox.AudioToolbox 0x92211100
BufferedAudioConverter::GetInputBytes(unsigned long, unsigned
long&, CABufferList const*&) + 220
8   ....audio.toolbox.AudioToolbox 0x9226320c
BlockCopyConverter::RenderOutput(CABufferList*, unsigned long,
unsigned long&, AudioStreamPacketDescription*) + 92
9   ....audio.toolbox.AudioToolbox 0x92210cdc
BufferedAudioConverter::FillBuffer(unsigned long&,
AudioBufferList&, AudioStreamPacketDescription*) + 332
10  ....audio.toolbox.AudioToolbox 0x92210e4c
AudioConverterChain::RenderOutput(CABufferList*, unsigned long,
unsigned long&, AudioStreamPacketDescription*) + 140
11  ....audio.toolbox.AudioToolbox 0x92210cdc
BufferedAudioConverter::FillBuffer(unsigned long&,
AudioBufferList&, AudioStreamPacketDescription*) + 332
12  ....audio.toolbox.AudioToolbox 0x92224d00
AudioConverterFillComplexBuffer + 292
13  ...pple.audio.units.Components 0x7000d3e4 0x70000000 + 54244
14  ...pple.audio.units.Components 0x70006eb8 0x70000000 + 28344
15  ...pple.audio.units.Components 0x70011ce8 AUGenericOutputEntry
+ 9280
16  com.apple.audio.CoreAudio     0x918634b4
HP_IOProc::Call(AudioTimeStamp const&, AudioTimeStamp const&,
AudioBufferList const*, AudioTimeStamp const&, AudioBufferList*) +
324
17  com.apple.audio.CoreAudio     0x91863140
IOA_Device::CallIOProcs(AudioTimeStamp const&, AudioTimeStamp
const&, AudioTimeStamp const&) + 300
18  com.apple.audio.CoreAudio     0x91862ff4
HP_IOThread::PerformIO(AudioTimeStamp const&) + 548
19  com.apple.audio.CoreAudio     0x918619c4
HP_IOThread::WorkLoop() + 808
20  com.apple.audio.CoreAudio     0x91861684
HP_IOThread::ThreadEntry(HP_IOThread*) + 12
21  com.apple.audio.CoreAudio     0x9184fc80
CAPThread::Entry(CAPThread*) + 104
22  libSystem.B.dylib             0x95698bf8 _pthread_start + 316

Thread 5:
0   libSystem.B.dylib             0x9565d3e8 __semwait_signal + 8
1   libSystem.B.dylib             0x9565d1fc nanosleep$UNIX2003 +
188
2   libSystem.B.dylib             0x9565d12c usleep$UNIX2003 + 68
3   com.apple.AppKit              0x939af294 -[NSUIHeartBeat
_heartBeatThread:] + 1836
4   com.apple.Foundation          0x9058bd9c __NSThread__main__ +
1004
5   libSystem.B.dylib             0x95698bf8 _pthread_start + 316

Thread 4 crashed with PPC Thread State 32:
srr0: 0x70030480  srr1: 0x0200f030   dar: 0x00000000 dsisr:
0x40000000
 r0: 0x0c956008    r1: 0xf0288050    r2: 0x0c95600c    r3: 0xf0288038
 r4: 0x002323cc    r5: 0xf0288028    r6: 0x0c956000    r7: 0x00000008
 r8: 0x0c956004    r9: 0x0c956000   r10: 0x00000008   r11: 0x0c956000
r12: 0xf0287fd8   r13: 0x00000000   r14: 0x00000000   r15: 0x002329d0
r16: 0x00000002   r17: 0x00000200   r18: 0xf02882ec   r19: 0x00000002
r20: 0x00000000   r21: 0x0022a6ac   r22: 0x0982f8cc   r23: 0x0982f800
r24: 0x00000040   r25: 0x0022a684   r26: 0x00000004   r27: 0x00000000
r28: 0x0022a650   r29: 0x00000001   r30: 0x0982f840   r31: 0x7002f9fc
 cr: 0x24022244   xer: 0x00000004    lr: 0x7002fcec   ctr: 0x00000100
vrsave: 0x00000000

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Quality of CoreAudio SRC
  • Next by Date: Clock drift and timestamps - what's the correct way to think?
  • Previous by thread: Re: Problem with DLS node output in Leopard (AUMixerEntry crash)
  • Next by thread: Clock drift and timestamps - what's the correct way to think?
  • Index(es):
    • Date
    • Thread