iOS kill myapp issue - iphone

Oct 5 16:23:07 com.apple.launchd[1] <Notice>: (UIKitApplication:com.gx.uxart[0x57b0]) Exited: Killed: 9
Oct 5 16:23:07 com.apple.launchd[1] <Notice>: (UIKitApplication:com.hahainteractive.bookswing[0x2339]) Exited: Killed: 9
Oct 5 16:23:07 com.apple.launchd[1] <Notice>: (UIKitApplication:com.nike.nikeplus-gps[0xf40f]) Exited: Killed: 9
Oct 5 16:23:07 backboardd[28] <Warning>: Application 'UIKitApplication:net.nyvra.NYSliderPopoverDemo[0x43d]' exited abnormally with signal 9: Killed: 9
Oct 5 16:23:07 backboardd[28] <Warning>: Application 'UIKitApplication:com.croquis.CookieWords[0xcc22]' exited abnormally with signal 9: Killed: 9
Oct 5 16:23:07 backboardd[28] <Warning>: Application 'UIKitApplication:com.gx.uxart[0x57b0]' exited abnormally with signal 9: Killed: 9
Oct 5 16:23:07 backboardd[28] <Warning>: Application 'UIKitApplication:com.hahainteractive.bookswing[0x2339]' exited abnormally with signal 9: Killed: 9
Oct 5 16:23:07 backboardd[28] <Warning>: Application 'UIKitApplication:com.nike.nikeplus-gps[0xf40f]' exited abnormally with signal 9: Killed: 9
myapp is com.gx.uxart. I have any questions.
what is com.apple.lanuchd? (I know backboard that is SpringBoard Daemon.)
why kill my app by ios? memory usage?
What can I do to prevent the application killing by iOS? memory optimization?

launched is the father of all processes.. under unix that was inits IIRC.
it's job is too launch and relaunch and kill daemons/apps including springboard I'd guess
but that doesn't matter in your case :) What matters is that you CANT reliably prevent the OS from killing your app. It can be killed anytime. There is no constant background mode. Apple writes about this in detail:
Any app that goes into bg can REQUEST to continue running via a backgroundTask it starts. Then you can get as much time as you want... in theory. In practice: you shouldn't use memory, cpu time or consume power or you are killed nonetheless.
speculation
In your case it does indeed look the OS kills as much apps as possible to give more men to nikeplus-gps ... but it isn't enough and so it has to kill nikeplus too

How much memory is your app using? Launchd will kill apps if memory pressures arise.
Launch your app with instruments and look at the allocations. Specifically the live bytes. This is surely your problem.
Additionally this assumes your app is the foreground app. If your app is in the background it can be suspended at anytime for many reasons.
Start with Instruments first though, if you haven't already. A good memory footprint is the foundation for avoiding many problems.
Helpful References:
Using Instruments
iOS multitasking

Related

xcode 5 - debug on device failed using jailcoder

Using xcode 5.1.1, and trying to debug my app on a jailbroken iphone 4 (7.1.2).
I installed Jailcoder (from the facebook page) and patched both my xcode and my project with it.
The project is just a simple view application (trying to get that to work first).
I run the app using my iphone as the build setting, the app loads on my phone but then it exits with
2014-07-28 16:00:42.831 testLiveDebug[11384:60b] otherApps (null)
Opening the console in the organizer i see this error:
Jul 28 15:51:45 my-iPhone com.apple.launchd[1] (UIKitApplication:com.debug.testLiveDebug[0xe02e][11348]) <Error>: (UIKitApplication:com.debug.testLiveDebug[0xe02e]) Exited with code: 45
Jul 28 15:51:45 my-iPhone com.apple.launchd[1] (UIKitApplication:com.debug.testLiveDebug[0xe02e]) <Notice>: (UIKitApplication:com.debug.testLiveDebug[0xe02e]) Throttling respawn: Will start in 2147483641 seconds
Jul 28 15:51:45 my-iPhone com.apple.debugserver-310.2[11346] <Warning>: 38 +6.392165 sec [2c52/1307]: error: ::read ( -1, 0x35a9ec, 18446744069414585344 ) => -1 err = Bad file descriptor (0x00000009)
Jul 28 15:51:45 my-iPhone com.apple.debugserver-310.2[11346] <Warning>: Exiting.
Jul 28 15:51:45 my-iPhone backboardd[11188] <Warning>: Application 'UIKitApplication:com.debug.testLiveDebug[0xe02e]' exited abnormally with exit status 45
I have Appsync for 7.0+ and also tried with AppSync Unified....but still i get the same error.
In the past (ios6) this whole process worked fine with jailcoder.
Any idea why i cant live debug on the device ?
-Thanks
Resupported 4+ was causing the error....after i uninstalled it everything was working fine.

