MusicDevicePrepareInstrument safety
MusicDevicePrepareInstrument safety
- Subject: MusicDevicePrepareInstrument safety
- From: Christopher Corbell <email@hidden>
- Date: Sun, 23 Nov 2003 14:03:10 -0800
I'm getting a crash sometimes under Panther (10.3.1) when changing
the instrument of a MusicDevice unit in a graph used by a MusicSequence.
The crash happens during a call to MusicDevicePrepareInstrument.
Should I not be making this call after changing the instrument, or
are there guidelines on when it's safe to use? When I call it the
sequence graph is not running. Another music device unit
in a separate graph (used for realtime rendering) may have just
been changed also.
Thanks,
Christopher
Crash log excerpts:
-------------------------
Date/Time: 2003-11-23 02:13:36 -0800
OS Version: 10.3.1 (Build 7C107)
Command: iPiano
(/Applications/iPiano/iPiano.app/Contents/MacOS/iPiano)
PID: 467
Thread: 0
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x0527d36c
Thread 0 Crashed:
#0 0x016e4e1c in SystemOutputAUEntry (SystemOutputAUEntry + 39696)
#1 0x016c8bf4 in DLSMusicDeviceEntry (DLSMusicDeviceEntry + 5076)
#2 0x016c4d4c in AUSampleRateConverterEntry
(AUSampleRateConverterEntry + 5608)
#3 0x01736a08 in 0x1736a08
#4 0x90281a90 in CallComponent (CallComponent + 212)
#5 0x91a90a80 in MusicDevicePrepareInstrument
(MusicDevicePrepareInstrument + 40)
#6 0x00029c98 in -[CocoaMusicSequence
setInstrument:forTrackIndex:synthName:doSetSynth:]
(-[CocoaMusicSequence
setInstrument:forTrackIndex:synthName:doSetSynth:] + 1544)
[.....]
Thread 1:
#0 0x900075c8 in mach_msg_trap (mach_msg_trap + 8)
#1 0x90007118 in mach_msg (mach_msg + 56)
#2 0x90191930 in __CFRunLoopRun (__CFRunLoopRun + 848)
#3 0x901960bc in CFRunLoopRunSpecific (CFRunLoopRunSpecific + 328)
#4 0x9073315c in HALRunLoop::OwnThread(void*)
(HALRunLoop::OwnThread(void*) + 260)
#5 0x907393ac in CAPThread::Entry(CAPThread*)
(CAPThread::Entry(CAPThread*) + 48)
#6 0x900247e8 in _pthread_body (_pthread_body + 40)
Thread 2:
#0 0x90018ce8 in semaphore_timedwait_signal_trap
(semaphore_timedwait_signal_trap + 8)
#1 0x9000e888 in _pthread_cond_wait (_pthread_cond_wait + 616)
#2 0x90724764 in CAGuard::WaitFor(unsigned long long)
(CAGuard::WaitFor(unsigned long long) + 220)
#3 0x90724398 in CAGuard::WaitUntil(unsigned long long)
(CAGuard::WaitUntil(unsigned long long) + 304)
#4 0x90722d88 in HPIOThread::WorkLoop() (HPIOThread::WorkLoop() +
856)
#5 0x90739368 in HPIOThread::ThreadEntry(HPIOThread*)
(HPIOThread::ThreadEntry(HPIOThread*) + 28)
#6 0x907393ac in CAPThread::Entry(CAPThread*)
(CAPThread::Entry(CAPThread*) + 48)
#7 0x900247e8 in _pthread_body (_pthread_body + 40)
Thread 3:
#0 0x900075c8 in mach_msg_trap (mach_msg_trap + 8)
#1 0x90007118 in mach_msg (mach_msg + 56)
#2 0x81ebdc9c in XServerMachPort::ReceiveMessage(int&, void*, int&)
(XServerMachPort::ReceiveMessage(int&, void*, int&) + 84)
#3 0x81eb0d58 in MIDIInPortThread::Run() (MIDIInPortThread::Run() +
316)
#4 0x81eb4e50 in XThread::RunHelper(void*)
(XThread::RunHelper(void*) + 60)
#5 0x900247e8 in _pthread_body (_pthread_body + 40)
Thread 4:
#0 0x90012668 in syscall_thread_switch (syscall_thread_switch + 8)
#1 0x90a03024 in +[NSThread sleepUntilDate:] (+[NSThread
sleepUntilDate:] + 152)
#2 0x92dcac2c in -[NSUIHeartBeat _heartBeatThread:] (-[NSUIHeartBeat
_heartBeatThread:] + 1172)
#3 0x90a3a198 in forkThreadForFunction (forkThreadForFunction + 108)
#4 0x900247e8 in _pthread_body (_pthread_body + 40)
PPC Thread State:
srr0: 0x016e4e1c srr1: 0x0000f030 vrsave: 0x00000000
cr: 0x42004244 xer: 0x00000004 lr: 0x016e4ddc ctr: 0x00000020
r0: 0x0000155a r1: 0xbfffde90 r2: 0x0527d564 r3: 0x0527d36c
r4: 0x00000020 r5: 0x00000000 r6: 0x0000536c r7: 0x00000001
r8: 0x00000004 r9: 0x00000020 r10: 0x0000007e r11: 0x00005564
r12: 0x01d8a280 r13: 0x00000000 r14: 0x00000000 r15: 0x00000000
r16: 0xa2de8074 r17: 0x00000052 r18: 0xbfffe1f0 r19: 0x00000000
r20: 0x00000000 r21: 0x00000000 r22: 0x0981001d r23: 0x00000001
r24: 0x00089690 r25: 0x00089690 r26: 0xbfffe0d0 r27: 0x05278000
r28: 0x00005568 r29: 0x00000001 r30: 0x00000004 r31: 0x016e4c34
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.