• 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: GC and NSCFType finalize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GC and NSCFType finalize


  • Subject: Re: GC and NSCFType finalize
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 5 Aug 2009 22:49:20 -0700

On Aug 4, 2009, at 18:12, dp wrote:

I recently updated some older code and converted to GC in the process. Most of the time, things run fine. But every now and then I seem to run into a CFRelease and/or a finalize down in system libraries or Apple Frameworks. The ImageIO framework and CFDateFormatter seem to be the culprits in some cases. How do I best go about debugging these and/or working around them? Are these bugs in the frameworks or just a GC issue I need to do something about? Crash stacks below.

Thread 1 Crashed:
0 com.apple.ImageIO.framework 0x0396c6e4 jp2_family_src::close() + 10
1 com.apple.ImageIO.framework 0x0396c67a _cg_JP2TearDownDecompressor + 28
2 com.apple.ImageIO.framework 0x0396c64f JP2ReleaseInfoCallback + 21
3 com.apple.Foundation 0x01a95a81 -[NSCFType finalize] + 49
4 libobjc.A.dylib 0x0087c6b6 finalizeOneObject + 56

What's the actual crash? Was it an exception? A signal? You should check in the console log to see if there's any useful information there.


If an object is being finalized at the time of the crash, it's likely you're failing to keep a strong reference to an object that you're responsible for keeping alive. For example, something that was previously being kept alive long enough by an autorelease (without any explicit reference in your stack, global or instance variables) could now be collected much earlier.

It's also possible that something that was thread-safe before (or whose thread safety didn't matter) is now unsafe because of the garbage collector thread.


_______________________________________________

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


References: 
 >GC and NSCFType finalize (From: dp <email@hidden>)

  • Prev by Date: Two right buttons on UINavigationBar?
  • Next by Date: Re: NSOutlineView Not Updating After Adding Items
  • Previous by thread: GC and NSCFType finalize
  • Next by thread: Loading an AS dict that defines 'point' also causes 'points' to be defined??
  • Index(es):
    • Date
    • Thread