我的iOS应用程序崩溃报告中出现了SIGSEGV异常

5
我一直收到这个崩溃报告,但我无法找出问题出在哪里。 我知道SIGSEGV异常类型通常是由于内存管理问题引起的。
根据第9行,崩溃发生在SoundsViewController内部的函数被调用时,是吗?我在我的代码中看到,在这个控制器中,第182行是<-(UITableViewCell *) tableView:(UITableView *) tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath>函数的结尾。
这是否意味着有一些变量没有正确释放?我如何找到它们?我启用了Zombie,这帮助我修复了另一个崩溃,但对于这个崩溃没有任何作用。
我会很感激任何帮助。谢谢!
Exception Type:  SIGSEGV
Exception Codes: SEGV_ACCERR at 0xe15e7790
Crashed Thread:  0

Thread 0 Crashed:
0   libobjc.A.dylib                     0x38656b26 +[Protocol load] + 1289
1   Foundation                          0x2ec6803b -[NSThread description] + 1710
2   CoreFoundation                      0x2e25018b -[__NSCFLocale initWithLocaleIdentifier:] + 20334
3   CoreFoundation                      0x2e24f65b -[__NSCFLocale initWithLocaleIdentifier:] + 17470
4   CoreFoundation                      0x2e24de4f -[__NSCFLocale initWithLocaleIdentifier:] + 11314
5   CoreFoundation                      0x2e1b8ce7 0x2e1b1000 + 31975
6   CoreFoundation                      0x2e1b8acb 0x2e1b1000 + 31435
7   GraphicsServices                    0x32ed9283 -[_UIFontExtraData dealloc] + 25990
8   UIKit                               0x30a5aa41 -[UIScrollView _addContentSubview:atBack:] + 1492
9   MyApp1.2.0                          0x0004325f -[SoundsViewController .cxx_destruct] + 182
2个回答

1

1

在Instruments中开启僵尸检测。这看起来像是一个悬挂的代理(即某个对象试图调用代理引用,但代理目标已从内存中卸载)。您可以使用一些工具来跟踪它。


1
谢谢Echelon。确实是一个悬挂的委托。我使用了这个很棒的教程来学习内存管理[http://www.raywenderlich.com/5677/beginning-arc-in-ios-5-part-1]。 - Michael

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接