iPhone 应用程序在 iOS 4.0 或更高版本上随机崩溃。

发布于 2024-11-27 03:41:09 字数 1992 浏览 0 评论 0原文

我的 iPhone 上的应用程序遇到随机崩溃。这是崩溃日志,让我觉得它可能与线程安全或 UI 行为问题有关。

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x60000008
Crashed Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libobjc.A.dylib                 0x30de0c98 0x30dde000 + 11416
1   UIKit                           0x335e0ec2 0x335c4000 + 118466
2   UIKit                           0x3366dc1a 0x335c4000 + 695322
3   CoreFoundation                  0x3683456a 0x36826000 + 58730
4   UIKit                           0x335e0ec2 0x335c4000 + 118466
5   UIKit                           0x335e0e62 0x335c4000 + 118370
6   UIKit                           0x335e0e34 0x335c4000 + 118324
7   UIKit                           0x335e0b86 0x335c4000 + 117638
8   UIKit                           0x335e141c 0x335c4000 + 119836
9   UIKit                           0x335dfbee 0x335c4000 + 113646
10  UIKit                           0x335df568 0x335c4000 + 111976
11  UIKit                           0x335c830c 0x335c4000 + 17164
12  UIKit                           0x335c7c4c 0x335c4000 + 15436
13  GraphicsServices                0x31623e70 0x3161f000 + 20080
14  CoreFoundation                  0x3689ba90 0x36826000 + 481936
15  CoreFoundation                  0x3689d838 0x36826000 + 489528
16  CoreFoundation                  0x3689e606 0x36826000 + 493062
17  CoreFoundation                  0x3682eebc 0x36826000 + 36540
18  CoreFoundation                  0x3682edc4 0x36826000 + 36292
19  GraphicsServices                0x31623418 0x3161f000 + 17432
20  GraphicsServices                0x316234c4 0x3161f000 + 17604
21  UIKit                           0x335f2d62 0x335c4000 + 191842
22  UIKit                           0x335f0800 0x335c4000 + 182272
23  Tapatalk X                      0x00002fa6 0x1000 + 8102
24  Tapatalk X                      0x00002f3c 0x1000 + 7996

有时我发现全局变量也会随机损坏。

有什么建议我可以追踪这个问题或者什么工具可以提供帮助吗?谢谢!

I’m facing a random crash with my App on iPhone. Here is the crash log which makes me feel it probably related to thread-safe or UI behavior issues.

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x60000008
Crashed Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libobjc.A.dylib                 0x30de0c98 0x30dde000 + 11416
1   UIKit                           0x335e0ec2 0x335c4000 + 118466
2   UIKit                           0x3366dc1a 0x335c4000 + 695322
3   CoreFoundation                  0x3683456a 0x36826000 + 58730
4   UIKit                           0x335e0ec2 0x335c4000 + 118466
5   UIKit                           0x335e0e62 0x335c4000 + 118370
6   UIKit                           0x335e0e34 0x335c4000 + 118324
7   UIKit                           0x335e0b86 0x335c4000 + 117638
8   UIKit                           0x335e141c 0x335c4000 + 119836
9   UIKit                           0x335dfbee 0x335c4000 + 113646
10  UIKit                           0x335df568 0x335c4000 + 111976
11  UIKit                           0x335c830c 0x335c4000 + 17164
12  UIKit                           0x335c7c4c 0x335c4000 + 15436
13  GraphicsServices                0x31623e70 0x3161f000 + 20080
14  CoreFoundation                  0x3689ba90 0x36826000 + 481936
15  CoreFoundation                  0x3689d838 0x36826000 + 489528
16  CoreFoundation                  0x3689e606 0x36826000 + 493062
17  CoreFoundation                  0x3682eebc 0x36826000 + 36540
18  CoreFoundation                  0x3682edc4 0x36826000 + 36292
19  GraphicsServices                0x31623418 0x3161f000 + 17432
20  GraphicsServices                0x316234c4 0x3161f000 + 17604
21  UIKit                           0x335f2d62 0x335c4000 + 191842
22  UIKit                           0x335f0800 0x335c4000 + 182272
23  Tapatalk X                      0x00002fa6 0x1000 + 8102
24  Tapatalk X                      0x00002f3c 0x1000 + 7996

Sometimes I find global variables get corrupted randomly too.

Any suggestion how I can trace down this issue or what tools can help? Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苏辞 2024-12-04 03:41:09

EXEC_BAD_ACCESS 通常是由于尝试访问已释放的对象而引起的。您可以通过两种方式获取更多信息:

  1. 以调试模式执行程序,因此当程序崩溃时您将能够看到堆栈内容;

  2. 激活NSZombies或者使用性能工具Zombies运行程序;这将准确地告诉您哪个对象在释放后被访问。

从你的崩溃报告中很难理解发生了什么,因为它没有显示方法名称......什么是 Tapatalk?

EXEC_BAD_ACCESS is usually caused by an attempt to access an already deallocated object. You can get more information in two ways:

  1. execute the program in debug mode, so when it crashes you will be able to see the stack content;

  2. activate NSZombies or run the program using the performance tool Zombies; this will tell you exactly which object was accessed after its deallocation.

From your crash report is very difficult to understand what is happening ,since it does not show method names... what is tapatalk?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文