0

In iPhone Crash logs, i see the following information.

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

Application Specific Information: iOSMyApp[2687] has active assertions beyond permitted time: {( identifier: Suspending process: iOSMyApp[2687] permittedBackgroundDuration: 10.000000 reason: suspend owner pid:15 preventSuspend preventThrottleDownCPU preventThrottleDownUI )}

Elapsed total CPU time (seconds): 10.060 (user 10.060, system 0.000), 100% CPU Elapsed application CPU time (seconds): 7.785, 77% CPU

I Understand that Elapsed application CPU time includes the total CPU time utilized by the application including the waiting time for device resources.

But What is this 7.785 seconds ?

Is this the time taken to render the Screen UI ? or Is this the time taken to return from applicationDidFinishWithLaunchingOptions Method ?

I get this doubt because Application launch time till 20 seconds (approx because no fixed metric is defined by apple) is accepted by apple. But then for 7.785 seconds why did we get the crash log ?

Please help me understand this value.

pnuts
  • 58,317
  • 11
  • 87
  • 139
Prem
  • 4,823
  • 4
  • 31
  • 63
  • http://stackoverflow.com/questions/3908882/application-failed-to-launch-in-time – Rushabh Mar 11 '13 at 05:33
  • So, is this 7.785 seconds = Time taken by didFinishLaunching method ? – Prem Mar 11 '13 at 05:36
  • Are you by any chance calling beginBackgroundTaskWithExpirationHandler: without calling a corresponding endBackgroundTask:? – Tirth Mar 11 '13 at 05:36
  • I dont have access to the source code ... I am testing the application using the .app and .dysm file. But again, my question is not why the application crashed. It is what is the time mentioned in Elapsed application CPU time (seconds). – Prem Mar 11 '13 at 05:41
  • As per my guessing your application want to execute extra time for execution. – Tirth Mar 11 '13 at 05:44
  • for more information read http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIApplication_Class/Reference/Reference.html#//apple_ref/occ/instm/UIApplication/beginBackgroundTaskWithExpirationHandler: – Tirth Mar 11 '13 at 05:44
  • http://www.techdoubts.com/what-is-cpu-time-and-elapsed-time/ – Rushabh Mar 11 '13 at 05:47

1 Answers1

0

The Time mentioned is the time taken to return from applicationDidFinishWithLaunchingOptions method.

Referred to these links and got this information.

App Crashes on Startup with iOS 5 - Cannot Reproduce iPhone 4 vs iPhone 5 TestFlight issue Unable to start debug IPA on iOS 6, it runs perfectly on iOS 5

Community
  • 1
  • 1
Prem
  • 4,823
  • 4
  • 31
  • 63