【问题标题】:App is Crashing on iPod Touch First and Second Generation第一代和第二代 iPod Touch 上的应用程序崩溃
【发布时间】:2011-08-05 12:32:24
【问题描述】:

据报道,我发布的应用程序(Hidden London - Free App)在第二代和第三代 iPod touch 上崩溃。它可以在 iPhone 和 iPad 上正常运行。

崩溃日志如下:

Wed Apr 13 09:03:40 unknown kernel[0] <Debug>: launchd[908] Builtin profile: container (sandbox)

Wed Apr 13 09:03:40 unknown kernel[0] <Debug>: launchd[908] Container: /private/var/mobile/Applications/E509FC07-A742-4483-95B1-7393B3F129B9 [69] (sandbox)

Wed Apr 13 09:03:40 unknown sandboxd[911] <Notice>: HiddenLondon(908) deny file-write-data /private/var/mobile/Applications/E509FC07-A742-4483-95B1-7393B3F129B9/HiddenLondon.app/HiddenLondon.sqlite

Wed Apr 13 09:03:40 unknown HiddenLondon[908] <Warning>: Not purchased: com.Beutelkind.HiddenLondon.ExtraPlaces

Wed Apr 13 09:03:40 unknown HiddenLondon[908] <Warning>: Not purchased: com.Beutelkind.HiddenLondon.RemoveAds

Wed Apr 13 09:03:42 unknown securityd[910] <Error>: OCSPResponse: now + maxAge > latestNextUpdate, using latestNextUpdate

Wed Apr 13 09:03:42 unknown com.apple.SpringBoard[24] <Notice>: CoreAnimation: timed out fence 500

Wed Apr 13 09:04:00 unknown HiddenLondon[908] <Warning>: ADBannerView: WARNING A banner view (0x159470) has an ad but may be obscured. This message is only printed once per banner view.

Wed Apr 13 09:04:31 unknown configd[22] <Notice>: jetsam: kernel memory event (90), free: 323, active: 1250, inactive: 1494, purgeable: 0, wired: 7841

Wed Apr 13 09:04:31 unknown configd[22] <Notice>: jetsam: kernel termination snapshot being created

Wed Apr 13 09:04:31 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.apple.AdSheetPhone[0xabc0]) Exited: Killed

Wed Apr 13 09:04:31 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.Beutelkind.HiddenLondon[0x2fef]) Exited: Killed

Wed Apr 13 09:04:31 unknown SpringBoard[24] <Warning>: Received memory warning. Level=1

Wed Apr 13 09:04:31 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.apple.mobilemail[0x736e]) Exited: Killed

Wed Apr 13 09:04:31 unknown SpringBoard[24] <Warning>: Received memory warning. Level=1

Wed Apr 13 09:04:32 unknown SpringBoard[24] <Warning>: Application 'AdSheet' exited abnormally with signal 9: Killed

Wed Apr 13 09:04:32 unknown SpringBoard[24] <Warning>: Application 'HiddenLondon' exited abnormally with signal 9: Killed

Wed Apr 13 09:04:32 unknown SpringBoard[24] <Warning>: Application 'Mail' exited abnormally with signal 9: Killed

Wed Apr 13 09:04:32 unknown SpringBoard[24] <Warning>: Memory level is not normal (56%). Delaying auto-relaunch of 'Mail' for 30 seconds.

Wed Apr 13 09:04:32 unknown SpringBoard[24] <Warning>: Received memory warning. Level=1

Wed Apr 13 09:04:33 unknown ReportCrash[917] <Error>: Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2011-04-13-090433.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0

谁能帮我解决为什么 iPod Touch 上会发生这种情况?

【问题讨论】:

    标签: iphone objective-c xcode ipod-touch


    【解决方案1】:

    提示您的应用程序崩溃的原因是 Received memory warning. Level=1。你没记忆了。这可能是您的应用程序用于数据结构的 RAM 量,但当您用完图形内存(即用于合成视图、缓存图像等的内存)时,我更经常看到这种类型的错误。总量第 1 代和第 2 代 iPod touch 上的 RAM 只有 128MB。第 3 代和第 4 代将其提升到 256MB。

    日志中的内存相关信息以jetsam: kernel memory event (90), free: 323, active: 1250, inactive: 1494, purgeable: 0, wired: 7841 开头,这是一条“内存不足”警告消息。然后,您会看到一大堆应用程序被操作系统终止(Exited: Killedexited abnormally with signal 9: Killed)。这是 iOS 在低内存条件下的记录行为 - 它会杀死应用程序,直到它有足够的可用内存。

    【讨论】:

    • Odrm - 感谢您的有用回答。如何使用我所拥有的 - iPhone 4、iPad 和 SDK 模拟器进一步解决此问题?
    • 我认为没有替代设备测试的方法(请参阅setting memory in iPhone Simulator)。但是您可以使用Instruments 作为启动器来跟踪内存使用情况...
    【解决方案2】:

    我认为您的应用程序正在使用大量内存,因此它被操作系统杀死了。

    【讨论】:

      猜你喜欢
      • 2012-09-29
      • 2010-09-18
      • 2011-03-19
      • 1970-01-01
      • 2012-12-01
      • 1970-01-01
      • 2011-01-13
      • 2012-11-25
      • 2012-02-19
      相关资源
      最近更新 更多