Re: Convertor crash
Re: Convertor crash
- Subject: Re: Convertor crash
- From: William Stewart <email@hidden>
- Date: Wed, 30 Apr 2008 13:19:34 -0700
The converter is not protecting itself from multi-thread access. So,
if you have one thread doing Fill/Convert calls and another thread
does a Reset or some other (SetProperty) call on the converter, it can
crash. It is the user's responsibility to use it in a thread-aware
manner
On Apr 30, 2008, at 12:41 PM, Evan Olcott wrote:
Under what circumstances would this convertor method (found in a
stack trace):
AudioConverterChain::FillBufferFromInputProc(unsigned long*,
CABufferList*)
...try to access 0xffffffff, causing the app to raise an exception?
===
Here is the short part of the stack (going from top to bottom):
...
-[AFConverter convertInput:inBytes:toOutput:outBytes:error:]
AudioConverterConvertBuffer
AudioConverterChain::ConvertBuffer(unsigned long, unsigned char*,
unsigned long&, unsigned char*)
AudioConverterChain::RenderOutput(CABufferList*, unsigned long,
unsigned long&, AudioStreamPacketDescription*)
BufferedAudioConverter::FillBuffer(unsigned long&, AudioBufferList&,
AudioStreamPacketDescription*)
CBRConverter::RenderOutput(CABufferList*, unsigned long, unsigned
long&, AudioStreamPacketDescription*)
BufferedAudioConverter::GetInputBytes(unsigned long, unsigned long&,
CABufferList const*&)
AudioConverterChain::FillBufferFromInputProc(unsigned long*,
CABufferList*)
0xffffffff
_sigtramp
NSExceptionHandlerUncaughtSignalHandler
...
====
Is it bad data? A bad buffer size? Any pointers to track this down?
(This is based on an "intermittent" problem, so it's hard to recreate)
Ev
Technical Knowledge Officer
Head Programmer/Designer
Audiofile Engineering
http://www.audiofile-engineering.com/
_______________________________________________
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