App hanging in AudioQueueStop
App hanging in AudioQueueStop
- Subject: App hanging in AudioQueueStop
- From: Jens Alfke <email@hidden>
- Date: Thu, 20 Mar 2008 17:32:48 -0700
My app is hanging whenever I stop its playback AudioQueue. This just
started today, but I'm not sure what change triggered it. I've made
some changes to the number and sizes of my buffers.
The hang is 100% reproducible and always looks like this, with the
main thread stuck inside AQCallbackSender_PropertyChanged. I've
included the backtraces of the other audio-related threads, to show
that they're idle.
I do have a property listener registered on the queue's "isRunning"
property. That hasn't changed in a long time. I tried removing the
listener right before calling AudioQueueStop, and that prevents the
hang.
Any idea what's going wrong here? My app interacts with CoreAudio only
on the main thread, so I don't think I could have done something that
could have caused AudioQueue to deadlock...
—Jens
Thread 1 (process 2769 local thread 0xf03):
#0 0x92b9b9e6 in mach_msg_trap ()
#1 0x92ba31dc in mach_msg ()
#2 0x9307d7a8 in AQCallbackSender_PropertyChanged ()
#3 0x9304806a in AudioQueueObject::PropertyChanged ()
#4 0x9304b536 in AudioQueueObject::Stop ()
#5 0x9305dd31 in AQServer_Stop ()
#6 0x9306167f in AudioQueueStop ()
...my app code...
Thread 16 (process 2769 thread 0xba03):
#0 0x92b9b9e6 in mach_msg_trap ()
#1 0x92ba31dc in mach_msg ()
#2 0x9617a0de in CFRunLoopRunSpecific ()
#3 0x9617ad18 in CFRunLoopRunInMode ()
#4 0x96412464 in HALRunLoop::OwnThread ()
#5 0x96412300 in CAPThread::Entry ()
#6 0x92bccc55 in _pthread_start ()
#7 0x92bccb12 in thread_start ()
Thread 15 (process 2769 thread 0x7f13):
#0 0x92b9ba46 in semaphore_timedwait_signal_trap ()
#1 0x92bcddaf in _pthread_cond_wait ()
#2 0x92bcf633 in pthread_cond_timedwait_relative_np ()
#3 0x943af92a in TSWaitOnConditionTimedRelative ()
#4 0x943af70a in TSWaitOnSemaphoreCommon ()
#5 0x943d7d0c in AIOFileThread ()
#6 0x92bccc55 in _pthread_start ()
#7 0x92bccb12 in thread_start ()
Thread 14 (process 2769 thread 0x7c27):
#0 0x92b9ba46 in semaphore_timedwait_signal_trap ()
#1 0x92bcddaf in _pthread_cond_wait ()
#2 0x92bcf633 in pthread_cond_timedwait_relative_np ()
#3 0x943af92a in TSWaitOnConditionTimedRelative ()
#4 0x943af70a in TSWaitOnSemaphoreCommon ()
#5 0x9088a80a in ReadSchedulerThreadEntryPoint ()
#6 0x92bccc55 in _pthread_start ()
#7 0x92bccb12 in thread_start ()
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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