Crash Report: failed to resume in time

Hi there! My app is about to release this weekend. but now I meet maybe the last crash problem.
When I am testing the game on my iPad, it suddenly freezes, you can do nothing except push the Home button to quit the app. It happened almost once a day and can happened in different iPad.

Here is the crash report from Organizer in Xcode, I checked it for a week, all the report looks the same, but I cannot understand the report. Do anyone know what it mean? Is the crash caused by memory issues or script bugs or something else? Thanks!

Here is the report, which made my thread too long to post…

Incident Identifier: 157806D8-1C45-47C8-9933-9CAD71D9B56B
CrashReporter Key:   004cc7d6f640edba040606169f76552050019fd1
Hardware Model:      iPad1,1
Process:         StarcraftDefense [2113]
Path:            /var/mobile/Applications/XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX/StarcraftDefense.app/StarcraftDefense
Identifier:      StarcraftDefense
Version:         ??? (???)
Code Type:       ARM (Native)
Parent Process:  launchd [1]

Date/Time:       2010-11-11 15:03:28.295 +0800
OS Version:      iPhone OS 3.2.2 (7B500)
Report Version:  104

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

Application Specific Information:
com.xxxxxx.StarcraftDefense failed to resume in time 
elapsed total CPU time (seconds): 20.150 (user 12.210, system 7.940), 100% CPU 
elapsed application CPU time (seconds): 6.550, 33% CPU

Thread 0:
0   StarcraftDefense              	0x005545b4 0x1000 + 5584308
1   StarcraftDefense              	0x0055497c 0x1000 + 5585276
2   StarcraftDefense              	0x0055497c 0x1000 + 5585276
3   StarcraftDefense              	0x0056c110 0x1000 + 5681424
4   StarcraftDefense              	0x0056bd40 0x1000 + 5680448
5   StarcraftDefense              	0x0056aa20 0x1000 + 5675552
6   StarcraftDefense              	0x005ba148 0x1000 + 6000968
7   StarcraftDefense              	0x005fa6e4 0x1000 + 6264548
8   StarcraftDefense              	0x008b8890 0x1000 + 9140368
9   StarcraftDefense              	0x0071879c 0x1000 + 7436188
10  StarcraftDefense              	0x0066c120 0x1000 + 6730016
11  StarcraftDefense              	0x00761bbc 0x1000 + 7736252
12  StarcraftDefense              	0x007e3c10 0x1000 + 8268816
13  StarcraftDefense              	0x0000cc44 0x1000 + 48196
14  CoreFoundation                	0x00028ff4 -[NSObject performSelector:withObject:] + 16
15  Foundation                    	0x0007cec8 __NSThreadPerformPerform + 228
16  CoreFoundation                	0x00022c0e CFRunLoopRunSpecific + 1822
17  CoreFoundation                	0x000224da CFRunLoopRunInMode + 42
18  GraphicsServices              	0x000030d4 GSEventRunModal + 108
19  GraphicsServices              	0x00003180 GSEventRun + 56
20  UIKit                         	0x0000342a -[UIApplication _run] + 374
21  UIKit                         	0x00001954 UIApplicationMain + 636
22  StarcraftDefense              	0x0000d988 0x1000 + 51592
23  StarcraftDefense              	0x0000cb1c 0x1000 + 47900

Thread 1:
0   libSystem.B.dylib             	0x00001668 mach_msg_trap + 20
1   libSystem.B.dylib             	0x00003734 mach_msg + 44
2   CoreFoundation                	0x0002296e CFRunLoopRunSpecific + 1150
3   CoreFoundation                	0x000224da CFRunLoopRunInMode + 42
4   WebCore                       	0x0000268a RunWebThread(void*) + 286
5   libSystem.B.dylib             	0x0007a786 _pthread_start + 242
6   libSystem.B.dylib             	0x00070070 thread_start + 0

Thread 2:
0   libSystem.B.dylib             	0x00001668 mach_msg_trap + 20
1   libSystem.B.dylib             	0x00003734 mach_msg + 44
2   StarcraftDefense              	0x008d8278 0x1000 + 9269880
3   StarcraftDefense              	0x00806df4 0x1000 + 8412660
4   libSystem.B.dylib             	0x0007a786 _pthread_start + 242
5   libSystem.B.dylib             	0x00070070 thread_start + 0

