Re: MusicDevicePrepareInstrument safety
Re: MusicDevicePrepareInstrument safety
- Subject: Re: MusicDevicePrepareInstrument safety
- From: Jeremy Sagan <email@hidden>
- Date: Sun, 23 Nov 2003 18:38:25 -0500
That one looks surpisingly similar to this one that a customer sent me.
Jeremy
**********
Date/Time: 2003-11-20 23:52:38 -0500
OS Version: 10.2.8 (Build 6R73)
Host: Gary-K-Doty-Sr-s-Computer.local.
Command: Metro G4
PID: 564
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x1177726e
Thread 0 Crashed:
#0 0x90004204 in free_list_remove_ptr
#1 0x90003ea0 in szone_free
#2 0x902226fc in DisposePtr
#3 0x01af5074 in SystemOutputAUEntry
#4 0x01af5220 in SystemOutputAUEntry
#5 0x01aee504 in SystemOutputAUEntry
#6 0x01ae1b68 in DLSMusicDeviceEntry
#7 0x01ae0d70 in DLSMusicDeviceEntry
#8 0x01ae0e34 in DLSMusicDeviceEntry
#9 0x01acb100 in 0x1acb100
#10 0x01aec484 in SystemOutputAUEntry
#11 0x01ad5da4 in AUSampleRateConverterEntry
#12 0x01b47a08 in
_ZN19ComponentEntryPointI13SynthInstanceE8DispatchEP19ComponentParameter
sPS0_
#13 0x91eb0810 in AudioUnitUninitialize
#14 0x00113854 in __code_start__
#15 0x0011103c in __code_start__
#16 0x00064e90 in __code_start__
#17 0x00064d78 in __code_start__
#18 0x00062fbc in __code_start__
#19 0x00062f0c in __code_start__
#20 0x00047368 in __code_start__
#21 0x0004723c in __code_start__
#22 0x00047184 in __code_start__
#23 0x0004a380 in __code_start__
#24 0x0008e24c in __code_start__
#25 0x0008e1e0 in __code_start__
#26 0x0004a298 in __code_start__
#27 0x0004a160 in __code_start__
#28 0x00086be8 in __code_start__
#29 0x00086a34 in __code_start__
#30 0x00003828 in __code_start__
#31 0x000036a8 in __code_start__
Thread 1:
#0 0x90073ba8 in mach_msg_trap
#1 0x90005ed0 in mach_msg
#2 0xc0007754 in __ape_internal
#3 0xc000119c in __ape_agent
#4 0x90020c28 in _pthread_body
Thread 2:
#0 0x9003e9a8 in semaphore_wait_signal_trap
#1 0x9003e7c4 in _pthread_cond_wait
#2 0x9023317c in TSWaitOnSemaphoreCommon
#3 0x9023bf78 in TimerThread
#4 0x90020c28 in _pthread_body
Thread 3:
#0 0x90073ba8 in mach_msg_trap
#1 0x90005ed0 in mach_msg
#2 0x953ddd90 in _ZN15XServerMachPort14ReceiveMessageERiPvS0_
#3 0x953d17c8 in _ZN16MIDIInPortThread3RunEv
#4 0x953d560c in _ZN7XThread9RunHelperEPv
#5 0x90020c28 in _pthread_body
Thread 4:
#0 0x900111a8 in semaphore_timedwait_trap
#1 0x0009a1cc in __code_start__
#2 0x90020c28 in _pthread_body
PPC Thread State:
srr0: 0x90004204 srr1: 0x0200d030 vrsave: 0x00000000
xer: 0x00000000 lr: 0x900041d0 ctr: 0x90000ee0 mq: 0x00000000
r0: 0x900041d0 r1: 0xbffff2d0 r2: 0x01af5220 r3: 0x00000000
r4: 0x00000000 r5: 0x00000001 r6: 0x80808080 r7: 0x00000002
r8: 0x6f720000 r9: 0x003ce00c r10: 0x024fb010 r11: 0xa00047b0
r12: 0x90000ee0 r13: 0x00000000 r14: 0x00000000 r15: 0x00000000
r16: 0x00000000 r17: 0x00000000 r18: 0x00000000 r19: 0x00000000
r20: 0x00000000 r21: 0x00000000 r22: 0xa0003d10 r23: 0x00000fc0
r24: 0x000000fc r25: 0x0038e010 r26: 0x00000000 r27: 0x0000ffff
r28: 0x019aad00 r29: 0x11777266 r30: 0x00000000 r31: 0x9000416c
On Sunday, November 23, 2003, at 05:03 PM, Christopher Corbell wrote:
>
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.
_______________________________________________
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.