App crashing after returning from background on iOS6

I have an app that has been running fine on iOS 5, but after some testing on iOS 6, it runs fine except for when returning to the app after it has been running. Once it returns from the background it is unresponsive and then crashes about 10 seconds later.
WillEnterForeground() is executed fine and there is only some simple code in there.
Checking the console on the phone, I see the following:
Sep 20 16:41:07 Seans-iPhone-4 kernel[0] <Debug>: launchd[985] Builtin profile: container (sandbox)
Sep 20 16:41:07 Seans-iPhone-4 kernel[0] <Debug>: launchd[985] Container: /private/var/mobile/Applications/F73BBA70-90D1-4CB6-B7F3-FF10289396A9 (sandbox)
Sep 20 16:41:29 Seans-iPhone-4 backboardd[52] <Warning>: TrekkTrakker failed to resume in time
Sep 20 16:41:29 Seans-iPhone-4 backboardd[52] <Warning>: Forcing crash report of TrekTrakkerSimp[985]...
Sep 20 16:41:30 Seans-iPhone-4 backboardd[52] <Warning>: Finished crash reporting.
Sep 20 16:41:30 Seans-iPhone-4 com.apple.launchd[1] (UIKitApplication:TrekkTrakker[0x28c2][985]) <Notice>: (UIKitApplication:TrekkTrakker[0x28c2]) Exited: Killed: 9
Sep 20 16:41:30 Seans-iPhone-4 backboardd[52] <Warning>: Application 'UIKitApplication:TrekkTrakker[0x28c2]' exited abnormally with signal 9: Killed: 9
Sep 20 16:41:30 Seans-iPhone-4 ReportCrash[987] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
Sep 20 16:41:31 Seans-iPhone-4 ReportCrash[987] <Notice>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/TrekTrakkerSimple_2012-09-20-164129_Seans-iPhone-4.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
Anyone experiencing similar issues, or have any idea what might be happening?
If your not using ARC it is in all likelihood an issue with something being released that your sending a message to. Just about every version of iOS that has come out has exposed some bug that was always there but which for whatever reason was not surfaced until the new Version.
Run in the debugger and look at all the code in the levels near where it crashed for something stupid like an object that is not retained or which you though was but isn't.
Your app is crashing or rather being forced to exit by WatchDog because the app is not responsive in the 10 second window. This means that your app is taking too long to launch, this could be due to a call that is getting stuck on iOS 6 or more likely the iOS 6 device is running slightly slower for one reason or another. Use the Time Profiler instrument to look at where your startup time is going and ensure that applicationDidFinishLaunching: is returning as quickly as possible, most cases of WatchDog crashes are due to hangups in that method.

Any iPhone master Please tell me the reason for my app crash here is my Log?

