Posts tagged ‘crash’

Autorelease crash?

These days I got a strange crash report. The application was crashing at: libobjc.A.dylib!objc_msgSend + 0x18. It is from an object being released manually before it’s autoreleased.
Call stack would not help me, cannot reproduce the crash either…better, it crashed, but not deterministically.

You got it too? Now try the following:

  • add the following environment variables to executable arguments:
    • NSDebugEnabled: YES
    • NSZombieEnabled: YES
    • NSAutoreleaseFreedObjectCheckEnabled: YES
  • run the application, try to run every scenario, start with most used features.

Got it? Fix it!

March 16, 2010 at 12:43 pm Leave a comment


Categories

Feeds