【问题标题】:SIGSEGV exception in my iOS app crash report我的 iOS 应用程序崩溃报告中的 SIGSEGV 异常
【发布时间】:2013-11-10 00:37:53
【问题描述】:

我不断收到此崩溃报告,但我不知道问题出在哪里。 我了解 SIGSEGV 异常类型通常是由于内存管理问题。

根据第 9 行,在 SoundsViewController 内部调用函数 cxx_destruct 时会发生崩溃,对吗?我在代码中看到此控制器中的第 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

【问题讨论】:

    标签: ios objective-c crash crash-reports


    【解决方案1】:

    你可以参考这个链接 http://kevincupp.com/2011/05/12/symbolicating-ios-crash-logs.html 这个问题是因为 SoundsViewController 的释放。 检查 SoundsViewController 的保留值。

    【讨论】:

      【解决方案2】:

      在 Instruments 中开启僵尸检测。这从表面上看就像一个悬空的委托(即某个对象试图调用委托引用,但委托目标已从内存中卸载)。你可以使用一些仪器来追踪它。

      【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-04-12
      • 2012-05-10
      • 2011-07-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多