i am doing Tab application in iPhone with four tabs.
my app almost completed but while app running some times it is crashing.i observed that issue raising while i am switching between two view's like front and back in navigation.any iPhone master please help me to resolve this?
## Log ##
Mon Jul 16 21:07:55 unknown MyApp[167] <Warning>: NVVC Dealloc
Mon Jul 16 21:08:23 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.company.MyApp[0xe271]) Bug: launchd_core_logic.c:2688 (24132):10
Mon Jul 16 21:08:23 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.company.MyApp[0xe271]) Working around 5020256. Assuming the job crashed.
Mon Jul 16 21:08:23 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.company.MyApp[0xe271]) Job appears to have crashed: Segmentation
fault
Mon Jul 16 21:08:23 unknown SpringBoard[29] <Warning>: Application 'MyApp' exited abnormally with signal 11: Segmentation fault
Mon Jul 16 21:09:04 unknown lockdownd[20] <Error>: (0x403000) handle_connection: Could not receive USB message #7 from Xcode. Killing connection
Mon Jul 16 22:00:39 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.apple.mobilemail[0x55fb]) Exited: Killed
Mon Jul 16 22:00:39 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.apple.mobilephone[0xa13c]) Exited: Killed
Mon Jul 16 22:00:39 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.MyApp.app[0x137]) Exited: Killed
Mon Jul 16 22:00:39 unknown com.apple.launchd[1] <Notice>: (com.apple.accessoryd) Exited: Killed
Mon Jul 16 22:00:41 unknown SpringBoard[29] <Warning>: Application 'Mail' exited abnormally with signal 9: Killed
Mon Jul 16 22:00:41 unknown SpringBoard[29] <Warning>: Memory level is not normal (15%). Delaying auto-relaunch of 'Mail' for 30 seconds. Mon Jul 16 22:00:41 unknown SpringBoard[29] <Warning>: Application 'app' exited abnormally with signal 9: Killed
Mon Jul 16 22:00:42 unknown SpringBoard[29] <Warning>: Application 'Phone' exited abnormally with signal 9: Killed
This looks familiar:
Application 'MyApp' exited abnormally with signal 11: Segmentation fault
Segmentation fault means you're trying to access a memory area you haven't allocated (yet), or in general you're referencing an invalid pointer, I'd double check the relevant parts of code.
Since you're switching views, you might be assuming some memory-related tasks have already been taken care of but in fact they havent'.

iphone application crashes only in device and when profiling with instruments

I am not able to find the reason of a crash in my iphone app.it crashes only when it is in device.however when the breakpoints are on ,it doesnt crash.After crashing the following log is printed in the organiser console.
Mar 21 15:43:16 abc-Ss-iPhone com.apple.SpringBoard[15] <Notice>: CoreAnimation: timed out fence 1f4
Mar 21 15:43:18 abc-Ss-iPhone ReportCrash[1771] <Notice>: Formulating crash report for process aaa[1770]
Mar 21 15:43:18 abc-Ss-iPhone com.apple.launchd[1] (UIKitApplication:com.xxx.aaa[0x3989][1770]) <Warning>: (UIKitApplication:com.xxx.aaa[0x3989]) Job appears to have crashed: Segmentation fault: 11
Mar 21 15:43:18 abc-Ss-iPhone SpringBoard[15] <Warning>: Application 'aaa' exited abnormally with signal 11: Segmentation fault: 11
I have put NSLog to find where it is crashing.it is pointing to an area where i am reloading the tableview.
I am doing some calculations in the bg thread and reloading the table in the main thread using the following code:
//////////////////////////////in bg thread
if(needToReload){
NSLog(#"calc end---table refresh called");
[self performSelectorOnMainThread:#selector(updateTable) withObject:nil waitUntilDone:YES];
}
Are you profiling a Release or Debug version of the app? If Release then I believe you should still be able to decode the crashlog. Please check by opening XCode Organizer -> Device Logs for that device.

AppleFairplayTextCrypterSession::fairplayOpen() rashing iPhone on startup

I'm trying to find out if anyone here had mysterious crash on startup and peeking into the console logs, you see AppleFairplayTextCrypterSession::fairplayOpen() failed ?
The iPhone app will connect to remote server for xml data and if the server is down this will crash the app. On subsequent startup, it will always crash until I reboot and sync to iTunes again.
I appreciate it very much if somebody can give me some clue as to how to prevent the crash or catch it and exit gracefully.
Sun Dec 6 22:50:31 unknown kernel[0] <Debug>: AppleFairplayTextCrypterSession::fairplayOpen() failed, error -42184
Sun Dec 6 22:50:31 unknown SpringBoard[25] <Warning>: Failed to spawn MyApp. Unable to obtain a task name port right for pid 140: (os/kern) failure
Sun Dec 6 22:50:31 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.--.MyApp[0x554b]) Exited: Killed
Sun Dec 6 22:50:31 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.--.MyApp[0x554b]) Throttling respawn: Will start in 2147483647 seconds
Sun Dec 6 22:50:31 unknown SpringBoard[25] <Warning>: Application 'MyApp' exited abnormally with signal 9: Killed
I think the issue might be with this line
Application 'MyApp' exited abnormally
with signal 9: Killed
Please, see this discussion
http://discussions.apple.com/thread.jspa?messageID=9908695
Hope that helps