2011-08-23 37 views
6

我从设备拉出的iPad崩溃中获取以下堆栈跟踪。这是从用户的iPad中拉出来的,我不知道它在坠毁时做了什么。如何获取更多信息,了解应用程序崩溃的原因/解决方法?用很少的信息调试iPad设备崩溃

 
Uncaught C++ Exception 
Stack trace: 

    0 - 0 MyApp        0x00005ac1 _Z16TerminateHandlerv + 24 
    1 - 1 libstdc++.6.dylib     0x33814e3d _ZN10__cxxabiv111__terminateEPFvvE + 52 
    2 - 2 libstdc++.6.dylib     0x33814e91 _ZSt9terminatev + 16 
    3 - 3 libstdc++.6.dylib     0x33814f61 __cxa_throw + 84 
    4 - 4 libobjc.A.dylib      0x3441dc8b objc_exception_throw + 70 
    5 - 5 Foundation       0x3645192b __NSThreadPerformPerform + 654 
    6 - 6 CoreFoundation      0x34e16a79 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12 
    7 - 7 CoreFoundation      0x34e1875f __CFRunLoopDoSources0 + 382 
    8 - 8 CoreFoundation      0x34e194eb __CFRunLoopRun + 230 
    9 - 9 CoreFoundation      0x34da9ec3 CFRunLoopRunSpecific + 230 
    10 - 10 CoreFoundation      0x34da9dcb CFRunLoopRunInMode + 58 
    11 - 11 GraphicsServices     0x339d041f GSEventRunModal + 114 
    12 - 12 GraphicsServices     0x339d04cb GSEventRun + 62 
    13 - 13 UIKit        0x33a07d69 -[UIApplication _run] + 404 
    14 - 14 UIKit        0x33a05807 UIApplicationMain + 670 
    15 - 15 MyApp        0x000036af main + 70 
    16 - 16 MyApp        0x00003664 start + 40 

回答

2

两件事情,你可以尝试: Somtimes应用程式崩溃和一个完全不同的方法,调试器停止。在xcode运行设置中启用“guard malloc”(在xcode4中的方案下),在调试器中运行应用程序,直到它崩溃,并查看是否显示你应该指责哪个方法。

如果不是,最好的办法是在调试器中运行应用程序,并使崩溃发生。尝试一切,模拟各处的内存警告,使用应用程序的每个功能,尝试通过应用程序的路径的每一个可能的组合。询问用户他们认为他们在做什么可能会缩小一些。