NSCFData isResizable crash?

主宰稳场 提交于 2019-12-23 10:17:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!