NSCFData isResizable crash? [英] NSCFData isResizable crash?

查看:216
本文介绍了NSCFData isResizable crash?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在控制台中收到此崩溃日志:

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'

?可能是什么原因?

谢谢!

推荐答案

更可能的是,你已经过度释放了一些随机对象,很巧的是,NSData(或CFData)的一个实例已经分配在now-gone对象的位置。

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.

运行Zombie检测仪器,看看是否捕捉到任何东西(搜索SO for NSZombie)。

Run the Zombie detection instrument and see if that catches anything (search SO for NSZombie).

或者,在objc_exception_throw上设置一个断点,消息正在发送。但这可能不能提供足够的上下文。

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.

这篇关于NSCFData isResizable crash?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