Thread 3:
0   libSystem.B.dylib             	0x000016b8 semaphore_wait_trap + 8
1   libSystem.B.dylib             	0x0002ecce semaphore_wait + 2
2   StarcraftDefense              	0x0083a3ac 0x1000 + 8623020
3   StarcraftDefense              	0x008a0428 0x1000 + 9040936
4   StarcraftDefense              	0x008d77f8 0x1000 + 9267192
5   StarcraftDefense              	0x00806df4 0x1000 + 8412660
6   libSystem.B.dylib             	0x0007a786 _pthread_start + 242
7   libSystem.B.dylib             	0x00070070 thread_start + 0

Thread 4:
0   libSystem.B.dylib             	0x00001668 mach_msg_trap + 20
1   libSystem.B.dylib             	0x00003734 mach_msg + 44
2   AudioToolbox                  	0x000b495c AURemoteIO::IOThread::Entry(void*) + 56
3   AudioToolbox                  	0x00001fa8 CAPThread::Entry(CAPThread*) + 144
4   libSystem.B.dylib             	0x0007a786 _pthread_start + 242
5   libSystem.B.dylib             	0x00070070 thread_start + 0

Thread 5:
0   libSystem.B.dylib             	0x000797ac __semwait_signal + 24
1   libSystem.B.dylib             	0x0002e976 _pthread_cond_wait + 742
2   libSystem.B.dylib             	0x0002e562 pthread_cond_wait + 26
3   Foundation                    	0x00025970 -[NSCondition wait] + 108
4   Foundation                    	0x0000811a -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 630
5   Foundation                    	0x00007e52 -[NSObject(NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:] + 94
6   StarcraftDefense              	0x0000cd54 0x1000 + 48468
7   Foundation                    	0x00010bca -[NSThread main] + 38
8   Foundation                    	0x0007ccf8 __NSThread__main__ + 896
9   libSystem.B.dylib             	0x0007a786 _pthread_start + 242
10  libSystem.B.dylib             	0x00070070 thread_start + 0

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

Still too long…

Binary Images:
    0x1000 -   0xac4fff +StarcraftDefense armv7  <ded9842fb62af7c3c0d9c2e1c5515844> /var/mobile/Applications/B9ADF296-F025-4234-BA32-E348F71BC4DF/StarcraftDefense.app/StarcraftDefense
  0xbb0000 -   0xbb1fff  dns.so armv7  <16fad82d8b9ba83f1b97894eec8b9249> /usr/lib/info/dns.so
 0x5b02000 -  0x5beafff  GLEngine armv7  <e7283f8b7f1bb67fb1f468f96a7afff0> /System/Library/Frameworks/OpenGLES.framework/GLEngine.bundle/GLEngine
 0x5bff000 -  0x5c93fff  IMGSGX535GLDriver armv7  <2ae64c2b8cb4f86a0bf1d92db330be35> /System/Library/Extensions/IMGSGX535GLDriver.bundle/IMGSGX535GLDriver
0x2fe00000 - 0x2fe24fff  dyld armv7  <f519a14308c6cacb53d2ff16a041ede3> /usr/lib/dyld
0x3003d000 - 0x3003dfff  Accelerate armv7  <cf3dd3fe3d895a5d063e0f234a777dc4> /System/Library/PrivateFrameworks/Accelerate.framework/Accelerate
0x30050000 - 0x30061fff  OpenAL armv7  <7b5e9fb287a9c17adc753560f7619d57> /System/Library/Frameworks/OpenAL.framework/OpenAL
0x30062000 - 0x300d8fff  CFNetwork armv7  <24d5180cd6a86e8b0ecb665bb06ec7b3> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x30229000 - 0x30232fff  SpringBoardServices armv7  <2e981f91a2d0c7cada7a35a3209e6988> /System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices
0x302c7000 - 0x302c9fff  MobileInstallation armv7  <178ab1202f9df0ca722446c7965f597e> /System/Library/PrivateFrameworks/MobileInstallation.framework/MobileInstallation
0x30333000 - 0x3042efff  Foundation armv7  <b8257c049bb1d6c8c574e8983997a238> /System/Library/Frameworks/Foundation.framework/Foundation
0x30435000 - 0x3095dfff  WebCore armv7  <9cd9d51fc8a7510b86ba2a9fe20c187b> /System/Library/PrivateFrameworks/WebCore.framework/WebCore
0x3098b000 - 0x3098efff  libGFXShared.dylib armv7  <c4f2c867f7204bca5592f09df29088bb> /System/Library/Frameworks/OpenGLES.framework/libGFXShared.dylib
0x3098f000 - 0x30997fff  MobileBluetooth armv7  <30033f6ec9ac9f30cfce651fd78dfc14> /System/Library/PrivateFrameworks/MobileBluetooth.framework/MobileBluetooth
0x30aae000 - 0x30ae2fff  libvDSP.dylib armv7  <fd72995019da645dff6444a6696e7f87> /System/Library/PrivateFrameworks/Accelerate.framework/Frameworks/vecLib.framework/libvDSP.dylib
0x30ae5000 - 0x30ae5fff  vecLib armv7  <3009f6144864ee4440f338601747f1a9> /System/Library/PrivateFrameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib
0x30bdc000 - 0x30bf2fff  AddressBook armv7  <41156e8e140b9a7590aed04a2b8d862e> /System/Library/Frameworks/AddressBook.framework/AddressBook
0x30bf3000 - 0x30ceafff  MusicLibrary armv7  <3e3808e00bc1cc475ac174aa475683d6> /System/Library/PrivateFrameworks/MusicLibrary.framework/MusicLibrary
0x30d04000 - 0x30d0ffff  libz.1.dylib armv7  <494318afb4dea7a16cd5fe1b3d021d09> /usr/lib/libz.1.dylib
0x30d43000 - 0x30e30fff  libiconv.2.dylib armv7  <ab354d456dbf1308b13f057f3a137697> /usr/lib/libiconv.2.dylib
0x30e31000 - 0x30e33fff  CrashReporterSupport armv7  <835c1b8dee6a8121150ccf3f1c4700d2> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/CrashReporterSupport
0x30e7d000 - 0x30eb3fff  libGLImage.dylib armv7  <c3c02e0998829660c7be1eb0778a0d08> /System/Library/Frameworks/OpenGLES.framework/libGLImage.dylib
0x30faf000 - 0x3104cfff  libobjc.A.dylib armv7  <2b58676c04c23d2ad82b8b63aaadef03> /usr/lib/libobjc.A.dylib
0x31057000 - 0x31100fff  libxml2.2.dylib armv7  <9da09fb1fd6cd26dbd4669260ad11b8c> /usr/lib/libxml2.2.dylib
0x3110b000 - 0x3110cfff  CoreSurface armv7  <81b2c3adcb64e8458625e6de6a505b64> /System/Library/PrivateFrameworks/CoreSurface.framework/CoreSurface
0x3112c000 - 0x31170fff  libsqlite3.dylib armv7  <0539e49fe2400d30b47978ce6bdd10cb> /usr/lib/libsqlite3.dylib
0x31210000 - 0x3129ffff  WebKit armv7  <3da1b21b5e8b5e2fc92e6e3115155c92> /System/Library/PrivateFrameworks/WebKit.framework/WebKit
0x312a0000 - 0x312d8fff  MobileCoreServices armv7  <8984a9bfdaf1bfc0143266c353a2f19e> /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices
0x314b1000 - 0x314b4fff  IOSurface armv7  <add52708e97215d3fd374ced558489f4> /System/Library/PrivateFrameworks/IOSurface.framework/IOSurface
0x314b6000 - 0x31561fff  CoreFoundation armv7  <15906913aca9156d43c7c7f12a966cd3> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x31648000 - 0x3166cfff  Security armv7  <8b814e12a6abdc32c551a3d293bd0a22> /System/Library/Frameworks/Security.framework/Security
0x31681000 - 0x3170cfff  Celestial armv7  <9b33495765200d971bac3a7ad60ae4fc> /System/Library/PrivateFrameworks/Celestial.framework/Celestial
0x31714000 - 0x317d0fff  JavaScriptCore armv7  <a0392fb91f1d4081862166013c798c2e> /System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore
0x318dd000 - 0x319f4fff  libicucore.A.dylib armv7  <609dd544d17c2f12e4a97a84b2cd445c> /usr/lib/libicucore.A.dylib
0x319f9000 - 0x31a2ffff  IOKit armv7  <5f9377766097ba5fbd4aa60a396fff37> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x31a65000 - 0x31a72fff  libbsm.0.dylib armv7  <86a545a79050fdf1221f8770045986b0> /usr/lib/libbsm.0.dylib
0x31a88000 - 0x31ac8fff  CoreAudio armv7  <72d79835651ba34d0a56d4c86e5aa8e4> /System/Library/Frameworks/CoreAudio.framework/CoreAudio
0x31ad9000 - 0x31ae0fff  libbz2.1.0.dylib armv7  <8f06cee327c53074b7e2513c2343e3f8> /usr/lib/libbz2.1.0.dylib
0x31ae1000 - 0x31b0ffff  CoreText armv7  <1c30eee80d98fbf86c79ee6d6cba19ca> /System/Library/Frameworks/CoreText.framework/CoreText
0x31b10000 - 0x31b25fff  libresolv.9.dylib armv7  <d446b161586cec3de986113a84e64dd4> /usr/lib/libresolv.9.dylib
0x31b3b000 - 0x31bbffff  MediaPlayer armv7  <8fe4ff45fe6cae8be16c4695938dd559> /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer
0x31c32000 - 0x31c6dfff  CoreTelephony armv7  <14a9d611a3e7e461809e191736acc3f6> /System/Library/PrivateFrameworks/CoreTelephony.framework/CoreTelephony
0x3223e000 - 0x33083fff  UIKit armv7  <d283c16ba9c583d070f32ded526a508b> /System/Library/Frameworks/UIKit.framework/UIKit
0x330a5000 - 0x330adfff  libkxld.dylib armv7  <167ecad417e416de57e8ad729ba91247> /usr/lib/system/libkxld.dylib
0x330b1000 - 0x330dbfff  CoreLocation armv7  <7f808c568697d383e676139436e53e42> /System/Library/Frameworks/CoreLocation.framework/CoreLocation
0x330f6000 - 0x330f8fff  IOMobileFramebuffer armv7  <06dcddf828a05e4488a915abe883043d> /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/IOMobileFramebuffer
0x330f9000 - 0x330fffff  IAP armv7  <a8482fa9e7d4d9acaeb6e93fe2bd4c65> /System/Library/PrivateFrameworks/IAP.framework/IAP
0x3322b000 - 0x3322efff  ArtworkCache armv7  <df15cd5fc9420610cb67b26bdee532bd> /System/Library/PrivateFrameworks/ArtworkCache.framework/ArtworkCache
0x336a8000 - 0x336bdfff  OpenGLES armv7  <846301eba9a2a9546cccd8a53b16dc4e> /System/Library/Frameworks/OpenGLES.framework/OpenGLES
0x336be000 - 0x33708fff  libstdc++.6.dylib armv7  <fb5f5150ce320ad7ff0b611686c822ff> /usr/lib/libstdc++.6.dylib
0x33746000 - 0x33765fff  Bom armv7  <31823e66f1c77b211f5164b3eecf9b77> /System/Library/PrivateFrameworks/Bom.framework/Bom
0x33769000 - 0x3378ffff  AppSupport armv7  <43c0ef0749b3a7bda5b795a27f22b7c4> /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport
0x3379d000 - 0x3380afff  ProofReader armv7  <e1625e9197f927a4d262ec5448e296d6> /System/Library/PrivateFrameworks/ProofReader.framework/ProofReader
0x3386f000 - 0x338a3fff  CoreMedia armv7  <7b68cb35079fb0f652a8d8ba1d9702b8> /System/Library/PrivateFrameworks/CoreMedia.framework/CoreMedia
0x338e5000 - 0x339cbfff  libGLProgrammability.dylib armv7  <5af36e7aff14274343fa8504cd75eb1f> /System/Library/Frameworks/OpenGLES.framework/libGLProgrammability.dylib
0x339cc000 - 0x339d5fff  CoreVideo armv7  <558fd565d1708990d666244e387a05ad> /System/Library/PrivateFrameworks/CoreVideo.framework/CoreVideo
0x339d6000 - 0x339defff  libgcc_s.1.dylib armv7  <28cabe0d3d9c2ccbb2feaf61df9edcf3> /usr/lib/libgcc_s.1.dylib
0x33a07000 - 0x33a35fff  VideoToolbox armv7  <b8239d102eadd7b7b578c67919bbca07> /System/Library/PrivateFrameworks/VideoToolbox.framework/VideoToolbox
0x33aec000 - 0x33bf4fff  libSystem.B.dylib armv7  <02df5ad00b5b4f1d04626a1d82568841> /usr/lib/libSystem.B.dylib
0x33bf9000 - 0x33c83fff  ImageIO armv7  <737134869e9ff428fad7d8a8c1cf62b1> /System/Library/PrivateFrameworks/ImageIO.framework/ImageIO

You need to use your build files to locate which function crashed via the crash report. You can then expose function name which crashed.

http://www.anoshkin.net/blog/2008/09/09/iphone-crash-logs/

for more information.

Thank you! That’s quite informative!

DavidiaMagic, here’s another article which thoroughly explains how to make the crash files readable: http://myok12.wordpress.com/2010/10/07/symbolication-or-how-to-analyze-apples-crash-logs-under-the-hood/