• 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
Too many threads?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Too many threads?


  • Subject: Too many threads?
  • From: Rainer Standke <email@hidden>
  • Date: Wed, 08 May 2013 15:03:58 -0700

Hello all,

I have an app that's rendering QuickTime movies based on AVFoundation. It's multi-threaded via GCD, and has up 6 renders going at the same time.

I am getting un-explained crashes, or at least I can't explain them. The crashing thread is usually something deep in AVFoundation. I get things like this one: "AVAssetWriterStatusFailed - An unknown error occurred (35) - The operation could not be completed"

When the crashes happen the has something like 2000 threads going, according to Activity Monitor, and all the Free RAM is used up.

As a crutch I have implemented a throttling mechanism that basically waits a number of seconds before starting the next render - but it feels kludgy, and the app can still crash.

My question is, besides properly releasing objects etc, is there any thing I can do to keep the number of threads down, or cause the system to spin down threads that aren't needed any more?

Thanks for any pointers,

Rainer
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Too many threads?
      • From: Seth Willits <email@hidden>
    • Re: Too many threads?
      • From: "Stephen J. Butler" <email@hidden>
    • Re: Too many threads?
      • From: John Randolph <email@hidden>
  • Prev by Date: setFrame: weirdness in UITableViewCell
  • Next by Date: Re: Too many threads?
  • Previous by thread: setFrame: weirdness in UITableViewCell
  • Next by thread: Re: Too many threads?
  • Index(es):
    • Date
    • Thread