I was working with Xcode last night, in morning I relaunch the XCode and it crash, an error appears.
I tried to delete the Preferences, cache, reinstall all... nothing.
But if I run Xcode from terminal with root privilege, it runs but Simulator doesn't work properly...
Error dump:
Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes:
0x000000000000000a, 0x000000010e8ac000 Exception Note:
EXC_CORPSE_NOTIFY
VM Regions Near 0x10e8ac000:
__LINKEDIT 000000010e83e000-000000010e83f000 [ 4K] rw-/rwx SM=NUL
/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
--> mapped file 000000010e83f000-000000010e9e3000 [ 1680K] r--/rwx SM=COW
MALLOC_LARGE 000000010e9e3000-000000010ebe9000 [ 2072K] rw-/rwx SM=PRV
Application Specific Information: ProductBuildVersion: 7B1005
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0
com.apple.CoreFoundation 0x00007fff99b9852b
CFStringCreateImmutableFunnel3 + 795 1 com.apple.CoreFoundation 0x00007fff99ba844b CFStringCreateWithBytes + 59 2
com.apple.CoreFoundation 0x00007fff99bd4ff9
__CFBinaryPlistCreateObjectFiltered + 7273 3 com.apple.CoreFoundation 0x00007fff99bd4c82
__CFBinaryPlistCreateObjectFiltered + 6386 4 com.apple.CoreFoundation 0x00007fff99bd4c82
__CFBinaryPlistCreateObjectFiltered + 6386 5 com.apple.CoreFoundation 0x00007fff99bd4c82
__CFBinaryPlistCreateObjectFiltered + 6386 6 com.apple.CoreFoundation 0x00007fff99bd4c82
__CFBinaryPlistCreateObjectFiltered + 6386 7 com.apple.CoreFoundation 0x00007fff99bd4347
__CFBinaryPlistCreateObjectFiltered + 4023 8 com.apple.CoreFoundation 0x00007fff99bd4c82
__CFBinaryPlistCreateObjectFiltered + 6386 9 com.apple.CoreFoundation 0x00007fff99bb8427
__CFTryParseBinaryPlist + 215 10 com.apple.CoreFoundation 0x00007fff99bb7ca9 _CFPropertyListCreateWithData + 89 11
com.apple.CoreFoundation 0x00007fff99bb7bad
CFPropertyListCreateWithData + 93 12 com.apple.Foundation
0x00007fff8b8400d7 +[NSPropertyListSerialization
propertyListWithData:options:format:error:] + 94 13
com.apple.dt.DVTFoundation 0x00000001066a81f3 -[DVTPlugInManager
_loadPlugInCache:] + 260 14 com.apple.dt.DVTFoundation 0x00000001066a34a5 -[DVTPlugInManager _scanForPlugIns:] + 3304 15
com.apple.dt.IDEFoundation 0x00000001073e25e9 IDEInitialize + 3250
16 com.apple.dt.IDEKit 0x0000000107adf2fc
-[IDEApplicationController applicationWillFinishLaunching:] + 708 17 com.apple.CoreFoundation 0x00007fff99c33c9c
__CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12 18 com.apple.CoreFoundation 0x00007fff99c33c2f
___CFXRegistrationPost_block_invoke + 63 19 com.apple.CoreFoundation 0x00007fff99c33ba7 _CFXRegistrationPost + 407 20
com.apple.CoreFoundation 0x00007fff99c33912
___CFXNotificationPost_block_invoke + 50 21 com.apple.CoreFoundation 0x00007fff99bf06d2 -[_CFXNotificationRegistrar
find:object:observer:enumerator:] + 1922 22 com.apple.CoreFoundation
0x00007fff99bef925 _CFXNotificationPost + 693 23
com.apple.Foundation 0x00007fff8b82f0fa
-[NSNotificationCenter postNotificationName:object:userInfo:] + 66 24 com.apple.dt.DVTFoundation 0x0000000106883d35
-[NSNotificationCenter(DVTNSNotificationCenterAdditions) _dvt_postNotificationName:object:userInfo:] + 698 25 com.apple.AppKit 0x00007fff9249d022 -[NSApplication finishLaunching] + 354 26
com.apple.dt.DVTKit 0x0000000106e83494 -[DVTApplication
finishLaunching] + 149 27 com.apple.AppKit
0x00007fff9249cb65 -[NSApplication run] + 231 28 com.apple.AppKit
0x00007fff92465fbe NSApplicationMain + 1176 29 libdyld.dylib
0x00007fff8b5eb5ad start + 1
Related
A crash is occurring in my app but the crash report only shows system libraries. It is clear that my app is provoking the issue but because 1) of its size and 2) there isn't sign of any of my libraries in the stack trace, I can't figure out where it is happening. As far as I know it is related with NSUrlConnection but it is being used in lots of places.
Does any body knows how can I used Atos or lldb to symbolicate when my app is NOT being mentioned in the stack trace?
Below is the stack.
Thanks
Thread 33:: com.apple.NSURLConnectionLoader Dispatch queue: com.apple.CFFileDescriptor
0 com.apple.CoreFoundation 0x00007fff9d3a2add __CFFileDescriptorEnableCallBacks_block_invoke + 13
1 libdispatch.dylib 0x00007fff9b13440b _dispatch_client_callout + 8
2 libdispatch.dylib 0x00007fff9b1359f2 _dispatch_barrier_sync_f_invoke + 74
3 com.apple.CoreFoundation 0x00007fff9d3a2ab4 CFFileDescriptorEnableCallBacks + 180
4 com.apple.CoreFoundation 0x00007fff9d42cdaa constructCFFD + 122
5 com.apple.CoreFoundation 0x00007fff9d36e48e fileOpen + 238
6 com.apple.CoreFoundation 0x00007fff9d3626a8 _CFStreamOpen + 120
7 com.apple.CoreFoundation 0x00007fff9d36e37f CFReadStreamOpen + 95
8 com.apple.CFNetwork 0x00007fff911b27fe FileURLProtocol::_protocolInterface_startLoad(_CFCachedURLResponse const*) + 578
9 com.apple.CFNetwork 0x00007fff91041350 ___ZN19URLConnectionLoader27_private_ScheduleOriginLoadEPK12NSURLRequestPK20_CFCachedURLResponse_block_invoke_2 + 61
10 com.apple.CFNetwork 0x00007fff910412f1 ___ZNK19URLConnectionLoader25withExistingProtocolAsyncEU13block_pointerFvP11URLProtocolE_block_invoke + 25
11 libdispatch.dylib 0x00007fff9b13440b _dispatch_client_callout + 8
12 libdispatch.dylib 0x00007fff9b142039 _dispatch_block_invoke + 474
13 com.apple.CFNetwork 0x00007fff9104017c RunloopBlockContext::_invoke_block(void const*, void*) + 24
14 com.apple.CoreFoundation 0x00007fff9d33ad74 CFArrayApplyFunction + 68
15 com.apple.CFNetwork 0x00007fff91040075 RunloopBlockContext::perform() + 137
16 com.apple.CFNetwork 0x00007fff9103ff16 MultiplexerSource::perform() + 282
17 com.apple.CFNetwork 0x00007fff9103fd38 MultiplexerSource::_perform(void*) + 72
18 com.apple.CoreFoundation 0x00007fff9d398881 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
19 com.apple.CoreFoundation 0x00007fff9d377fbc __CFRunLoopDoSources0 + 556
20 com.apple.CoreFoundation 0x00007fff9d3774df __CFRunLoopRun + 927
21 com.apple.CoreFoundation 0x00007fff9d376ed8 CFRunLoopRunSpecific + 296
22 com.apple.CFNetwork 0x00007fff9101aa6d +[NSURLConnection(Loader) _resourceLoadLoop:] + 412
23 com.apple.Foundation 0x00007fff9b195e64 __NSThread__start__ + 1351
24 libsystem_pthread.dylib 0x00007fff9997a99d _pthread_body + 131
25 libsystem_pthread.dylib 0x00007fff9997a91a _pthread_start + 168
26 libsystem_pthread.dylib 0x00007fff99978351 thread_start + 13
My cocoa app occasionally crashes with the above specific information. I'm sure that it's due to NSTableView display in my app but I can't figure out what's wrong. The crash report is as below. Can anyone tell what's going on?
Application Specific Information:
objc_msgSend() selector name: countByEnumeratingWithState:objects:count:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x00007fff8847a0dd objc_msgSend + 29
1 com.apple.AppKit 0x00007fff8ae1a44a -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 6008
2 com.apple.AppKit 0x00007fff8add12be -[NSView displayIfNeeded] + 1876
3 com.apple.AppKit 0x00007fff8add0b19 -[NSWindow displayIfNeeded] + 236
4 com.apple.AppKit 0x00007fff8add0782 _handleWindowNeedsDisplayOrLayoutOrUpdateConstraints + 936
5 com.apple.AppKit 0x00007fff8b506191 __83-[NSWindow _postWindowNeedsDisplayOrLayoutOrUpdateConstraintsUnlessPostingDisabled]_block_invoke1540 + 46
6 com.apple.CoreFoundation 0x00007fff8dd32127 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
7 com.apple.CoreFoundation 0x00007fff8dd32080 __CFRunLoopDoObservers + 368
8 com.apple.CoreFoundation 0x00007fff8dd24188 __CFRunLoopRun + 872
9 com.apple.CoreFoundation 0x00007fff8dd23bd8 CFRunLoopRunSpecific + 296
10 com.apple.HIToolbox 0x00007fff950db56f RunCurrentEventLoopInMode + 235
11 com.apple.HIToolbox 0x00007fff950db2ea ReceiveNextEventCommon + 431
12 com.apple.HIToolbox 0x00007fff950db12b _BlockUntilNextEventMatchingListInModeWithFilter + 71
13 com.apple.AppKit 0x00007fff8adcd9bb _DPSNextEvent + 978
14 com.apple.AppKit 0x00007fff8adccf68 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
15 com.apple.AppKit 0x00007fff8adc2bf3 -[NSApplication run] + 594
16 com.apple.AppKit 0x00007fff8ad3f354 NSApplicationMain + 1832
17 libdyld.dylib 0x00007fff8980e5c9 start + 1
I recently upgraded to 4.5.1. I went to add a device to my provisioning profile and XCode crashes. It also crashes if I open the organizer and select devices.
I'm on Mac OSX 10.7.4. Below is the stack trace:
Crashed Thread: 7 Dispatch queue: com.apple.dt.DVTCertificateUtilities.scan
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000000000b8
VM Regions Near 0xb8:
-->
__TEXT 000000010c833000-000000010c836000 [ 12K] r-x/rwx SM=COW /Applications/Xcode.app/Contents/MacOS/Xcode
Application Specific Information:
ProductBuildVersion: 4G1004
objc[10449]: garbage collection is ON
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff9245a67a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff92459d71 mach_msg + 73
2 com.apple.framework.IOKit 0x00007fff905a49bf io_service_get_matching_services + 210
3 com.apple.framework.IOKit 0x00007fff9055c604 IOServiceGetMatchingServices + 137
4 com.apple.framework.IOKit 0x00007fff9055c741 IOServiceGetMatchingService + 25
5 com.apple.Foundation 0x00007fff955cd10b +[NSFileWrapper _canSafelyMapFilesAtPath:] + 241
6 com.apple.Foundation 0x00007fff95572510 -[NSData(NSData) initWithContentsOfFile:options:error:] + 139
7 com.apple.AppKit 0x00007fff8d5b0c22 -[NSNib _loadNibDataFromPath:] + 310
8 com.apple.AppKit 0x00007fff8d5b0abc -[NSNib _initWithPath:bundle:] + 162
9 com.apple.AppKit 0x00007fff8d5b0a11 -[NSNib initWithNibNamed:bundle:] + 257
10 com.apple.AppKit 0x00007fff8d5b08f9 -[NSViewController(NSInternal) _nibWithName:bundle:] + 56
11 com.apple.AppKit 0x00007fff8d5b07b0 -[NSViewController loadView] + 155
12 com.apple.DTDeviceKit 0x0000000111c9b466 -[DTDKDetailViewController loadView] + 51
13 com.apple.dt.IDE.IDEiPhoneSupport 0x0000000110c26675 -[IDEiPhoneOrganizerScreenshotsViewController loadView] + 49
14 com.apple.AppKit 0x00007fff8d5ac4ae -[NSViewController view] + 41
15 com.apple.dt.IDE.IDEiPhoneSupport 0x0000000110c2d08d -[IDEiPhoneOrganizerViewController outlineViewSelectionDidChange:] + 194
16 com.apple.Foundation 0x00007fff95563d0e __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 + 47
17 com.apple.CoreFoundation 0x00007fff978f77ba _CFXNotificationPost + 2634
18 com.apple.Foundation 0x00007fff9554ffc3 -[NSNotificationCenter postNotificationName:object:userInfo:] + 65
19 com.apple.AppKit 0x00007fff8d5e9499 -[NSTableView _sendSelectionChangedNotificationForRows:columns:] + 203
20 com.apple.AppKit 0x00007fff8d5bff5a -[NSTableView _enableSelectionPostingAndPost] + 425
21 com.apple.AppKit 0x00007fff8d5e8305 -[NSTableView _doSelectIndexes:byExtendingSelection:indexType:funnelThroughSingleIndexVersion:] + 2915
22 com.apple.dt.IDE.IDEiPhoneSupport 0x0000000110c2aae4 -[IDEiPhoneOrganizerViewController setCurrentNodeIdentifier:] + 1442
23 com.apple.dt.IDE.IDEiPhoneSupport 0x0000000110c2bb9b -[IDEiPhoneOrganizerViewController updateNodes] + 2542
24 com.apple.dt.IDE.IDEiPhoneSupport 0x0000000110c29997 -[IDEiPhoneOrganizerViewController sharedViewSetup] + 219
25 com.apple.dt.IDE.IDEiPhoneSupport 0x0000000110c29a23 -[IDEiPhoneOrganizerViewController viewDidInstall] + 59
26 com.apple.dt.DVTKit 0x000000010cd49165 -[DVTViewController _didInstallContentView:] + 128
27 com.apple.dt.DVTKit 0x000000010cc83b0c -[DVTControllerContentView _viewDidInstall] + 406
28 com.apple.dt.DVTKit 0x000000010cc8338f -[DVTControllerContentView viewDidMoveToWindow] + 75
29 com.apple.AppKit 0x00007fff8d591a55 -[NSView _setWindow:] + 2618
30 com.apple.AppKit 0x00007fff8d58fc6d -[NSView addSubview:] + 405
31 com.apple.dt.DVTKit 0x000000010cd48ef0 __42-[DVTReplacementView _setupViewController]_block_invoke_0 + 164
32 com.apple.dt.DVTFoundation 0x000000010c8c02c8 DVTInvokeWithFailureHintObject + 59
33 com.apple.dt.DVTKit 0x000000010cc75141 -[DVTReplacementView _setupViewController] + 249
34 com.apple.dt.DVTKit 0x000000010cc75015 -[DVTReplacementView installedViewController] + 138
35 com.apple.dt.IDEKit 0x000000010d55ddd9 -[IDEApplicationController _openFiles:] + 533
36 com.apple.dt.IDEKit 0x000000010d55dbba -[IDEApplicationController application:openFiles:] + 49
37 com.apple.AppKit 0x00007fff8d7395e5 __-[NSApplication(NSAppleEventHandling) _handleAEOpenDocumentsForURLs:]_block_invoke_1 + 1064
38 com.apple.AppKit 0x00007fff8d4833e1 -[NSDocumentController(NSInternal) _autoreopenDocumentsWithCompletionHandler:] + 64
39 com.apple.AppKit 0x00007fff8d48310f -[NSApplication _reopenWindowsAsNecessaryIncludingRestorableState:registeringAsReady:completionHandler:] + 287
40 com.apple.AppKit 0x00007fff8d6c1f33 -[NSApplication(NSAppleEventHandling) _handleAEOpenDocumentsForURLs:] + 272
41 com.apple.AppKit 0x00007fff8d482c5a -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 307
42 com.apple.CoreFoundation 0x00007fff97941541 -[NSObject performSelector:withObject:withObject:] + 65
43 com.apple.Foundation 0x00007fff955867c7 __-[NSAppleEventManager setEventHandler:andSelector:forEventClass:andEventID:]_block_invoke_1 + 101
44 com.apple.Foundation 0x00007fff9558574e -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 283
45 com.apple.Foundation 0x00007fff955855dc _NSAppleEventManagerGenericHandler + 105
46 com.apple.dt.IDEKit 0x000000010d5f34d4 HandleOpenDocAE + 47
47 com.apple.AE 0x00007fff8c7c3c25 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 200
48 com.apple.AE 0x00007fff8c7c3b03 _ZL25dispatchEventAndSendReplyPK6AEDescPS_ + 38
49 com.apple.AE 0x00007fff8c7c39f7 aeProcessAppleEvent + 250
50 com.apple.HIToolbox 0x00007fff96443d7d AEProcessAppleEvent + 102
51 com.apple.AppKit 0x00007fff8d48007d _DPSNextEvent + 1247
52 com.apple.AppKit 0x00007fff8d47f735 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135
53 com.apple.AppKit 0x00007fff8d47c071 -[NSApplication run] + 470
54 com.apple.AppKit 0x00007fff8d6f8244 NSApplicationMain + 867
55 com.apple.dt.Xcode 0x000000010c834d17 0x10c833000 + 7447
56 com.apple.dt.Xcode 0x000000010c834ca8 0x10c833000 + 7336
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff9245c7e6 kevent + 10
1 libdispatch.dylib 0x00007fff9075378a _dispatch_mgr_invoke + 923
2 libdispatch.dylib 0x00007fff9075231a _dispatch_mgr_thread + 54
Thread 2:: com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x00007fff9245a67a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff92459d71 mach_msg + 73
2 com.apple.CoreFoundation 0x00007fff978db50c __CFRunLoopServiceMachPort + 188
3 com.apple.CoreFoundation 0x00007fff978e3c74 __CFRunLoopRun + 1204
4 com.apple.CoreFoundation 0x00007fff978e3486 CFRunLoopRunSpecific + 230
5 com.apple.Foundation 0x00007fff955b2fd7 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 335
6 com.apple.Foundation 0x00007fff955a772a -[NSThread main] + 68
7 com.apple.Foundation 0x00007fff955a76a2 __NSThread__main__ + 1575
8 libsystem_c.dylib 0x00007fff8c2188bf _pthread_start + 335
9 libsystem_c.dylib 0x00007fff8c21bb75 thread_start + 13
Thread 3:
0 libsystem_kernel.dylib 0x00007fff9245a67a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff92459d71 mach_msg + 73
2 com.apple.CoreFoundation 0x00007fff978db50c __CFRunLoopServiceMachPort + 188
3 com.apple.CoreFoundation 0x00007fff978e3c74 __CFRunLoopRun + 1204
4 com.apple.CoreFoundation 0x00007fff978e3486 CFRunLoopRunSpecific + 230
5 com.apple.DTDeviceKit 0x0000000111c9ab1f -[DTDKRemoteDeviceDataListener listenerThreadImplementation] + 298
6 com.apple.Foundation 0x00007fff955a772a -[NSThread main] + 68
7 com.apple.Foundation 0x00007fff955a76a2 __NSThread__main__ + 1575
8 libsystem_c.dylib 0x00007fff8c2188bf _pthread_start + 335
9 libsystem_c.dylib 0x00007fff8c21bb75 thread_start + 13
Thread 4:: com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x00007fff9245bdf2 __select + 10
1 com.apple.CoreFoundation 0x00007fff9792cc8b __CFSocketManager + 1355
2 libsystem_c.dylib 0x00007fff8c2188bf _pthread_start + 335
3 libsystem_c.dylib 0x00007fff8c21bb75 thread_start + 13
Thread 5:
0 libsystem_kernel.dylib 0x00007fff9245b47a __accept + 10
1 com.unity3d.Unity4XC 0x0000000110fa02e8 +[UnityXcodePlugin pluginBg] + 201
2 com.apple.Foundation 0x00007fff955a772a -[NSThread main] + 68
3 com.apple.Foundation 0x00007fff955a76a2 __NSThread__main__ + 1575
4 libsystem_c.dylib 0x00007fff8c2188bf _pthread_start + 335
5 libsystem_c.dylib 0x00007fff8c21bb75 thread_start + 13
Thread 6:: DYMobileDeviceManager
0 libsystem_kernel.dylib 0x00007fff9245a67a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff92459d71 mach_msg + 73
2 com.apple.CoreFoundation 0x00007fff978db50c __CFRunLoopServiceMachPort + 188
3 com.apple.CoreFoundation 0x00007fff978e3c74 __CFRunLoopRun + 1204
4 com.apple.CoreFoundation 0x00007fff978e3486 CFRunLoopRunSpecific + 230
5 com.apple.Foundation 0x00007fff95558f7b -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 267
6 com.apple.Foundation 0x00007fff95558e67 -[NSRunLoop(NSRunLoop) run] + 62
7 com.apple.Foundation 0x00007fff955a772a -[NSThread main] + 68
8 com.apple.Foundation 0x00007fff955a76a2 __NSThread__main__ + 1575
9 libsystem_c.dylib 0x00007fff8c2188bf _pthread_start + 335
10 libsystem_c.dylib 0x00007fff8c21bb75 thread_start + 13
Thread 7 Crashed:: Dispatch queue: com.apple.dt.DVTCertificateUtilities.scan
0 com.apple.security 0x00007fff976b3d98 DERDecodeSeqContentInit + 4
1 com.apple.security 0x00007fff976ad0fa parseX501NameContent + 32
2 com.apple.security 0x00007fff976ad193 SecCertificateCopyCommonNames + 62
3 com.apple.security 0x00007fff976ac49a Security::KeychainCore::CertificateValues::copyFieldValues(__CFArray const*, __CFError**) + 282
4 com.apple.security 0x00007fff97678fb3 SecCertificateCopyValues + 44
5 com.apple.dt.DVTFoundation 0x000000010c93a2cc +[DVTCertificateUtilities certificateKindForCertificate:] + 62
6 com.apple.dt.DVTFoundation 0x000000010c93ad0f +[DVTCertificateUtilities _scanForSigningCertificates] + 492
7 com.apple.dt.DVTFoundation 0x000000010c8e32a0 __DVTDispatchAsync_block_invoke_0 + 16
8 libdispatch.dylib 0x00007fff90751a86 _dispatch_call_block_and_release + 18
9 libdispatch.dylib 0x00007fff907532d6 _dispatch_queue_drain + 264
10 libdispatch.dylib 0x00007fff90753132 _dispatch_queue_invoke + 54
11 libdispatch.dylib 0x00007fff9075292c _dispatch_worker_thread2 + 198
12 libsystem_c.dylib 0x00007fff8c21a3da _pthread_wqthread + 316
13 libsystem_c.dylib 0x00007fff8c21bb85 start_wqthread + 13
Thread 8:
0 libsystem_kernel.dylib 0x00007fff9245c192 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8c21a594 _pthread_wqthread + 758
2 libsystem_c.dylib 0x00007fff8c21bb85 start_wqthread + 13
Thread 9:
0 libsystem_kernel.dylib 0x00007fff9245c192 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8c21a594 _pthread_wqthread + 758
2 libsystem_c.dylib 0x00007fff8c21bb85 start_wqthread + 13
Thread 10:
0 libsystem_kernel.dylib 0x00007fff9245c192 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8c21a594 _pthread_wqthread + 758
2 libsystem_c.dylib 0x00007fff8c21bb85 start_wqthread + 13
Thread 11:
0 libsystem_kernel.dylib 0x00007fff9245c192 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8c21a594 _pthread_wqthread + 758
2 libsystem_c.dylib 0x00007fff8c21bb85 start_wqthread + 13
Thread 7 crashed with X86 Thread State (64-bit):
rax: 0x0000000401acd3c0 rbx: 0x00007fff976ad1b8 rcx: 0x0000000000000005 rdx: 0x00007fff976ad1b8
rdi: 0x00000000000000b8 rsi: 0x000000011522dba8 rbp: 0x000000011522db80 rsp: 0x000000011522db80
r8: 0x0000000000000001 r9: 0x00000000ffffffff r10: 0x000000000000009e r11: 0x0000000401acd3c0
r12: 0x0000000401acda40 r13: 0x000000000000000f r14: 0x0000000401acd3c0 r15: 0x0000000402e60be0
rip: 0x00007fff976b3d98 rfl: 0x0000000000010206 cr2: 0x00000000000000b8
Logical CPU: 6
Have you tried the obvious - restarting Xcode / rebooting?
You may have to go one step further than deleting your profiles. Try revoking existing profiles and resetting your keychain. See also: https://discussions.apple.com/thread/3752773?start=0&tstart=0
This may sound silly, but have you tried disconnecting any iOS devices you have attached to your mac?
I was experiencing the same problem, and tried deleting profiles and certs, restarting, etc, but no dice. When i unplugged my new iPhone 5 it worked fine. I probably have to clean up the certs on my iPhone as well.
Our (legacy) app runs stable on a range of OS versions (10.4 - 10.7) since years and now randomly crashes at ONE customers computers (both of them, though) within WaitNextEvent.
All crashes occur deep inside Apple's code with random locations but always with WaitNextEvent somewhere in the call stack.
Examples are:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 dyld 0x8fe8a33d _ZN4dyldL10loadPhase5EPKcS1_RKNS_11LoadContextEPSt6vectorIS1_SaIS1_EE + 716
1 dyld 0x8fe8a501 _ZN4dyldL10loadPhase4EPKcS1_RKNS_11LoadContextEPSt6vectorIS1_SaIS1_EE + 179
2 dyld 0x8fe8ae31 _ZN4dyldL10loadPhase3EPKcS1_RKNS_11LoadContextEPSt6vectorIS1_SaIS1_EE + 1429
3 dyld 0x8fe8b1f1 _ZN4dyldL10loadPhase1EPKcS1_RKNS_11LoadContextEPSt6vectorIS1_SaIS1_EE + 166
4 dyld 0x8fe8b340 _ZN4dyldL10loadPhase0EPKcS1_RKNS_11LoadContextEPSt6vectorIS1_SaIS1_EE + 240
5 dyld 0x8fe8b3fd dyld::load(char const*, dyld::LoadContext const&) + 132
6 dyld 0x8fe8e036 dlopen + 428
7 libdyld.dylib 0x977b9a95 dlopen + 70
8 com.apple.CoreServices.CarbonCore 0x90d467cf GetDYLDEntryPointWithImage + 43
9 com.apple.CoreServices.CarbonCore 0x90d50aed GetDYLDEntryPoint + 45
10 com.apple.AppKit 0x9c62cf2c _IsCarbonFullScreenInstanceWorkspace + 57
11 com.apple.AppKit 0x9c03231c -[NSApplication _updateFullScreenPresentationOptions] + 75
12 com.apple.AppKit 0x9bdc97d5 -[NSApplication sendEvent:] + 906
13 com.apple.AppKit 0x9c4d81e1 _appActivationHandler + 547
14 com.apple.AppKit 0x9c4d79b8 carbonAppApplicationHandler + 108
15 com.apple.HIToolbox 0x9bb9f920 _InvokeEventHandlerUPP(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*, long (*)(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)) + 36
16 com.apple.HIToolbox 0x9ba1b803 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1602
17 com.apple.HIToolbox 0x9ba1ac80 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 482
18 com.apple.HIToolbox 0x9ba1aa98 SendEventToEventTargetWithOptions + 75
19 com.apple.HIToolbox 0x9ba306fe _ZL29ToolboxEventDispatcherHandlerP25OpaqueEventHandlerCallRefP14OpaqueEventRefPv + 3152
20 com.apple.HIToolbox 0x9ba1bcbe _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 2813
21 com.apple.HIToolbox 0x9ba1ac80 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 482
22 com.apple.HIToolbox 0x9ba2faa9 SendEventToEventTarget + 76
23 com.apple.HIToolbox 0x9bb9f76c ToolboxEventDispatcher + 82
24 com.apple.HIToolbox 0x9bbb1e0f GetOrPeekEvent + 482
25 com.apple.HIToolbox 0x9bbb217f GetNextEventMatchingMask + 539
26 com.apple.HIToolbox 0x9bbb24b7 WNEInternal + 434
27 com.apple.HIToolbox 0x9bbb1784 WaitNextEvent + 53
28 com.ourStuff 0x000bebe5 LApplication::ProcessNextEvent() + 69
or
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x9c2dec22 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x9c2de1f6 mach_msg + 70
2 com.apple.CoreFoundation 0x98f370ea __CFRunLoopServiceMachPort + 170
3 com.apple.CoreFoundation 0x98f40214 __CFRunLoopRun + 1428
4 com.apple.CoreFoundation 0x98f3f8ec CFRunLoopRunSpecific + 332
5 com.apple.CoreFoundation 0x98f3f798 CFRunLoopRunInMode + 120
6 com.apple.HIToolbox 0x95b7fa7f RunCurrentEventLoopInMode + 318
7 com.apple.HIToolbox 0x95d1c151 GetNextEventMatchingMask + 493
8 com.apple.HIToolbox 0x95d1c4b7 WNEInternal + 434
9 com.apple.HIToolbox 0x95d1b784 WaitNextEvent + 53
10 com.apple.HIToolbox 0x95cfc136 ModalDialog + 1638
11 com.apple.HIToolbox 0x95d03ff5 RunStandardAlert + 741
12 com.apple.HIToolbox 0x95d028bf StandardAlert + 201
13 com.ourStuff 0x0007fbaa 0x1000 + 519082
Any hints are highly appreciated!
As of now we couldn't reproduce the bug locally.
FWIW - the crashes just disappeared after that particular customer deactivated DefaultFolderX (which kept showing up in every crash dump of our app on the customers system)..
I'm having a weird crashing problem with my app that only happens on 10.5. It doesn't happen all the time, but it happens on startup, seemingly when the nib is loading. (BWTransparentScrollView appears in the crash report, but the crash there happens in initWithCoder:, and I can still trigger the crash if I remove BWToolkit from my project.)
In fact, it seems there's a problem with the two IKImageBrowserView objects in my nib. If I delete them from the nib, the crash seems to never happen (although my UI is messed up because these two views are essential to the interface).
Interface Builder doesn't notify me of any problems with the IKImageBrowserViews.
Below is a typical crash report for this problem:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0
Application Specific Information:
objc[22521]: garbage collection is ON
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString objectForKey:]: unrecognized selector sent to instance 0x7fff704d15d0'
Thread 0 Crashed:
0 libSystem.B.dylib 0x00007fff81da5f16 __kill + 10
1 libstdc++.6.dylib 0x00007fff80b82085 dyld_stub__Unwind_DeleteException + 0
2 libobjc.A.dylib 0x00007fff80a4cadf _objc_terminate + 102
3 libstdc++.6.dylib 0x00007fff80b80425 __gxx_personality_v0 + 1259
4 libstdc++.6.dylib 0x00007fff80b8045b std::terminate() + 19
5 libstdc++.6.dylib 0x00007fff80b8054c __cxa_rethrow + 0
6 libobjc.A.dylib 0x00007fff80a4c966 objc_exception_rethrow + 0
7 com.apple.CoreFoundation 0x00007fff8218645b -[NSObject doesNotRecognizeSelector:] + 171
8 com.apple.CoreFoundation 0x00007fff82184ae4 ___forwarding___ + 756
9 com.apple.CoreFoundation 0x00007fff82184c38 _CF_forwarding_prep_0 + 232
10 com.apple.CoreText 0x00007fff839f0f43 TDescriptor::CreateMatchingDescriptorInternal(__CFSet const*) const + 237
11 com.apple.CoreText 0x00007fff839f0dd0 TDescriptor::InitBaseFont() + 30
12 com.apple.CoreText 0x00007fff839f0d59 TDescriptor::CreateMatchingDescriptor(__CFSet const*) const + 47
13 com.apple.AppKit 0x00007fff842df2d3 __NSFontFactoryWithName + 412
14 com.apple.AppKit 0x00007fff842df075 +[NSFont fontWithName:size:] + 51
15 com.apple.imageKit 0x00000001000d246b -[IKImageBrowserView _setDefaultTextAttributes] + 288
16 com.apple.imageKit 0x00000001000d2936 -[IKImageBrowserView setAppearanceStyle:] + 42
17 com.apple.imageKit 0x00000001000d0a88 -[IKImageBrowserView _ikCommonInit] + 2122
18 com.apple.imageKit 0x00000001000d1470 -[IKImageBrowserView initWithCoder:] + 76
19 com.apple.AppKit 0x00007fff8423f750 -[NSClassSwapper initWithCoder:] + 483
20 com.apple.Foundation 0x00007fff80bc631e _decodeObjectBinary + 1214
21 com.apple.Foundation 0x00007fff80bc7b33 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1363
22 com.apple.Foundation 0x00007fff80bc7f91 -[NSArray(NSArray) initWithCoder:] + 385
23 com.apple.Foundation 0x00007fff80bc631e _decodeObjectBinary + 1214
24 com.apple.Foundation 0x00007fff80bc5de4 _decodeObject + 244
25 com.apple.AppKit 0x00007fff841fe77a -[NSView initWithCoder:] + 367
26 com.apple.AppKit 0x00007fff842406a0 -[NSClipView initWithCoder:] + 55
27 com.apple.Foundation 0x00007fff80bc631e _decodeObjectBinary + 1214
28 com.apple.Foundation 0x00007fff80bc7b33 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1363
29 com.apple.Foundation 0x00007fff80bc7f91 -[NSArray(NSArray) initWithCoder:] + 385
30 com.apple.Foundation 0x00007fff80bc631e _decodeObjectBinary + 1214
31 com.apple.Foundation 0x00007fff80bc5de4 _decodeObject + 244
32 com.apple.AppKit 0x00007fff841fe77a -[NSView initWithCoder:] + 367
33 com.apple.AppKit 0x00007fff84240edd -[NSScrollView initWithCoder:] + 127
34 ...onwalkin.BWToolkitFramework 0x00000001003bcb7d -[BWTransparentScrollView initWithCoder:] + 41
35 com.apple.AppKit 0x00007fff8423f750 -[NSClassSwapper initWithCoder:] + 483
36 com.apple.Foundation 0x00007fff80bc631e _decodeObjectBinary + 1214
37 com.apple.Foundation 0x00007fff80bc7b33 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1363
38 com.apple.Foundation 0x00007fff80bc7f91 -[NSArray(NSArray) initWithCoder:] + 385
39 com.apple.Foundation 0x00007fff80bc631e _decodeObjectBinary + 1214
40 com.apple.Foundation 0x00007fff80bc5de4 _decodeObject + 244
41 com.apple.AppKit 0x00007fff841fe77a -[NSView initWithCoder:] + 367
42 com.apple.AppKit 0x00007fff841ffc92 -[NSCustomView initWithCoder:] + 651
43 com.apple.Foundation 0x00007fff80bc631e _decodeObjectBinary + 1214
44 com.apple.Foundation 0x00007fff80bc5de4 _decodeObject + 244
45 com.apple.AppKit 0x00007fff841f8928 -[NSNibConnector initWithCoder:] + 409
46 com.apple.AppKit 0x00007fff841fd404 -[NSNibOutletConnector initWithCoder:] + 350
47 com.apple.Foundation 0x00007fff80bc631e _decodeObjectBinary + 1214
48 com.apple.Foundation 0x00007fff80bc7b33 -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1363
49 com.apple.Foundation 0x00007fff80bc7f91 -[NSArray(NSArray) initWithCoder:] + 385
50 com.apple.Foundation 0x00007fff80bc631e _decodeObjectBinary + 1214
51 com.apple.Foundation 0x00007fff80bc5de4 _decodeObject + 244
52 com.apple.AppKit 0x00007fff841f784c -[NSIBObjectData initWithCoder:] + 2014
53 com.apple.Foundation 0x00007fff80bc631e _decodeObjectBinary + 1214
54 com.apple.Foundation 0x00007fff80bc5de4 _decodeObject + 244
55 com.apple.AppKit 0x00007fff841f6f55 loadNib + 156
56 com.apple.AppKit 0x00007fff841f698d +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 836
57 com.apple.AppKit 0x00007fff841f6568 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 355
58 com.apple.AppKit 0x00007fff841f6299 NSApplicationMain + 286
59 ...ittleappfactory.Tagalicious 0x00000001000015cc start + 52
Thread 1:
0 libauto.dylib 0x00007fff83fcfaae Auto::MemoryScanner::scan_range(Auto::Range const&, Auto::WriteBarrier*) + 366
1 libauto.dylib 0x00007fff83fbe3df Auto::WriteBarrier::scan_ranges(void*, unsigned long, Auto::MemoryScanner&) + 607
2 libauto.dylib 0x00007fff83fd10c7 bool Auto::visitAllocatedBlocks<Auto::scan_retained_and_old_blocks_visitor>(Auto::Zone*, Auto::scan_retained_and_old_blocks_visitor&) + 343
3 libauto.dylib 0x00007fff83fd080d Auto::MemoryScanner::scan_retained_and_old_blocks() + 29
4 libauto.dylib 0x00007fff83fc95d7 Auto::Collector::check_roots() + 23
5 libauto.dylib 0x00007fff83fd0b0d Auto::MemoryScanner::scan() + 45
6 libauto.dylib 0x00007fff83fc0a40 Auto::Zone::collect(bool, void*, unsigned long long*) + 496
7 libauto.dylib 0x00007fff83fae8fd auto_collect_internal(Auto::Zone*, unsigned int) + 381
8 libauto.dylib 0x00007fff83faf3b0 auto_collection_thread(void*) + 112
9 libSystem.B.dylib 0x00007fff81d6ce8f _pthread_start + 316
10 libSystem.B.dylib 0x00007fff81d6cd51 thread_start + 13
Thread 2:
0 libSystem.B.dylib 0x00007fff81d45da2 __semwait_signal + 10
1 libGLProgrammability.dylib 0x00007fff826d057b glvmDoWork + 155
2 libSystem.B.dylib 0x00007fff81d6ce8f _pthread_start + 316
3 libSystem.B.dylib 0x00007fff81d6cd51 thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00007fff702717d8 rcx: 0x00007fff5fbfb628 rdx: 0x0000000000000000
rdi: 0x00000000000057f9 rsi: 0x0000000000000006 rbp: 0x00007fff5fbfb640 rsp: 0x00007fff5fbfb628
r8: 0x00007fff5fbfb1b0 r9: 0x0000000000000000 r10: 0x00007fff81d7de36 r11: 0x0000000000000206
r12: 0x00007fff821aea28 r13: 0x0000000000000000 r14: 0x00007fff80a56d00 r15: 0x00007fff7032d0a0
rip: 0x00007fff81da5f16 rfl: 0x0000000000000206 cr2: 0x00007fff70093028
Any idea what could be happening?
Ugh. I tried a bunch of things to try and fix this problem. I tried recreating new IKImageBrowserViews from scratch (in case the xib file itself was somehow damaged). I tried making sure that my custom IKImageBrowserView classes (I set their classes in Interface Builder) were not causing the problem.
In the end, I deleted the IKImageBrowserViews from the xib and created them both programatically. The crashes on 10.5 disappeared. It wasn't too hard, but it was the only solution that seemed to fix the on-launch crashes.