访问不良 - [NSSet makeObjectsPerformSelector:withObject:]

时间:2013-07-02 09:48:32

标签: ios objective-c

我在[NSSet makeObjectsPerformSelector:withObject:]上遇到了崩溃,但在我的代码中找不到它发生的地方。
我的猜测是,它是过度释放的GestureRecognizers之一,但遗憾的是我找不到任何东西。

崩溃日志:

 
Exception Type:
    EXC_BAD_ACCESS
Code:
    KERN_INVALID_ADDRESS at 0x3758096392

com.apple.main-thread Crashed
0   libobjc.A.dylib     objc_msgSend + 15
1   CoreFoundation  -[NSSet makeObjectsPerformSelector:withObject:] + 186
2   UIKit   -[UIGestureRecognizer dealloc] + 124
3   UIKit   -[UILongPressGestureRecognizer dealloc] + 152
4   CoreFoundation  CFRelease + 100
5   CoreFoundation  -[__NSArrayI dealloc] + 78
6   libobjc.A.dylib     (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 168
7   CoreFoundation  _CFAutoreleasePoolPop + 16
8   Foundation  __NSFireDelayedPerform + 466
9   CoreFoundation  __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 14
10  CoreFoundation  __CFRunLoopDoTimer + 272
11  CoreFoundation  __CFRunLoopRun + 1232
12  CoreFoundation  CFRunLoopRunSpecific + 356
13  CoreFoundation  CFRunLoopRunInMode + 104
14  GraphicsServices    GSEventRunModal + 74
15  UIKit   UIApplicationMain + 1120
16  my.app  main.m line 16 main 
编辑:我想我发现了问题。我在didReceiveMemoryWarning发布了一些GestureRecognizers所依赖的内容。

1 个答案:

答案 0 :(得分:0)

我想我发现了这个问题。我在didReceiveMemoryWarning中发布了一些GestureRecognizers所依赖的内容。