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

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

问题描述

我使用xcode Instruments来跟踪分配和泄漏。我的应用程序崩溃了。它不会崩溃时运行常规调试或发布版本独立,只有在仪器下:

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

 


推荐答案

作为对Ian说的补充:
将环境变量NSZombieEnabled设置为YES

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

(在XCode 4中,环境变量位于编辑方案下,选择调试)

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

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

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