问题
I am currently getting this crash log in the console:
2011-08-23 19:18:40.064 App[1697:707] -[__NSCFData _isResizable]: unrecognized selector sent to instance 0x11f1c0
2011-08-23 19:18:40.075 App[1697:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFData _isResizable]: unrecognized selector sent to instance 0x11f1c0'
Does anyone know what this means? What could be the cause of it?
Thanks!
回答1:
More likely than not, you've over-released some random object and, quite coincidentally, an instance of NSData (or CFData) has been allocated at the location of the now-gone object.
Run the Zombie detection instrument and see if that catches anything (search SO for NSZombie).
Alternatively, set a breakpoint on objc_exception_throw and that should show you where the message is being sent. That may not provide enough context, though.
回答2:
You seem to be sending an invalid selector (isResizable) to an object, perhaps an NSData object? Do you have a stack trace to provide more information about where the crash is happening?
来源:https://stackoverflow.com/questions/7168689/nscfdata-isresizable-crash