繁体   English   中英

Iphone / IOS-调试应用程序崩溃

[英]Iphone/IOS - Debugging Application Crashes

根据我的阅读,过去几年来,这个话题已经出现过好几次了,而且答案通常都很模糊,再加上我一年多以来一直没有提到这个话题,所以我希望有进展。

无论如何,我目前安装了带有IOS 5.0.1的Iphone 4,并且遇到了从App Store安装的大多数应用程序在启动屏幕上崩溃的问题。 有很多人说从App Store安装随机应用程序,重新安装应用程序或完全还原手机将解决此问题,但似乎不再具有相同的效果(因为大多数建议是针对IOS的) 4和3,而不是5)。

因此,我所做的只是试图找到问题的根源。 我将使用流行和著名的应用程序UrbanSpoon作为崩溃示例。 以下是尝试运行UrbanSpoon之后的系统日志和崩溃报告。 据我了解,这与IOS沙箱应用程序的运行方式有关,但我无法弄清楚哪个部分专门说明了可能导致崩溃的原因。

非常感谢您提供任何帮助,希望这些答案将对每个遇到此问题的人有所帮助!

SysLog:

(从第一次执行UrbanSpoon到最后一次提及该应用程序的日志文件中删除)

编辑:Syslog太大,无法在此处发布,这里是它的链接。 http://dl.dropbox.com/u/9235267/MyiPhoneSysLogForUrbanSpoon.txt

UrbanSpoon崩溃报告:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>AutoSubmitted</key>
    <true/>
    <key>SysInfoCrashReporterKey</key>
    <string>38f6d9c3d504f902f8dbae968517559766e3092d</string>
    <key>bug_type</key>
    <string>109</string>
    <key>description</key>
    <string>Incident Identifier: 568DB2CE-F9A2-47A7-A427-B5C4DF6A09D0
CrashReporter Key:   38f6d9c3d504f902f8dbae968517559766e3092d
Hardware Model:      iPhone3,1
Process:         urbanspin [282]
Path:            /var/mobile/Applications/42579EAA-3CD0-4B2B-BFF5-5EB1C9297207/urbanspin.app/urbanspin
Identifier:      urbanspin
Version:         ??? (???)
Code Type:       ARM (Native)
Parent Process:  launchd [1]

Date/Time:       2012-01-04 13:22:22.479 -0500
OS Version:      iPhone OS 5.0.1 (9A405)
Report Version:  104

Exception Type:  00000020
Exception Codes: 0x8badf00d
Highlighted Thread:  0

Application Specific Information:
com.urbanspoon.urbanspin failed to launch in time

Elapsed total CPU time (seconds): 20.580 (user 20.580, system 0.000), 100% CPU 
Elapsed application CPU time (seconds): 0.511, 2% CPU

Thread 0:
0   ???                             0x34a7f110 0 + 883421456
1   Foundation                      0x32356c92 0x32350000 + 27794
2   AnyRingLib.dylib                0x00379a3e 0x377000 + 10814
3   dyld                            0x2febdf80 0x2feb1000 + 53120
4   dyld                            0x2febdbcc 0x2feb1000 + 52172
5   dyld                            0x2febb7d0 0x2feb1000 + 42960
6   dyld                            0x2febc790 0x2feb1000 + 46992
7   dyld                            0x2feb35c0 0x2feb1000 + 9664
8   dyld                            0x2feb9106 0x2feb1000 + 33030
9   ???                             0x3367b5a4 0 + 862434724
10  SubstrateLoader.dylib           0x000d46ae 0xd3000 + 5806
11  SubstrateLoader.dylib           0x000d4828 0xd3000 + 6184
12  dyld                            0x2febdece 0x2feb1000 + 52942
13  dyld                            0x2febdbd4 0x2feb1000 + 52180
14  dyld                            0x2febb7d0 0x2feb1000 + 42960
15  dyld                            0x2febc790 0x2feb1000 + 46992
16  dyld                            0x2feb35c0 0x2feb1000 + 9664
17  dyld                            0x2feb9106 0x2feb1000 + 33030
18  ???                             0x3367b5a4 0 + 862434724
19  MobileSubstrate.dylib           0x0009aea0 0x9a000 + 3744
20  dyld                            0x2febdece 0x2feb1000 + 52942
21  dyld                            0x2febdbd4 0x2feb1000 + 52180
22  dyld                            0x2febb7d0 0x2feb1000 + 42960
23  dyld                            0x2febc790 0x2feb1000 + 46992
24  dyld                            0x2feb39f0 0x2feb1000 + 10736
25  dyld                            0x2feb7b80 0x2feb1000 + 27520
26  dyld                            0x2feb22ca 0x2feb1000 + 4810
27  dyld                            0x2feb205c 0x2feb1000 + 4188

