• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AudioQueues seems to be leaking threads on iPhone?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AudioQueues seems to be leaking threads on iPhone?


  • Subject: AudioQueues seems to be leaking threads on iPhone?
  • From: "Andrew E. Davidson" <email@hidden>
  • Date: Sat, 14 Feb 2009 13:10:38 -0800

Strange

 

Using the simulator and the debugger I happened to notice that my player iPhone app keeps creating more and more threads each time I begin the “play” function. My applications is implemented using AudioQueues and does not explicitly create new threads. All the code I wrote runs in the main thread

 

Here are the # threads I have observed in my test

 

  • Just before first play 3 threads
  • Just before second play 6 threads
    • Most are in mach_ms_trap
    • One has something from AQConverter in its stack
  • Just before third play I have 8 threads
    • Most are in mach_ms_trap
    • One has something from AQConverter in its stack

 

From one play to the next, I do not always get the same # of threads add. It seems some time some threads seem to expire?

 

 

I checked my code, I explicitly create a new player every time the user press the play button. I release the player as soon as the play back finishes. I used the debugger to check that in fact all the objects I created are getting released.

 

My app seems to work okay, how ever it seems like it must be wasting more and more system resources?

 

Any idea why I might be seeing this behavior? Any idea how I can track this down?

 

I did not notice this problem in the SpeakHere sample app.

 

My app uses several AudioQueues. I wonder if this could some how be related to the problem?

 

Is this a bug?

 

Thanks

 

Andy

 


Replace Ads with your Stuff! Learn how @  www.prowebsurfer.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

  • Follow-Ups:
    • Re: AudioQueues seems to be leaking threads on iPhone?
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: Loop Audio on iPhone
  • Next by Date: Re: AudioQueues seems to be leaking threads on iPhone?
  • Previous by thread: Input buffer size for SCAudioFillBuffer
  • Next by thread: Re: AudioQueues seems to be leaking threads on iPhone?
  • Index(es):
    • Date
    • Thread