Re: Unknown error message
Re: Unknown error message
- Subject: Re: Unknown error message
- From: uɐıʇəqɐz pnoqɥɒɯ <email@hidden>
- Date: Wed, 14 Apr 2010 20:02:37 -0700
Never mind, found them.
On Apr 14, 2010, at 5:15 PM, William Stewart wrote:
> There should be a crash report associated with this - can you file a bug with the crash report attached.
>
> Thanks
>
> Bill
>
>>>>>>>>> 2010-04-12 19:01:23.006 ClefTunes[1185:4e0b] [19:01:23.006 <AQClient>] AudioQueueEnqueueBufferWithParameters posting message to kill mediaserverd (891)
>>>>>>>>> [Switching to thread 12803]
>>>>>>>>> 2010-04-12 19:01:23.621 ClefTunes[1185:207] [19:01:23.621 <0x38168f48>] AudioQueuePrime posting message to kill mediaserverd (891)
>>>>>>>>
>>>>>
>>>>> On Apr 13, 2010, at 7:30 PM, William Stewart wrote:
>>>>>
>>>>>> ?
>>>>>>
>>>>>> Begin forwarded message:
>>>>>>
>>>>>>> From: uɐıʇəqɐz pnoqɥɒɯ <email@hidden>
>>>>>>> Date: April 13, 2010 5:50:34 PM PDT
>>>>>>> To: William Stewart <email@hidden>
>>>>>>> Subject: Re: Unknown error message
>>>>>>>
>>>>>>> I can't verify this, but here is what might have been happening. If I get this message again then I am wrong and the problem is elsewhere.
>>>>>>>
>>>>>>> I think that I may be stopping and releasing a note as AVAudioPlayer has just gotten to the end of it and wants to call its delegate to signal that it has ended playing. I don't know whether AVAudioPlayer is retaining the player itself, but I did just fix a bug where I was having two releases on the same player, once when I stopped and released, and once after that when I released in audioPlayerDidFinishPlaying (not expecting to get a delegate callback if I had stopped playback myself). Since it seems that my stopping playback may be in a race with AVAudioPlayer, finishing it, I think that maybe my -release was premature and AVAudioPlayer gets upset.
>>>>>>>
>>>>>>> In other words, the 2s below were running in parallel:
>>>>>>>
>>>>>>> user using finger taps:
>>>>>>>
>>>>>>> 1:play aSound
>>>>>>> 2:stop aSound->my code: [aSound stop];[aSound release];
>>>>>>>
>>>>>>> AvAudioPlayer:
>>>>>>> 1':play aSound
>>>>>>> 2':aSound finishedPlaying->delegate-> audioPlayerDidFinishPlaying->my code: [aSound release];
>>>>>>>
>>>>>>> Normally, 2 above would preclude 2' since AVAudioPlayer doesn't call audioPlayerDidFinishPlaying if play has been stopped. It might happen though, if the user removed their finger off the button,as AVAudioPlayer finishes and is about to call the delegate. I know this because in debugging it is pretty clear that in a small fraction of cases, I get a audioPlayerDidFinishPlaying, after I have stopped playback.
>>>>>>>
>>>>>>> As I said, I think I fixed this, (by nil'ing the delegate before I release, and after -stop and holding to see if the player is stillPlaying ). If I see the error message again, then I'll see if I can duplicate it somehow. If not, then maybe AVAudioPlayer needs to retain the sound it is playing, or ... you'd know better.
>>>>>>>
>>>>>>>
>>>>>>> On Apr 13, 2010, at 11:09 AM, William Stewart wrote:
>>>>>>>
>>>>>>>> no... if you have some way to reproduce this a bug report would be much appreciated. bugreporter.apple.com
>>>>>>>>
>>>>>>>> On Apr 12, 2010, at 7:02 PM, uɐıʇəqɐz pnoqɥɒɯ wrote:
>>>>>>>>
>>>>>>>>> HI. I am using AVAduioplayer to play audio in my iPad app. Every once in a while, the app hiccups and stalls and I get:
>>>>>>>>>
>>>>>>>>> 2010-04-12 19:01:23.006 ClefTunes[1185:4e0b] [19:01:23.006 <AQClient>] AudioQueueEnqueueBufferWithParameters posting message to kill mediaserverd (891)
>>>>>>>>> [Switching to thread 12803]
>>>>>>>>> 2010-04-12 19:01:23.621 ClefTunes[1185:207] [19:01:23.621 <0x38168f48>] AudioQueuePrime posting message to kill mediaserverd (891)
>>>>>>>>>
>>>>>>>>> Any idea why I would be getting this? Thanks.
>>>>>>>>>
>>>>>>>>> -mahboud
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> 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