I trying to figure out why my App crashes sometimes on costumers devices. It doesnt matter if the device is jailbreaked or not. My App is from the AppStore. The other crashlogs are nearly the same although their crashed threads are different.
Hardware Model: iPhone3,1
Process: [the APP] [296]
Path: /var/mobile/Applications/06DF5BC5-F9C2-49EE-B2D5-5979C09B51A2/[the APP].app/[the APP]
Identifier: [the APP]
Version: 3.3.0
Code Type: ARM
Parent Process: launchd [1]
Date/Time: 2012-07-22 15:15:18 +0000
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0xbbadbeef
Crashed Thread: 7
Thread 0:
0 libsystem_kernel.dylib 0x35c39004 mach_msg_trap + 20
1 CoreFoundation 0x353673f3 __CFRunLoopServiceMachPort + 127
2 CoreFoundation 0x353660f1 __CFRunLoopRun + 825
3 CoreFoundation 0x352e94a5 CFRunLoopRunSpecific + 301
4 CoreFoundation 0x352e936d CFRunLoopRunInMode + 105
5 GraphicsServices 0x36f85439 GSEventRunModal + 137
6 UIKit 0x32df5cd5 UIApplicationMain + 1081
7 [the APP] 0x0000b549 main (main.m:20)
Thread 1:
0 libsystem_kernel.dylib 0x35c393a8 kevent + 24
1 libdispatch.dylib 0x3422cbc9 _dispatch_mgr_wakeup + 1
Thread 2:
0 libsystem_kernel.dylib 0x35c490d8 __psynch_mutexwait + 24
1 WebCore 0x311454ef _ZL17_WebTryThreadLockb + 215
2 WebCore 0x311a4173 _ZL19SendDelegateMessageP12NSInvocation + 707
3 WebKit 0x3507ad87 -[_WebSafeForwarder forwardInvocation:] + 119
4 CoreFoundation 0x35395a83 ___forwarding___ + 667
5 CoreFoundation 0x352f0650 _CF_forwarding_prep_0 + 48
6 WebKit 0x350816a1 WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction(void (WebCore::PolicyChecker::*)(WebCore::PolicyAction), WebCore::NavigationAction const&, WebCore::ResourceRequest const&, WTF::PassRefPtr) + 221
7 WebCore 0x3120b8b9 WebCore::PolicyChecker::checkNavigationPolicy(WebCore::ResourceRequest const&, WebCore::DocumentLoader*, WTF::PassRefPtr, void (*)(void*, WebCore::ResourceRequest const&, WTF::PassRefPtr, bool), void*) + 873
8 WebCore 0x3120ae4d WebCore::FrameLoader::loadWithDocumentLoader(WebCore::DocumentLoader*, WebCore::FrameLoadType, WTF::PassRefPtr) + 913
9 WebCore 0x312092b9 WebCore::FrameLoader::load(WebCore::DocumentLoader*) + 169
10 WebCore 0x312091e5 WebCore::FrameLoader::load(WebCore::ResourceRequest const&, WebCore::SubstituteData const&, bool) + 241
11 WebKit 0x350b3f5f -[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:] + 1119
12 WebKit 0x350b3797 -[WebFrame _loadHTMLString:baseURL:unreachableURL:] + 79
13 WebKit 0x350b37bb -[WebFrame loadHTMLString:baseURL:] + 31
14 WebCore 0x311950b5 HandleRunSource + 365
15 CoreFoundation 0x35367ad3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
16 CoreFoundation 0x35367335 __CFRunLoopDoSources0 + 365
17 CoreFoundation 0x35366045 __CFRunLoopRun + 653
18 CoreFoundation 0x352e94a5 CFRunLoopRunSpecific + 301
19 CoreFoundation 0x352e936d CFRunLoopRunInMode + 105
20 WebCore 0x311e8ca3 _ZL12RunWebThreadPv + 403
21 libsystem_c.dylib 0x32756735 _pthread_start + 321
Thread 3:
0 libsystem_kernel.dylib 0x35c39004 mach_msg_trap + 20
1 CoreFoundation 0x353673f3 __CFRunLoopServiceMachPort + 127
2 CoreFoundation 0x3536612b __CFRunLoopRun + 883
3 CoreFoundation 0x352e94a5 CFRunLoopRunSpecific + 301
4 CoreFoundation 0x352e936d CFRunLoopRunInMode + 105
5 Foundation 0x34e22bb9 +[NSURLConnection(Loader) _resourceLoadLoop:] + 309
6 Foundation 0x34e22a81 -[NSThread main] + 73
7 Foundation 0x34eb6591 __NSThread__main__ + 1049
8 libsystem_c.dylib 0x32756735 _pthread_start + 321
Thread 4:
0 libsystem_kernel.dylib 0x35c49570 __select + 20
1 libsystem_c.dylib 0x32756735 _pthread_start + 321
Thread 5:
0 libsystem_kernel.dylib 0x35c39004 mach_msg_trap + 20
1 CoreFoundation 0x353673f3 __CFRunLoopServiceMachPort + 127
2 CoreFoundation 0x3536612b __CFRunLoopRun + 883
3 CoreFoundation 0x352e94a5 CFRunLoopRunSpecific + 301
4 CoreFoundation 0x352e936d CFRunLoopRunInMode + 105
5 YouTube 0x33e336c9 -[YTImageLoader(Internal) _startLoader] + 245
6 Foundation 0x34e22a81 -[NSThread main] + 73
7 Foundation 0x34eb6591 __NSThread__main__ + 1049
8 libsystem_c.dylib 0x32756735 _pthread_start + 321
Thread 6:
0 libsystem_kernel.dylib 0x35c49cd4 __workq_kernreturn + 8
Thread 7 Crashed:
0 WebCore 0x311454e2 _ZL17_WebTryThreadLockb + 202
1 WebCore 0x3114540f WebThreadLock + 55
2 UIKit 0x32e5537b -[UIWebTiledView layoutSubviews] + 43
3 UIKit 0x32e5534b -[UIWebDocumentView layoutSubviews] + 127
4 UIKit 0x32dcaf37 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 183
5 CoreFoundation 0x352f21fb -[NSObject performSelector:withObject:] + 43
6 QuartzCore 0x321c2aa5 -[CALayer layoutSublayers] + 217
7 QuartzCore 0x321c26bd CA::Layer::layout_if_needed(CA::Transaction*) + 217
8 QuartzCore 0x321c6843 CA::Context::commit_transaction(CA::Transaction*) + 227
9 QuartzCore 0x321c657f CA::Transaction::commit() + 315
10 QuartzCore 0x3220dd01 CA::Transaction::release_thread(void*) + 37
11 libsystem_c.dylib 0x327490ff _pthread_tsd_cleanup + 171
12 libsystem_c.dylib 0x32748d7b _pthread_exit + 123
13 libsystem_c.dylib 0x3275a0f3 pthread_exit + 31
14 Foundation 0x34e3237b +[NSThread exit] + 11
15 Foundation 0x34eb65af __NSThread__main__ + 1079
16 libsystem_c.dylib 0x32756735 _pthread_start + 321
Thread 8:
0 libsystem_kernel.dylib 0x35c49cd4 __workq_kernreturn + 8
Thread 9:
0 libsystem_kernel.dylib 0x35c49cd4 __workq_kernreturn + 8
Thread 10:
0 libsystem_kernel.dylib 0x35c49cd4 __workq_kernreturn + 8
Thread 11:
0 libsystem_kernel.dylib 0x35c49cd4 __workq_kernreturn + 8
Thread 7 crashed with ARM Thread State:
r0: 0xffffffff r1: 0x00001100 r2: 0x2ffc850c r3: 0x00000000
r4: 0xbbadbeef r5: 0x00000000 r6: 0x0054b000 r7: 0x2ffc8b4c
r8: 0x0ca32800 r9: 0x3399fc2c r10: 0x2ffc8be4 r11: 0x2ffc8ebc
ip: 0x3ee8e270 sp: 0x2ffc8b40 lr: 0x35790fef pc: 0x32c7f4e2
cpsr: 0x60000030
Binary Images:
[cut cause of char limit]
I have no idea what happend, anyone an idea?
The problem is that you send messages to UI objects from a background thread, which is forbidden.
Thread 7 crashed with a stack trace into UIView's layout mechanism. The fact that thread 7 is in this code probably results from a setNeedsLayout or some other method being sent from this background thread.
I think web view finished loading and trying to reload view but view controller was poped and released,you need to add this in viewWillDisappear method:
- (void)viewWillDisappear:(BOOL)animated{
[super viewWillDisappear:animated];
if ([webView isLoading]) {
[webView stopLoading];
}
}
The project that I am on sees a similar exception for a WinTel based GWT App running on the WebKit. It has been determined that this particular problem only occurs when the WebKit runs out of memory.
Related
I've a question within my App and I don't know how to fix this, because it's the first time of developing IOS Apps for me. The App works fine on Simulator and my Iphone 3gs. But on my Ipod touch it won't work.
So my crash log shows me something like this:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x312f488f __exceptionPreprocess + 163
1 libobjc.A.dylib 0x37632259 objc_exception_throw + 33
2 CoreFoundation 0x312f7a9b -[NSObject doesNotRecognizeSelector:] + 175
3 CoreFoundation 0x312f6915 ___forwarding___ + 301
4 CoreFoundation 0x31251650 _CF_forwarding_prep_0 + 48
5 CoreFoundation 0x3124e3fd -[NSObject performSelector:withObject:withObject:] + 53
6 UIKit 0x3099ae07 -[UIApplication sendAction:to:from:forEvent:] + 63
7 UIKit 0x3099adc3 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 31
8 UIKit 0x3099ada1 -[UIControl sendAction:to:forEvent:] + 45
9 UIKit 0x3099ab11 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 493
10 UIKit 0x3099b449 -[UIControl touchesEnded:withEvent:] + 477
11 UIKit 0x3099992b -[UIWindow _sendTouchesForEvent:] + 319
12 UIKit 0x30999319 -[UIWindow sendEvent:] + 381
13 UIKit 0x3097f695 -[UIApplication sendEvent:] + 357
14 UIKit 0x3097ef3b _UIApplicationHandleEvent + 5827
15 GraphicsServices 0x332c522b PurpleEventCallback + 883
16 CoreFoundation 0x312c8523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 39
17 CoreFoundation 0x312c84c5 __CFRunLoopDoSource1 + 141
18 CoreFoundation 0x312c7313 __CFRunLoopRun + 1371
19 CoreFoundation 0x3124a4a5 CFRunLoopRunSpecific + 301
20 CoreFoundation 0x3124a36d CFRunLoopRunInMode + 105
21 GraphicsServices 0x332c4439 GSEventRunModal + 137
22 UIKit 0x309adcd5 UIApplicationMain + 1081
23 My App 0x00097045 0x95000 + 8261
24 My App 0x00096078 0x95000 + 4216
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x37f0e32c __pthread_kill + 8
1 libsystem_c.dylib 0x353d9208 pthread_kill + 48
2 libsystem_c.dylib 0x353d2298 abort + 88
3 libc++abi.dylib 0x373a1f64 abort_message + 40
4 libc++abi.dylib 0x3739f346 default_terminate() + 18
5 libobjc.A.dylib 0x37632350 _objc_terminate + 140
6 libc++abi.dylib 0x3739f3be safe_handler_caller(void (*)()) + 70
7 libc++abi.dylib 0x3739f44a std::terminate() + 14
8 libc++abi.dylib 0x373a081e __cxa_rethrow + 82
9 libobjc.A.dylib 0x376322a2 objc_exception_rethrow + 6
10 CoreFoundation 0x3124a506 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x3124a366 CFRunLoopRunInMode + 98
12 GraphicsServices 0x332c4432 GSEventRunModal + 130
13 UIKit 0x309adcce UIApplicationMain + 1074
14 My App 0x0009703e 0x95000 + 8254
15 My App 0x00096070 0x95000 + 4208
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x37efe3a8 kevent + 24
1 libdispatch.dylib 0x35b18ea4 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x35b18bc2 _dispatch_mgr_thread + 30
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x37efe004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x37efe1fa mach_msg + 50
2 CoreFoundation 0x312c83ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x312c7124 __CFRunLoopRun + 876
4 CoreFoundation 0x3124a49e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3124a366 CFRunLoopRunInMode + 98
6 WebCore 0x363eec9c RunWebThread(void*) + 396
7 libsystem_c.dylib 0x3539a72e _pthread_start + 314
8 libsystem_c.dylib 0x3539a5e8 thread_start + 0
Thread 3:
0 libsystem_kernel.dylib 0x37f0ecd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x35394f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x35394cc8 start_wqthread + 0
Thread 4:
0 libsystem_kernel.dylib 0x37f0ecd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x35394f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x35394cc8 start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x37f0ecd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x35394f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x35394cc8 start_wqthread + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000006 r5: 0x3f22bd98 r6: 0x00000002 r7: 0x2fe93a08
r8: 0x0012eac0 r9: 0x373a2a4a r10: 0x00000000 r11: 0x0e031d60
ip: 0x00000148 sp: 0x2fe939fc lr: 0x353d920f pc: 0x37f0e32c
cpsr: 0x000f0010
And another thing is that some views are loading slowly and it mostly crashes on my Ipod touch 4g (on 3gs it works fine, 4 I don't know, 4s I don't know, 5 I don't know).
Sometimes it shows me on my crash logs the name of my app like this ^, and sometimes it shows me Process:Unknown Type:Unknown. Any suggestions what to do?
And in the Unknown one there's not a crash log it doesnt look like.
Your errors seems to have to deal with device compatibility and some people are facing the same errors like you. Take a look at this https://discussions.apple.com/thread/4317775?start=0&tstart=0
I have developed and iPhone app and it seems to work fine on the simulator 5.0. However, when I tried to test it on the real device, an iphone w/ ios 5, it's not working.
The app launched but all I see was a black screen.
Here's the crash log I found in the Device Log
Sorry I am pretty new to this.. I am not sure if these are symbolicated. (seems like they are?)
Incident Identifier: B2601015-4CBF-478D-B9C3-2D2B4BEED892
CrashReporter Key: 9c71d7c2ed64b2862a0a6d90e3d4ce839868a03c
Hardware Model: iPhone4,1
Process: memoryChallenger [21037]
Path: /var/mobile/Applications/C0981716-8CDF-4816-8E94- 261CD8F164FD/memoryChallenger.app/memoryChallenger
Identifier: memoryChallenger
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-01-30 21:54:18.753 -0800
OS Version: iPhone OS 5.0.1 (9A405)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x37ecb8bf __exceptionPreprocess + 163
1 libobjc.A.dylib 0x319b11e5 objc_exception_throw + 33
2 CoreFoundation 0x37ecb7b9 +[NSException raise:format:] + 1
3 CoreFoundation 0x37ecb7db +[NSException raise:format:] + 35
4 UIKit 0x354f7747 -[UINib instantiateWithOwner:options:] + 1567
5 UIKit 0x354f8bb9 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 137
6 UIKit 0x35431a45 -[UIApplication _loadMainNibFileNamed:bundle:] + 37
7 UIKit 0x352bb227 -[UIApplication _loadMainInterfaceFile] + 223
8 UIKit 0x352b5313 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 227
9 UIKit 0x35283921 -[UIApplication handleEvent:withNewEvent:] + 1017
10 UIKit 0x352833bf -[UIApplication sendEvent:] + 55
11 UIKit 0x35282d2d _UIApplicationHandleEvent + 5809
12 GraphicsServices 0x379a0df3 PurpleEventCallback + 883
13 CoreFoundation 0x37e9f553 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 39
14 CoreFoundation 0x37e9f4f5 __CFRunLoopDoSource1 + 141
15 CoreFoundation 0x37e9e343 __CFRunLoopRun + 1371
16 CoreFoundation 0x37e214dd CFRunLoopRunSpecific + 301
17 CoreFoundation 0x37e213a5 CFRunLoopRunInMode + 105
18 UIKit 0x352b4457 -[UIApplication _run] + 551
19 UIKit 0x352b1743 UIApplicationMain + 1091
20 memoryChallenger 0x000050d9 main (main.m:14)
21 memoryChallenger 0x000027ec start + 40
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3376532c __pthread_kill + 8
1 libsystem_c.dylib 0x36331f54 pthread_kill + 48
2 libsystem_c.dylib 0x3632afe4 abort + 88
3 libc++abi.dylib 0x37e10f64 abort_message + 40
4 libc++abi.dylib 0x37e0e346 _ZL17default_terminatev + 18
5 libobjc.A.dylib 0x319b12dc _objc_terminate + 140
6 libc++abi.dylib 0x37e0e3be _ZL19safe_handler_callerPFvvE + 70
7 libc++abi.dylib 0x37e0e44a std::terminate() + 14
8 libc++abi.dylib 0x37e0f81e __cxa_rethrow + 82
9 libobjc.A.dylib 0x319b122e objc_exception_rethrow + 6
10 CoreFoundation 0x37e2153e CFRunLoopRunSpecific + 398
11 CoreFoundation 0x37e2139e CFRunLoopRunInMode + 98
12 UIKit 0x352b4450 -[UIApplication _run] + 544
13 UIKit 0x352b173c UIApplicationMain + 1084
14 memoryChallenger 0x000050d2 main (main.m:14)
15 memoryChallenger 0x000027e4 start + 32
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x337553b4 kevent + 24
1 libdispatch.dylib 0x37b89f74 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x37b89c92 _dispatch_mgr_thread + 30
Thread 2:
0 libsystem_kernel.dylib 0x33765cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x362ee30a _pthread_wqthread + 610
2 libsystem_c.dylib 0x362ee09c start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x33765cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x362ee30a _pthread_wqthread + 610
2 libsystem_c.dylib 0x362ee09c start_wqthread + 0
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x33755010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x33755206 mach_msg + 50
2 CoreFoundation 0x37e9f41c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x37e9e154 __CFRunLoopRun + 876
4 CoreFoundation 0x37e214d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x37e2139e CFRunLoopRunInMode + 98
6 WebCore 0x326f2128 _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x362f3c16 _pthread_start + 314
8 libsystem_c.dylib 0x362f3ad0 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000006 r5: 0x3f31dce8 r6: 0x00000002 r7: 0x2fdff864
r8: 0x3f14edec r9: 0x00000000 r10: 0x00188cc0 r11: 0x00185b40
ip: 0x00000148 sp: 0x2fdff858 lr: 0x36331f5b pc: 0x3376532c
cpsr: 0x00000010
it seems like this line here is what I am looking for..
20 memoryChallenger 0x000050d9 main (main.m:14)
and it's this line in main:
int retVal = UIApplicationMain(argc, argv, nil, nil);
But it's not getting me anywhere..
Can someone please guide me to the right direction?
Thanks!
From this line,
-[UINib instantiateWithOwner:options:] + 1567
it looks like your application's XIB file wasn't copied over properly to device.
Do a clean install.
For my case, it is due to the XIB file not found for iOS 5 (even though it's copied into the app bundle).
It is due to using Base Internationalization, which is only supported in iOS 6.
Strangely, running on Simulator with iOS 5 will work. That got to be a bug.
I have detailed my experience after releasing my app with this dumb startup crash: http://samwize.com/2012/11/22/warning-do-not-use-base-internationalization-in-ios-5/
In IB, xib's Target Membership -> current target is not checked
Just another scenario when this occurs.
I am having a big problem figuring out where my app crash is being caused, and I'm not sure how to interpret the crash report.
The crash clearly occurs in Thread 0, but at what step might it actually be crashing in? I certainly am not manipulating CALayers in my code at all. In anyone experience, does this happen for any particular reason?
Incident Identifier: 23D06670-4C44-49F4-A0CB-01CF95D558D2
CrashReporter Key: 1d7775167d5336b2369c148ce37405638a6abe74
Hardware Model: iPhone3,1
Process: CrazyTimes [3169]
Path: /var/mobile/Applications/41DF0A05-710D-48BB-A468-73B7B224F5A3/CrazyTimes.app/CrazyTimes
Identifier: CrazyTimes
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-02-09 18:22:36.422 -0500
OS Version: iPhone OS 5.0 (9A334)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00600ad0
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x383a7fca objc_msgSend + 30
1 CrazyTimes 0x00114460 0x1000 + 1127520
2 CrazyTimes 0x000c2f10 0x1000 + 794384
3 UIKit 0x331b0f72 -[UIView(CALayerDelegate) drawLayer:inContext:] + 270
4 QuartzCore 0x328c0e16 -[CALayer drawInContext:] + 110
5 QuartzCore 0x328c0418 CABackingStoreUpdate_ + 1776
6 QuartzCore 0x328bfc16 CA::Layer::display_() + 966
7 QuartzCore 0x328bf832 CA::Layer::display() + 122
8 QuartzCore 0x328bf774 CA::Layer::display_if_needed(CA::Transaction*) + 168
9 QuartzCore 0x328bf11c CA::Context::commit_transaction(CA::Transaction*) + 228
10 QuartzCore 0x328bee50 CA::Transaction::commit() + 308
11 QuartzCore 0x328b6d7e CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 50
12 CoreFoundation 0x311dcb44 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 12
13 CoreFoundation 0x311dad80 __CFRunLoopDoObservers + 252
14 CoreFoundation 0x311db0da __CFRunLoopRun + 754
15 CoreFoundation 0x3115e4d6 CFRunLoopRunSpecific + 294
16 CoreFoundation 0x3115e39e CFRunLoopRunInMode + 98
17 GraphicsServices 0x33d8cfe6 GSEventRunModal + 150
18 UIKit 0x331d073c UIApplicationMain + 1084
19 CrazyTimes 0x00004084 0x1000 + 12420
20 CrazyTimes 0x00003af8 0x1000 + 11000
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x324dd3b4 kevent + 24
1 libdispatch.dylib 0x32c31e78 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x32c31b96 _dispatch_mgr_thread + 30
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x324dd010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x324dd206 mach_msg + 50
2 CoreFoundation 0x311dc41c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x311db154 __CFRunLoopRun + 876
4 CoreFoundation 0x3115e4d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3115e39e CFRunLoopRunInMode + 98
6 WebCore 0x379f2128 _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x369a5c16 _pthread_start + 314
8 libsystem_c.dylib 0x369a5ad0 thread_start + 0
Thread 3:
0 libsystem_kernel.dylib 0x324edcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x369a030a _pthread_wqthread + 610
2 libsystem_c.dylib 0x369a009c start_wqthread + 0
Thread 4 name: com.apple.NSURLConnectionLoader
Thread 4:
0 libsystem_kernel.dylib 0x324dd010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x324dd206 mach_msg + 50
2 CoreFoundation 0x311dc41c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x311db154 __CFRunLoopRun + 876
4 CoreFoundation 0x3115e4d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3115e39e CFRunLoopRunInMode + 98
6 Foundation 0x3821abc2 +[NSURLConnection(Loader) _resourceLoadLoop:] + 302
7 Foundation 0x3821aa8a -[NSThread main] + 66
8 Foundation 0x382ae59a __NSThread__main__ + 1042
9 libsystem_c.dylib 0x369a5c16 _pthread_start + 314
10 libsystem_c.dylib 0x369a5ad0 thread_start + 0
Thread 5 name: com.apple.CFSocket.private
Thread 5:
0 libsystem_kernel.dylib 0x324ed570 __select + 20
1 CoreFoundation 0x311e066a __CFSocketManager + 726
2 libsystem_c.dylib 0x369a5c16 _pthread_start + 314
3 libsystem_c.dylib 0x369a5ad0 thread_start + 0
Thread 6:
0 libsystem_kernel.dylib 0x324edcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x369a030a _pthread_wqthread + 610
2 libsystem_c.dylib 0x369a009c start_wqthread + 0
Thread 7 name: WebCore: CFNetwork Loader
Thread 7:
0 libsystem_kernel.dylib 0x324dd010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x324dd206 mach_msg + 50
2 CoreFoundation 0x311dc41c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x311db154 __CFRunLoopRun + 876
4 CoreFoundation 0x3115e4d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3115e39e CFRunLoopRunInMode + 98
6 WebCore 0x37a1b69e _ZN7WebCoreL15runLoaderThreadEPv + 122
7 libsystem_c.dylib 0x369a5c16 _pthread_start + 314
8 libsystem_c.dylib 0x369a5ad0 thread_start + 0
Thread 8 name: WebCore: LocalStorage
Thread 8:
0 libsystem_kernel.dylib 0x324ed068 __psynch_cvwait + 24
1 libsystem_c.dylib 0x369a5f2e _pthread_cond_wait + 634
2 libsystem_c.dylib 0x369a5caa pthread_cond_wait + 34
3 JavaScriptCore 0x3768940e WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 54
4 WebCore 0x37b51494 WTF::PassOwnPtr<WebCore::LocalStorageTask> WTF::MessageQueue<WebCore::LocalStorageTask>::waitForMessageFilteredWithTimeout<bool ()(WebCore::LocalStorageTask*)>(WTF::MessageQueueWaitResult&, bool (&)(WebCore::LocalStorageTask*), double) + 52
5 WebCore 0x37b5144a WebCore::LocalStorageThread::threadEntryPointCallback(void*) + 106
6 libsystem_c.dylib 0x369a5c16 _pthread_start + 314
7 libsystem_c.dylib 0x369a5ad0 thread_start + 0
Thread 9:
0 libsystem_kernel.dylib 0x324dd010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x324dd206 mach_msg + 50
2 CoreFoundation 0x311dc41c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x311db154 __CFRunLoopRun + 876
4 CoreFoundation 0x3115e4d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x311db474 CFRunLoopRun + 92
6 CrazyTimes 0x00039ee4 0x1000 + 233188
7 Foundation 0x3821aa8a -[NSThread main] + 66
8 Foundation 0x382ae59a __NSThread__main__ + 1042
9 libsystem_c.dylib 0x369a5c16 _pthread_start + 314
10 libsystem_c.dylib 0x369a5ad0 thread_start + 0
Thread 10 name: com.apple.coremedia.player.async
Thread 10:
0 libsystem_kernel.dylib 0x324ed068 __psynch_cvwait + 24
1 libsystem_c.dylib 0x369a5f2e _pthread_cond_wait + 634
2 libsystem_c.dylib 0x369a5caa pthread_cond_wait + 34
3 CoreMedia 0x3255d000 FigSemaphoreWaitRelative + 212
4 MediaToolbox 0x3261afca fpa_AsyncMovieControlThread + 18
5 CoreMedia 0x3257cbc6 figThreadMain + 146
6 libsystem_c.dylib 0x369a5c16 _pthread_start + 314
7 libsystem_c.dylib 0x369a5ad0 thread_start + 0
Thread 11:
0 libsystem_kernel.dylib 0x324edcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x369a030a _pthread_wqthread + 610
2 libsystem_c.dylib 0x369a009c start_wqthread + 0
Thread 0 crashed with ARM Thread State:
r0: 0x09b99000 r1: 0x345621e3 r2: 0x0019e7dc r3: 0x0019e910
r4: 0x0019e800 r5: 0x09b99000 r6: 0x00199f3c r7: 0x2fdfdb00
r8: 0x00196f94 r9: 0x00118870 r10: 0x00196bdc r11: 0x0019789c
ip: 0x0019e8f4 sp: 0x2fdfdae0 lr: 0x00114467 pc: 0x383a7fca
cpsr: 0x20080030
UIViews are implemented with CALayers, so if you are using UIKit, you are using layers. My guess is that an already released object is receiving messages. Maybe you released an object more times than you should. Try recompiling with NSZombieEnabled.
3 UIKit 0x331b0f72 -[UIView(CALayerDelegate) drawLayer:inContext:] + 270
By any chance, did you release an objectA which is a delegate to objectB without removing the delegate assignment first, i.e. objectB.delegate = nil; [objectA release];?
My app uses background location for GPS updates. I've registered it for background location updates, and while it's running in background, it always crashes like this.
Since I haven't written most of this code, I really have no idea what happened.
I have checked the memory allocations and there doesn't seem to be much of a problem there. Here's a crash report:
Incident Identifier: 39F6F622-1274-4B6C-BA19-32D10E04E309
CrashReporter Key: 4757f4c5e5f009daf18eb0c512f729356c3e5de4
Hardware Model: iPhone3,1
Process: Get Off Now! [3040]
Path: /var/mobile/Applications/43D41F77-B225-4F47-AFB0-D2F2E00E18DF/Get Off Now!.app/Get Off Now!
Identifier: Get Off Now!
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2010-12-22 13:31:29.293 +0800
OS Version: iPhone OS 4.1 (8B117)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000d
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x000027d8 objc_msgSend + 16
1 CoreFoundation 0x000042ae CFRetain + 62
2 CoreFoundation 0x0005ab58 CFMessagePortInvalidate + 304
3 CoreFoundation 0x0005b05e CFMessagePortIsValid + 42
4 CoreLocation 0x000030f8 CLClientIsValid + 12
5 CoreLocation 0x00004b10 CLClientSendAndCache(__CLClient*, CLDaemonCommType, void*, int, unsigned char, unsigned char) + 40
6 CoreLocation 0x000051cc CLClientHandleWatchdogTimerExpiry(__CFRunLoopTimer*, void*) + 24
7 CoreFoundation 0x000567f4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 8
8 CoreFoundation 0x000562a6 __CFRunLoopDoTimer + 854
9 CoreFoundation 0x0002779e __CFRunLoopRun + 1082
10 CoreFoundation 0x00027270 CFRunLoopRunSpecific + 224
11 CoreFoundation 0x00027178 CFRunLoopRunInMode + 52
12 GraphicsServices 0x000045ec GSEventRunModal + 108
13 GraphicsServices 0x00004698 GSEventRun + 56
14 UIKit 0x0000411c -[UIApplication _run] + 396
15 UIKit 0x00002128 UIApplicationMain + 664
16 Get Off Now! 0x00002406 0x1000 + 5126
17 Get Off Now! 0x000023d0 0x1000 + 5072
Thread 1:
0 libSystem.B.dylib 0x0002d330 kevent + 24
1 libSystem.B.dylib 0x000d6b6c _dispatch_mgr_invoke + 88
2 libSystem.B.dylib 0x000d65bc _dispatch_queue_invoke + 96
3 libSystem.B.dylib 0x000d675c _dispatch_worker_thread2 + 120
4 libSystem.B.dylib 0x0007a67a _pthread_wqthread + 258
5 libSystem.B.dylib 0x00073190 start_wqthread + 0
Thread 2:
0 libSystem.B.dylib 0x00000cf4 semaphore_wait_signal_trap + 8
1 libSystem.B.dylib 0x0002e4ee semaphore_wait_signal + 2
2 libSystem.B.dylib 0x00002ae4 pthread_mutex_lock + 248
3 WebCore 0x00002620 _WebTryThreadLock(bool) + 140
4 WebCore 0x00002566 WebRunLoopLock(__CFRunLoopObserver*, unsigned long, void*) + 18
5 CoreFoundation 0x00030236 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 10
6 CoreFoundation 0x000300aa __CFRunLoopDoObservers + 406
7 CoreFoundation 0x000276c0 __CFRunLoopRun + 860
8 CoreFoundation 0x00027270 CFRunLoopRunSpecific + 224
9 CoreFoundation 0x00027178 CFRunLoopRunInMode + 52
10 WebCore 0x000024e2 RunWebThread(void*) + 362
11 libSystem.B.dylib 0x0007a27e _pthread_start + 242
12 libSystem.B.dylib 0x0006f2a8 thread_start + 0
Thread 3:
0 libSystem.B.dylib 0x0007b19c __workq_kernreturn + 8
1 libSystem.B.dylib 0x0007a790 _pthread_wqthread + 536
2 libSystem.B.dylib 0x00073190 start_wqthread + 0
Thread 4:
0 libSystem.B.dylib 0x0007b19c __workq_kernreturn + 8
1 libSystem.B.dylib 0x0007a790 _pthread_wqthread + 536
2 libSystem.B.dylib 0x00073190 start_wqthread + 0
Thread 0 crashed with ARM Thread State:
r0: 0x001a01c0 r1: 0x33024270 r2: 0x00000005 r3: 0x3002d7c9
r4: 0x00000005 r5: 0x3e1af5e4 r6: 0x00000017 r7: 0x2fffeac0
r8: 0x00000004 r9: 0x001fc098 r10: 0x00855864 r11: 0x2fffeb48
ip: 0x3e19c3f0 sp: 0x2fffeaa8 lr: 0x307fc2b5 pc: 0x3002d7d8
cpsr: 0x20000030
This is another way it crashes; it looks the same, except it uses 100% CPU for a long time:
Incident Identifier: 61B42F36-021F-48D2-B180-112527BAE5CF
CrashReporter Key: 4757f4c5e5f009daf18eb0c512f729356c3e5de4
Hardware Model: iPhone3,1
Process: Get Off Now! [3751]
Path: /var/mobile/Applications/43D41F77-B225-4F47-AFB0-D2F2E00E18DF/Get Off Now!.app/Get Off Now!
Identifier: Get Off Now!
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2010-12-23 13:06:50.363 +0800
OS Version: iPhone OS 4.1 (8B117)
Report Version: 104
Exception Type: 00000020
Exception Codes: 0x8badf00d
Highlighted Thread: 0
Application Specific Information:
Get Off Now![3751] has active assertions beyond permitted time:
{(
<SBProcessAssertion: 0xca2a8a0> identifier: CoreLocationRegistration process: Get Off Now![3751] permittedBackgroundDuration: 600.000000 reason: finishTask owner pid:3751 preventSuspend preventIdleSleep
)}
Elapsed total CPU time (seconds): 600.010 (user 19.350, system 580.660), 100% CPU
Elapsed application CPU time (seconds): 575.320, 96% CPU
Thread 0:
0 libSystem.B.dylib 0x00004f0c OSSpinLockLock + 44
1 CoreFoundation 0x0005aa42 CFMessagePortInvalidate + 26
2 CoreFoundation 0x0005b05e CFMessagePortIsValid + 42
3 CoreLocation 0x000030f8 CLClientIsValid + 12
4 CoreLocation 0x00004b10 CLClientSendAndCache(__CLClient*, CLDaemonCommType, void*, int, unsigned char, unsigned char) + 40
5 CoreLocation 0x000051cc CLClientHandleWatchdogTimerExpiry(__CFRunLoopTimer*, void*) + 24
6 CoreFoundation 0x000567f4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 8
7 CoreFoundation 0x000562a6 __CFRunLoopDoTimer + 854
8 CoreFoundation 0x0002779e __CFRunLoopRun + 1082
9 CoreFoundation 0x00027270 CFRunLoopRunSpecific + 224
10 CoreFoundation 0x00027178 CFRunLoopRunInMode + 52
11 GraphicsServices 0x000045ec GSEventRunModal + 108
12 GraphicsServices 0x00004698 GSEventRun + 56
13 UIKit 0x0000411c -[UIApplication _run] + 396
14 UIKit 0x00002128 UIApplicationMain + 664
15 Get Off Now! 0x000022de main (main.m:13)
16 Get Off Now! 0x000022a8 start + 32
Thread 1:
0 libSystem.B.dylib 0x0002d330 kevent + 24
1 libSystem.B.dylib 0x000d6b6c _dispatch_mgr_invoke + 88
2 libSystem.B.dylib 0x000d65bc _dispatch_queue_invoke + 96
3 libSystem.B.dylib 0x000d675c _dispatch_worker_thread2 + 120
4 libSystem.B.dylib 0x0007a67a _pthread_wqthread + 258
5 libSystem.B.dylib 0x00073190 start_wqthread + 0
Thread 2:
0 libSystem.B.dylib 0x00000c98 mach_msg_trap + 20
1 libSystem.B.dylib 0x00002d64 mach_msg + 44
2 CoreFoundation 0x00027c38 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x000274c2 __CFRunLoopRun + 350
4 CoreFoundation 0x00027270 CFRunLoopRunSpecific + 224
5 CoreFoundation 0x00027178 CFRunLoopRunInMode + 52
6 WebCore 0x000024e2 RunWebThread(void*) + 362
7 libSystem.B.dylib 0x0007a27e _pthread_start + 242
8 libSystem.B.dylib 0x0006f2a8 thread_start + 0
Unknown thread crashed with unknown flavor: 5, state_count: 1
I think you need to check some objects which are released by other threads, but they are accessed by main thread. I encountered something like this, and it was because I accessed some objects which had been released.
I had precisely the same crash logs being generated. I have a main thread, which uses an NSOperationQueue to spawn a data download thread, which then uses performSelectorOnMainThread when finished.
In my didupdatelocation method, I was cycling through an array, launching a local notification in some cases. It seemed to fail on the SECOND instance of a local notification (for the same array item), but I cannot be sure. I did try symbolicating the logs, but there is some missing file error with 4.2.1, so I'd copied in symbols from 4.2, and couldn't get atos to work (but that was probably my fault).
Last night I made the following changes, and all seems to be resolved:
1) changed all self.locationManager notation to just locationManager
2) removed everything from the dealloc method in the appdelegate (aside from super)
I am getting a crash with an iPad app that is (at least to me) non-specific. It's an Exception Type: EXC_BREAKPOINT. I am thinking a double memory release or attempting to access a released variable but I hoping someone can shed more light as I hunt through the code. The full crash log is:
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x00000102, 0x31ccebd0
Crashed Thread: 0
Thread 0 Crashed:
0 CoreFoundation 0x0000ab96 CFRelease + 90
1 CoreFoundation 0x0005209e __CFRunLoopTimerDeallocate + 18
2 CoreFoundation 0x0000ac68 _CFRelease + 160
3 CoreFoundation 0x0000ab8e CFRelease + 82
4 CoreFoundation 0x00019130 __CFTypeCollectionRelease + 8
5 CoreFoundation 0x00019962 __CFArrayReleaseValues + 302
6 CoreFoundation 0x0001982c __CFArrayDeallocate + 8
7 CoreFoundation 0x0000ac68 _CFRelease + 160
8 CoreFoundation 0x0000ab8e CFRelease + 82
9 CoreFoundation 0x000279c4 __CFRunLoopRun + 1092
10 CoreFoundation 0x0002748c CFRunLoopRunSpecific + 224
11 CoreFoundation 0x00027394 CFRunLoopRunInMode + 52
12 GraphicsServices 0x000044a4 GSEventRunModal + 108
13 GraphicsServices 0x00004550 GSEventRun + 56
14 UIKit 0x000374ce -[UIApplication _run] + 406
15 UIKit 0x00035148 UIApplicationMain + 664
16 MultipleDetailViews 0x00002ccc main (main.m:55)
17 MultipleDetailViews 0x00002c80 start + 32
Thread 1:
0 libSystem.B.dylib 0x0002d974 kevent + 24
1 libSystem.B.dylib 0x000d7704 _dispatch_mgr_invoke + 88
2 libSystem.B.dylib 0x000d7174 _dispatch_queue_invoke + 96
3 libSystem.B.dylib 0x000d6b98 _dispatch_worker_thread2 + 120
4 libSystem.B.dylib 0x0007b24a _pthread_wqthread + 258
5 libSystem.B.dylib 0x00073970 start_wqthread + 0
Thread 2:
0 libSystem.B.dylib 0x00001268 mach_msg_trap + 20
1 libSystem.B.dylib 0x00003354 mach_msg + 44
2 CoreFoundation 0x00027e54 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x000276de __CFRunLoopRun + 350
4 CoreFoundation 0x0002748c CFRunLoopRunSpecific + 224
5 CoreFoundation 0x00027394 CFRunLoopRunInMode + 52
6 WebCore 0x000060c8 RunWebThread(void*) + 332
7 libSystem.B.dylib 0x0007a886 _pthread_start + 242
8 libSystem.B.dylib 0x0006fa88 thread_start + 0
Thread 3:
0 libSystem.B.dylib 0x00001268 mach_msg_trap + 20
1 libSystem.B.dylib 0x00003354 mach_msg + 44
2 CoreFoundation 0x00027e54 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x000276de __CFRunLoopRun + 350
4 CoreFoundation 0x0002748c CFRunLoopRunSpecific + 224
5 CoreFoundation 0x00027394 CFRunLoopRunInMode + 52
6 Foundation 0x0002d5f6 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 206
7 Foundation 0x0000b192 -[NSThread main] + 38
8 Foundation 0x00004242 __NSThread__main__ + 966
9 libSystem.B.dylib 0x0007a886 _pthread_start + 242
10 libSystem.B.dylib 0x0006fa88 thread_start + 0
Thread 4:
0 libSystem.B.dylib 0x0002568c select$DARWIN_EXTSN + 20
1 CoreFoundation 0x0005ee72 __CFSocketManager + 582
2 libSystem.B.dylib 0x0007a886 _pthread_start + 242
3 libSystem.B.dylib 0x0006fa88 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x2fdff994 r2: 0x3e56e898 r3: 0x00000118
r4: 0x00000000 r5: 0x001eb094 r6: 0x0000002c r7: 0x2fdfec04
r8: 0x001eb090 r9: 0x001fc098 r10: 0x00000000 r11: 0x00000000
ip: 0x3e58f038 sp: 0x2fdfebfc lr: 0x31d160a5 pc: 0x31cceb96
cpsr: 0x600f0030
I've gotten this error too and fixed it. This person is running OS3 most likely and you are using a code block from OS4 you need to set a weak link on the library so that it can properly load. in your build settings for LLVM -weak_library /usr/lib/libSystem.B.dylib