Re: Crash in Resampler2
Re: Crash in Resampler2
- Subject: Re: Crash in Resampler2
- From: Tommy Braas <email@hidden>
- Date: Thu, 19 Apr 2007 13:08:46 +1000
Thanks Bill. I hadn't thought of that... :-)
I'll try to guard the call to AudioConverterReset.
Thanks,
\tommy
On Apr 17, 2007, at 11:47 , William Stewart wrote:
Oh - I see...
The common cause of crashing here area due to the converter being
reset (or even disposed) on one thread while it is rendering on
another.
So you have to make sure your code is aware of the fact (and
possibly introduce a mutex) that the converter can be rendering
when you want to do a Reset (AudioConverterReset).
Bill
On 13/04/2007, at 3:47 PM, Tommy Braas wrote:
Bill,
I suspect that this problem lies in the fact that I have a feeder
and a consumer thread using these buffers (as you could tell from
the stack trace). I am quite sure the problem is in my code, and
wondered under what conditions the scenario below could happen.
That being said, if you still feel that there might be a bug to
address, I will happily file one.
Thanks,
\tommy
On Apr 13, 2007, at 3:32 , William Stewart wrote:
Please file a bug and include the full stack trace - some way to
reproduce this would be helpful as well - http://
bugreporter.apple.com
Thanks
On 11/04/2007, at 5:19 AM, Tommy Braas wrote:
Hi,
I get the following crash every once in a while trying to play
back 24 bit audio files using my own framework. I have double,
and triple checked that the buffers are the right size, and that
I don't deallocate any of them while they're in use.
Does anyone know what the problem may be?
Thanking you in advance,
\tommy
Thread 4 Crashed:
0 <<00000000>> 0xffff0b5a __memcpy + 954 (cpu_capabilities.h:
228)
1 ....audio.toolbox.AudioToolbox 0x93d2d941
Resampler2::Convert(float*, float*, unsigned long, int) + 7451
2 ....audio.toolbox.AudioToolbox 0x93d2bc0f
Resampler2::Process2(float*, float*, unsigned long, int) + 211
3 ....audio.toolbox.AudioToolbox 0x93d2a0cc
Resampler2Wrapper::RenderOutput(CABufferList*, unsigned long,
unsigned long&) + 534
4 ....audio.toolbox.AudioToolbox 0x93d2997b
BufferedAudioConverter::FillBuffer(unsigned long&,
AudioBufferList&, AudioStreamPacketDescription*) + 211
5 ....audio.toolbox.AudioToolbox 0x93d29b09
AudioConverterChain::RenderOutput(CABufferList*, unsigned long,
unsigned long&, AudioStreamPacketDescription*) + 93
6 ....audio.toolbox.AudioToolbox 0x93d2997b
BufferedAudioConverter::FillBuffer(unsigned long&,
AudioBufferList&, AudioStreamPacketDescription*) + 211
7 ....audio.toolbox.AudioToolbox 0x93d29808
AudioConverterFillComplexBuffer + 190
8 TestFramework 0x1000c292 -
[ComplexAudioConverter
fillComplexBuffer:buffer:packetDescription:] + 61
9 TestFramework 0x10013d84 -
[ComplexAudioConverter convertBuffer] + 190
10 TestFramework 0x1001463a -
[ComplexAudioConverter convertBufferRunLoop:] + 228
11 com.apple.Foundation 0x925ed36c
forkThreadForFunction + 123
12 libSystem.B.dylib 0x90023d87 _pthread_body + 84
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
--
mailto:email@hidden
tel: +1 408 974 4056
____________________________________________________________________
______
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry
Pratchett
____________________________________________________________________
______
--
mailto:email@hidden
tel: +1 408 974 4056
______________________________________________________________________
____
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
______________________________________________________________________
____
_______________________________________________
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