xcode 工具导致应用程序崩溃 [英] xcode instruments causing app crash

查看:29
本文介绍了xcode 工具导致应用程序崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 xcode Instruments 来跟踪分配和泄漏.我的应用程序崩溃了.仅在 Instruments 下运行常规调试或发布版本时,它不会崩溃:

非常感谢收到任何想法......

<上一页>异常类型:EXC_BAD_ACCESS (SIGBUS)异常代码:0x0002b2e0 处的 KERN_PROTECTION_FAILURE崩溃的线程:0线程 0 名称:调度队列:com.apple.main-thread线程 0 崩溃:0 libobjc.A.dylib 0x34499c96 objc_msgSend + 141 ZZZ 测试套件 0x000a3d74 0x95000 + 607882 CoreFoundation 0x308e4c3c -[NSObject(NSObject) 发布] + 243 核心基础 0x308e519a CFRelease + 624 核心基础 0x308e7eb4 _CFAutoreleasePoolPop + 1405 基础 0x341b41c4 -[NSAutoreleasePool 释放] + 926 UIKit 0x309e5f08 _UIApplicationHandleEvent + 57847 图形服务 0x30269e70 PurpleEventCallback + 6608 核心基础 0x30957a90 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 209 核心基础 0x30959838 __CFRunLoopDoSource1 + 16010 核心基础 0x3095a606 __CFRunLoopRun + 51411 核心基础 0x308eaebc CFRunLoopRunSpecific + 22412 核心基础 0x308eadc4 CFRunLoopRunInMode + 5213 图形服务 0x30269418 GSEventRunModal + 10814 图形服务 0x302694c4 GSEventRun + 5615 UIKit 0x30a10d62-[UIApplication_run] + 39816 UIKit 0x30a0e800 UIApplicationMain + 66417 ZZZ 测试套件 0x0009665c 0x95000 + 572418 ZZZ 测试套件 0x00096604 0x95000 + 5636

解决方案

作为对 Ian 上述内容的补充:将环境变量NSZombieEnabled"设置为 YES并且希望您获得更多信息的失败.

(在 XCode 4 中,环境变量位于Edit Scheme"下并选择Debug")

I am using xcode Instruments to track Allocations and Leaks. My app is crashing though. It does not crash when running the regular debug or release builds standalone, only when under Instruments:

Any thoughts ideas very gratefully received....

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0002b2e0
Crashed Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libobjc.A.dylib                 0x34499c96 objc_msgSend + 14
1   ZZZ Test Suite                  0x000a3d74 0x95000 + 60788
2   CoreFoundation                  0x308e4c3c -[NSObject(NSObject) release] + 24
3   CoreFoundation                  0x308e519a CFRelease + 62
4   CoreFoundation                  0x308e7eb4 _CFAutoreleasePoolPop + 140
5   Foundation                      0x341b41c4 -[NSAutoreleasePool release] + 92
6   UIKit                           0x309e5f08 _UIApplicationHandleEvent + 5784
7   GraphicsServices                0x30269e70 PurpleEventCallback + 660
8   CoreFoundation                  0x30957a90 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 20
9   CoreFoundation                  0x30959838 __CFRunLoopDoSource1 + 160
10  CoreFoundation                  0x3095a606 __CFRunLoopRun + 514
11  CoreFoundation                  0x308eaebc CFRunLoopRunSpecific + 224
12  CoreFoundation                  0x308eadc4 CFRunLoopRunInMode + 52
13  GraphicsServices                0x30269418 GSEventRunModal + 108
14  GraphicsServices                0x302694c4 GSEventRun + 56
15  UIKit                           0x30a10d62 -[UIApplication _run] + 398
16  UIKit                           0x30a0e800 UIApplicationMain + 664
17  ZZZ Test Suite                  0x0009665c 0x95000 + 5724
18  ZZZ Test Suite                  0x00096604 0x95000 + 5636

 

解决方案

As a complement to what Ian says above: set the Environment variable "NSZombieEnabled" to YES and you will hopefully have a more informative fail.

(In XCode 4 the Environment Variables is found under "Edit Scheme" and select "Debug")

这篇关于xcode 工具导致应用程序崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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