Thread 1:
0   ???                             0x34a7e3b4 0 + 883418036
1   ???                             0x34beab98 0 + 884911000
2   ???                             0xfffffffc 0 + -4

Thread 2:
0   ???                             0x34a8ecd4 0 + 883485908
1   ???                             0x3626d0a0 0 + 908513440

Thread 3:
0   ???                             0x34a8ecd4 0 + 883485908
1   ???                             0x3626d0a0 0 + 908513440

Unknown thread crashed with unknown flavor: 5, state_count: 1

Binary Images:
    0x1000 -    0x74fff +urbanspin armv7  &lt;0b3e8cdf11113d1abf4c0d83ef1a3ebe&gt; /var/mobile/Applications/42579EAA-3CD0-4B2B-BFF5-5EB1C9297207/urbanspin.app/urbanspin
   0x9a000 -    0x9afff +MobileSubstrate.dylib armv6  &lt;cf2cce379dcd3a4c970e3196b908b0b6&gt; /Library/MobileSubstrate/MobileSubstrate.dylib
   0xd3000 -    0xd4fff +SubstrateLoader.dylib armv6  &lt;30381ec9e24c3c289f447bf428bda2c1&gt; /Library/Frameworks/CydiaSubstrate.framework/Libraries/SubstrateLoader.dylib
   0xf7000 -    0xfafff  libsubstrate.dylib armv6  &lt;d375337d03a7324c9cfb608b7231eeea&gt; /usr/lib/libsubstrate.dylib
  0x300000 -   0x311fff +ActionMenu.dylib armv6  &lt;62581e9bc0d93ef2ab8175cd5e337e62&gt; /Library/MobileSubstrate/DynamicLibraries/ActionMenu.dylib
  0x318000 -   0x321fff +Activator.dylib armv6  &lt;53595f5e871d3d7eac4f8e945b039de3&gt; /Library/MobileSubstrate/DynamicLibraries/Activator.dylib
  0x329000 -   0x365fff +AdBlocker.dylib armv6  &lt;07089bfdb5563a33bee5fc772477dd33&gt; /Library/MobileSubstrate/DynamicLibraries/AdBlocker.dylib
  0x377000 -   0x396fff +AnyRingLib.dylib armv6  &lt;98857b11e0d73e13dfb59d83ed186a0e&gt; /Library/MobileSubstrate/DynamicLibraries/AnyRingLib.dylib
0x2feb1000 - 0x2fed2fff  dyld armv7  &lt;be7c0b491a943054ad12eb5060f1da06&gt; /usr/lib/dyld
0x31933000 - 0x31a78fff  CoreGraphics armv7  &lt;641fb6e558f239588a8bd05dbefff99a&gt; /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x32350000 - 0x324cefff  Foundation armv7  &lt;ce466f428d953caaac6641d186665809&gt; /System/Library/Frameworks/Foundation.framework/Foundation
0x362fd000 - 0x363edfff  QuartzCore armv7  &lt;ff595b1a042933249466e92433e1af6f&gt; /System/Library/Frameworks/QuartzCore.framework/QuartzCore
0x36d54000 - 0x371edfff  UIKit armv7  &lt;97b527cd6fba35c6bb39263e0f362223&gt; /System/Library/Frameworks/UIKit.framework/UIKit
0x378d1000 - 0x3791cfff  CoreLocation armv7  &lt;b640873565a03e45a7d4c38d1b5abade&gt; /System/Library/Frameworks/CoreLocation.framework/CoreLocation
</string>
    <key>displayName</key>
    <string>urbanspin</string>
    <key>name</key>
    <string>urbanspin</string>
    <key>os_version</key>
    <string>iPhone OS 5.0.1 (9A405)</string>
    <key>system_ID</key>
    <string></string>
    <key>version</key>
    <string>??? (???)</string>
</dict>
</plist>

这一行:“应用程序未能按时启动”似乎是整个问题的根源。 这意味着应用程序在启动时在-applicationDidFinishLaunchingWithOptions方法中执行了太多工作。 将较高的加载时间与100%的CPU使用率相结合,该应用程序看起来像是一家精品中国商店里th风云的公牛。 这些就是操作系统喜欢杀死的应用程序。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM