0

我正在运行我的应用程序 20-30 分钟,我检查了内存泄漏,其中没有内存泄漏。我在我的应用程序中使用 MapView 将它的位置发送到服务器,20 分钟后它可以正常工作,但 20 到 25 分钟后它会崩溃,给出这个日志

Sep 10 17:05:06 unknown UserEventAgent[19] <Notice>: jetsam: kernel termination snapshot being created
Sep 10 17:05:06 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.apple.mobilemail[0x585e]) Exited: Killed: 9
Sep 10 17:05:06 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.ephlux.VeloCity[0xfbfb]) Exited: Killed: 9
Sep 10 17:05:06 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.iappventures.gtalk[0x75e0]) Exited: Killed: 9
Sep 10 17:05:06 unknown SpringBoard[27] <Warning>: Application 'VeloCity' exited abnormally with signal 9: Killed: 9
Sep 10 17:05:07 unknown com.apple.locationd[68] <Notice>: NOTICE,Location icon should now not be visible
Sep 10 17:05:07 unknown SpringBoard[27] <Warning>: Application 'Mail' exited abnormally with signal 9: Killed: 9
> 
Sep 10 17:05:07 unknown SpringBoard[27] <Warning>: Application 'iGtalk' exited abnormally with signal 9: Killed: 9
Sep 10 17:05:08 unknown kernel[0] <Debug>: Sandbox: ignoring builtin profile for platform app: /private/var/stash/Applications/MobileMail.app/MobileMail
Sep 10 17:05:08 unknown kernel[0] <Debug>: launchd[608] Builtin profile: container (sandbox)
Sep 10 17:05:08 unknown kernel[0] <Debug>: launchd[608] Container: /private/var/mobile/Applications/124A80FF-4E09-4E60-8D3C-CE8C194F4801 [69] (sandbox)
> 
Sep 10 17:05:09 unknown ReportCrash[605] <Notice>: MS:Notice: Installing: (null) [ReportCrash] (675.00)
Sep 10 17:05:09 unknown iLocation[608] <Notice>: MS:Notice: Installing: com.iappventures.gtalk [iLocation] (675.00)
Sep 10 17:05:09 unknown MobileMail[606] <Notice>: MS:Notice: Installing: com.apple.mobilemail [MobileMail] (675.00)
Sep 10 17:05:09 unknown iLocation[608] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/Activator.dylib
Sep 10 17:05:09 unknown MobileMail[606] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/Activator.dylib
Sep 10 17:05:09 unknown ReportCrash[605] <Error>: Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2012-09-10-170509.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
> 
Sep 10 17:05:11 unknown iLocation[608] <Warning>: Sound ID has been created
�&gt; �&gt; 
Sep 10 17:05:13 unknown com.apple.locationd[68] <Notice>: NOTICE,Location icon should now be visible
Sep 10 17:05:13 unknown iLocation[608] <Warning>: labelRect ={{10, 0}, {70, 41}}
Sep 10 17:05:13 unknown iLocation[608] <Warning>: self.textField.frame ={{100, -1}, {210, 43}}
Sep 10 17:05:13 unknown iLocation[608] <Warning>: labelRect ={{10, 0}, {70, 40}}
Sep 10 17:05:13 unknown iLocation[608] <Warning>: self.textField.frame ={{100, -1.5}, {210, 43}}
Sep 10 17:05:13 unknown iLocation[608] <Warning>: labelRect ={{10, 0}, {70, 39}}
Sep 10 17:05:13 unknown iLocation[608] <Warning>: self.textField.frame ={{100, -1}, {210, 43}}
Sep 10 17:05:13 unknown iLocation[608] <Warning>: labelRect ={{10, 0}, {70, 39}}
Sep 10 17:05:13 unknown iLocation[608] <Warning>: self.textField.frame ={{100, -1.5}, {210, 43}}
Sep 10 17:05:13 unknown spd[609] <Notice>: MS:Notice: Installing: (null) [spd] (675.00)
Sep 10 17:05:13 unknown wifid[49] <Error>: WiFi:[368971513.595893]: Disable WoW requested by "spd"
> 
Sep 10 17:05:15 unknown com.apple.locationd[68] <Notice>: NOTICE,Location icon should now not be visible
�&gt; �&gt; 
Sep 10 17:10:07 unknown SpringBoard[27] <Notice>: Posting 'com.apple.iokit.hid.displayStatus' notifyState=0
Sep 10 17:10:07 unknown SpringBoard[27] <Notice>: MultitouchHID: detection mode: 0->255
4

1 回答 1

0

当您的应用程序的内存使用量逐渐增加时,这种情况更有可能发生。当前台应用程序需要更多内存时,操作系统会一一杀死后台应用程序,以便为前台应用程序提供尽可能多的内存。但是,当前台应用程序的内存使用量超过可用内存量时,操作系统也会终止前台应用程序并生成崩溃报告。

于 2013-04-17T07:05:46.090 回答