• 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
Re: CFRunLookFindMode crash - solved
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFRunLookFindMode crash - solved


  • Subject: Re: CFRunLookFindMode crash - solved
  • From: Martin Redington <email@hidden>
  • Date: Fri, 17 Nov 2006 13:44:22 +0000


I'm using thread pooling now, which seems to work, although I had some problems with that before.


In the meantime, I've also uncovered (with lots of help) the underlying source of the problem - its a mach_port leakage issue - the Apple (and other) sample code appears to leak mach_ports like a sieve.

See http://www.cocoadev.com/index.pl? DistributedObjectsForInterThreadCommsCrash for the gory details, and a fix.

On 17 Nov 2006, at 06:59, Nir Soffer wrote:


On 17 Nov 2006, at 08:43, Nir Soffer wrote:
In my application, in normal conditions, extrapolating from some test cases, it would take 50 hours for the user to hit this issue, based on a new (shortlived) thread being created every five minutes. Unfortunately, this is a real use case for the app. It takes a lot less time if you have more than one worker thread running simultaneously - this seems to flush the issue out of the woodwork.


Why not keep one or few background thread for polling instead of recreating them?


Best Regards,

Nir Soffer

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: CFRunLookFindMode crash - solved
      • From: Nir Soffer <email@hidden>
References: 
 >CFRunLookFindMode crash (From: Martin Redington <email@hidden>)
 >Re: CFRunLookFindMode crash (From: j o a r <email@hidden>)
 >Re: CFRunLookFindMode crash (From: "R. Tyler Ballance" <email@hidden>)
 >Re: CFRunLookFindMode crash (From: Martin Redington <email@hidden>)
 >Re: CFRunLookFindMode crash (From: j o a r <email@hidden>)
 >Re: CFRunLookFindMode crash (From: Martin Redington <email@hidden>)
 >Re: CFRunLookFindMode crash (From: Nir Soffer <email@hidden>)
 >Re: CFRunLookFindMode crash (From: Martin Redington <email@hidden>)
 >Re: CFRunLookFindMode crash (From: Nir Soffer <email@hidden>)

  • Prev by Date: IOKit notifications
  • Next by Date: IOKit notifications
  • Previous by thread: Re: CFRunLookFindMode crash
  • Next by thread: Re: CFRunLookFindMode crash - solved
  • Index(es):
    • Date
    • Thread