iPhone framework conflict causes crash
iPhone framework conflict causes crash
- Subject: iPhone framework conflict causes crash
- From: Nate <email@hidden>
- Date: Mon, 24 Nov 2008 04:46:52 -0800
I created a very simple program that does nothing but read data from the iPhone microphone using AudioUnit RemoteIO. The frameworks I am using are:
UIKit
Foundation
AudioToolbox
I found if I change nothing except for adding AVFoundation then my program crashes. Remove it and it works. Is there any way around this problem? The dumps from the crashes are at the end of this email.
I tried using the AudioUnit framework instead of AudioToolbox but Xcode told me it couldn't find AudioUnit, even though it is obviously there.
The reason I want to include AVFoundation is so I can use AVAudioPlayer.
Thanks,
-Nate
Sometimes the debugger triggers, sometimes it doesn't. Here is the dump when the debugger catches it:
semaphore_wait_signal_trap
pthread_mutex_lock
CAMutex::Lock
AUConverterBase::Reset
AUGenericOutput::Start
AudioOutputUnitStart
The crashed thread dump when the OS catches it:
CrashIfClientProvidedBogusAudioBufferList + 78
AudioConverterChain::CallInputProc(unsigned long) + 416
AudioConverterChain::FillBufferFromInputProc(unsigned long*, CABufferList*) + 90
BufferedAudioConverter::GetInputBytes(unsigned long, unsigned long&, CABufferList const*&) + 212
CBRConverter::RenderOutput(CABufferList*, unsigned long, unsigned long&, AudioStreamPacketDescription*) + 128
BufferedAudioConverter::FillBuffer(unsigned long&, AudioBufferList&, AudioStreamPacketDescription*) + 268
BufferedAudioConverter::GetInputBytes(unsigned long, unsigned long&, CABufferList const*&) + 161
CBRConverter::RenderOutput(CABufferList*, unsigned long, unsigned long&, AudioStreamPacketDescription*) + 128
BufferedAudioConverter::FillBuffer(unsigned long&, AudioBufferList&, AudioStreamPacketDescription*) + 268
BufferedAudioConverter::GetInputBytes(unsigned long, unsigned long&, CABufferList const*&) + 161
SRCWrapper::RenderOutput(CABufferList*, unsigned long, unsigned long&) + 171
BufferedAudioConverter::FillBuffer(unsigned long&, AudioBufferList&, AudioStreamPacketDescription*) + 268
BufferedAudioConverter::GetInputBytes(unsigned long, unsigned long&, CABufferList const*&) + 161
CBRConverter::RenderOutput(CABufferList*, unsigned long, unsigned long&, AudioStreamPacketDescription*) + 128
BufferedAudioConverter::FillBuffer(unsigned long&, AudioBufferList&, AudioStreamPacketDescription*) + 268
AudioConverterChain::RenderOutput(CABufferList*, unsigned long, unsigned long&, AudioStreamPacketDescription*) + 135
BufferedAudioConverter::FillBuffer(unsigned long&, AudioBufferList&, AudioStreamPacketDescription*) + 268
AudioConverterFillComplexBuffer + 244
AUIOHelper::NotifyInputAvailable(AudioTimeStamp const&, unsigned long, AudioBufferList const&) + 331
AURemoteIO::PerformIO(int, int, AQTimeStamp const&, AQTimeStamp const&) + 376
AURIOCallbackReceiver_PerformIO + 45
_XPerformIO + 251
mshMIGPerform + 206
MSHMIGDispatchMessage + 80
AURemoteIO::IOThread::Entry(void*) + 204
CAPThread::Entry(CAPThread*) + 122
_pthread_start + 321
thread_start + 34
_______________________________________________
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