iOS Simulator crashing in Virtual Machine - iphone

I'm brand new to iOS development (and MacOS in general). While waiting for a mac to arrive I've set up a Virtual Machine running Mountain Lion to get started with developing.
When trying to run a simple Hello World application, the simulator crashes with "The simulated application quit" error message.
In the User Diagnostic Reports there is the following crash report:
Process: SpringBoard [9828]
Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/System/Library/CoreServices/SpringBoard.app/SpringBoard
Identifier: SpringBoard
Version: 2127.141
Code Type: X86 (Native)
Parent Process: sim64 [9826]
User ID: 501
Date/Time: 2013-06-06 09:17:09.538 +0100
OS Version: Mac OS X 10.8 (12A269)
Report Version: 10
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
iPhone Simulator 369.2, iPhone OS 6.1 (iPhone/10B141)
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x94c75a6a __pthread_kill + 10
1 libsystem_c.dylib 0x930a0acf pthread_kill + 101
2 libsystem_sim_c.dylib 0x050fc57b abort + 140
3 libc++abi.dylib 0x0500ef7b abort_message + 105
4 libc++abi.dylib 0x0500ca25 default_terminate() + 34
5 libobjc.A.dylib 0x04a750c1 _objc_terminate() + 94
6 libc++abi.dylib 0x0500ca65 safe_handler_caller(void (*)()) + 13
7 libc++abi.dylib 0x0500cacd std::terminate() + 23
8 libc++abi.dylib 0x0500dbc2 __cxa_throw + 110
9 libobjc.A.dylib 0x04a74f89 objc_exception_throw + 311
10 CoreFoundation 0x048a60de -[__NSDictionaryM setObject:forKey:] + 158
11 MobileCoreServices 0x02f9aeaa -[LSApplicationWorkspace installedApplications] + 1095
12 SpringBoard 0x000e1f3d 0x1000 + 921405
13 SpringBoard 0x000e2a16 0x1000 + 924182
14 SpringBoard 0x000df5a6 0x1000 + 910758
15 SpringBoard 0x000df2d1 0x1000 + 910033
16 SpringBoard 0x000df316 0x1000 + 910102
17 SpringBoard 0x001ee6df 0x1000 + 2021087
18 SpringBoard 0x00029040 0x1000 + 163904
19 SpringBoard 0x00026232 0x1000 + 152114
20 SpringBoard 0x00023b1e 0x1000 + 142110
21 SpringBoard 0x00005479 0x1000 + 17529
22 UIKit 0x009371af -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 354
23 UIKit 0x009377a1 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1338
24 UIKit 0x0093894b -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 805
25 UIKit 0x00938086 -[UIApplication _run] + 530
26 UIKit 0x00939ffc UIApplicationMain + 1211
27 SpringBoard 0x00004641 0x1000 + 13889
28 SpringBoard 0x00003a55 0x1000 + 10837
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x94c769ca kevent64 + 10
1 libdispatch.dylib 0x05080c2b _dispatch_mgr_invoke + 863
2 libdispatch.dylib 0x050808cc _dispatch_mgr_thread + 61
Thread 2:: Dispatch queue: com.apple.root.default-priority
0 libsystem_kernel.dylib 0x94c737d2 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x94c72cb0 mach_msg + 68
2 liblaunch.dylib 0x94c5ce58 0x94c59000 + 15960
3 liblaunch.dylib 0x94c5b68e bootstrap_look_up3 + 78
4 libxpc.dylib 0x051d5de8 _xpc_connection_bootstrap_look_up_slow + 376
5 libxpc.dylib 0x051d6c36 _xpc_connection_init + 936
6 libxpc.dylib 0x051d6885 _xpc_connection_resume_init + 14
7 libdispatch.dylib 0x0508d014 _dispatch_client_callout + 14
8 libdispatch.dylib 0x0507e2e8 _dispatch_root_queue_drain + 335
9 libdispatch.dylib 0x0507e450 _dispatch_worker_thread2 + 39
10 libsystem_c.dylib 0x930a1e12 _pthread_wqthread + 441
11 libsystem_c.dylib 0x93089cca start_wqthread + 30
Thread 3:: Dispatch queue: com.apple.MobileInstallationSetDeviceCapabilities
0 libsystem_kernel.dylib 0x94c758e2 __psynch_cvwait + 10
1 libsystem_c.dylib 0x930a4220 _pthread_cond_wait + 833
2 libsystem_c.dylib 0x9312a0ad pthread_cond_wait$UNIX2003 + 71
3 MobileSystemServices 0x0527d083 MOXPCTransportReceiveMessage + 276
4 MobileInstallation 0x027aa015 perform_command + 682
5 MobileInstallation 0x027aabb8 __MobileInstallationSetDeviceCapabilities_block_invoke_057 + 97
6 libdispatch.dylib 0x0507b53f _dispatch_call_block_and_release + 15
7 libdispatch.dylib 0x0508d014 _dispatch_client_callout + 14
8 libdispatch.dylib 0x0507d418 _dispatch_queue_drain + 239
9 libdispatch.dylib 0x0507d2a6 _dispatch_queue_invoke + 59
10 libdispatch.dylib 0x0507e280 _dispatch_root_queue_drain + 231
11 libdispatch.dylib 0x0507e450 _dispatch_worker_thread2 + 39
12 libsystem_c.dylib 0x930a1e12 _pthread_wqthread + 441
13 libsystem_c.dylib 0x93089cca start_wqthread + 30
Thread 4:
0 libsystem_c.dylib 0x93089cac start_wqthread + 0
Thread 5:: WebThread
0 libsystem_kernel.dylib 0x94c737d2 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x94c72cb0 mach_msg + 68
2 CoreFoundation 0x047c4a49 __CFRunLoopServiceMachPort + 185
3 CoreFoundation 0x047c98d4 __CFRunLoopRun + 1380
4 CoreFoundation 0x047c8f44 CFRunLoopRunSpecific + 276
5 CoreFoundation 0x047c8e1b CFRunLoopRunInMode + 123
6 WebCore 0x068cac50 RunWebThread(void*) + 608
7 libsystem_c.dylib 0x9309f557 _pthread_start + 344
8 libsystem_c.dylib 0x93089cee thread_start + 34
Thread 6:
0 libsystem_kernel.dylib 0x94c737d2 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x94c72cb0 mach_msg + 68
2 CoreFoundation 0x047c4a49 __CFRunLoopServiceMachPort + 185
3 CoreFoundation 0x047c98d4 __CFRunLoopRun + 1380
4 CoreFoundation 0x047c8f44 CFRunLoopRunSpecific + 276
5 CoreFoundation 0x047c8e1b CFRunLoopRunInMode + 123
6 Foundation 0x0161c3ac -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 298
7 Foundation 0x0161c275 -[NSRunLoop(NSRunLoop) run] + 82
8 UIKit 0x00cb6445 -[UIStatusBarServerThread main] + 787
9 Foundation 0x01669764 __NSThread__main__ + 1304
10 libsystem_c.dylib 0x9309f557 _pthread_start + 344
11 libsystem_c.dylib 0x93089cee thread_start + 34
Thread 7:
0 libsystem_kernel.dylib 0x94c737d2 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x94c72cb0 mach_msg + 68
2 CoreFoundation 0x047c4a49 __CFRunLoopServiceMachPort + 185
3 CoreFoundation 0x047c98d4 __CFRunLoopRun + 1380
4 CoreFoundation 0x047c8f44 CFRunLoopRunSpecific + 276
5 CoreFoundation 0x047c8e1b CFRunLoopRunInMode + 123
6 SpringBoard 0x000738a0 0x1000 + 469152
7 libsystem_c.dylib 0x9309f557 _pthread_start + 344
8 libsystem_c.dylib 0x93089cee thread_start + 34
Thread 8:
0 libsystem_c.dylib 0x93089cac start_wqthread + 0
Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x00000000 ebx: 0x0b1de7a0 ecx: 0xbfffe19c edx: 0x94c75a6a
edi: 0xac45ca28 esi: 0x00000006 ebp: 0xbfffe1b8 esp: 0xbfffe19c
ss: 0x00000023 efl: 0x00000206 eip: 0x94c75a6a cs: 0x0000000b
ds: 0x00000023 es: 0x00000023 fs: 0x00000000 gs: 0x0000000f
cr2: 0x05022091
Logical CPU: 0
Binary Images:
0x1000 - 0x2acff7 +SpringBoard (2127.141) <EF39B240-01AE-3E9B-978C-B66804DCBE7B> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/System/Library/CoreServices/SpringBoard.app/SpringBoard
0x333000 - 0x3edff7 +StoreServices (858.20) <13DDADBB-7756-3DFF-8749-B978D0E9B2D5> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/System/Library/PrivateFrameworks/StoreServices.framework/StoreServices
0x469000 - 0x517ff7 +CoreText (289.14) <2459B66E-179A-39B4-A9C9-8D09538B3036> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/System/Library/Frameworks/CoreText.framework/CoreText
0x560000 - 0x6f7fff +vImage (213.5) <B0EF7ABD-F20E-3616-B8B2-BAB707710833> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/vImage
.....
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 504
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=199.7M resident=44.0M(22%) swapped_out_or_unallocated=155.7M(78%)
Writable regions: Total=65.2M written=2516K(4%) resident=9.9M(15%) swapped_out=0K(0%) unallocated=55.3M(85%)
REGION TYPE VIRTUAL
=========== =======
CoreServices 360K
JS JIT generated code 32.0M
MALLOC 14.0M
MALLOC guard page 48K
Memory tag=35 11.6M
Stack 67.9M
VM_ALLOCATE 64K
__DATA 12.1M
__LINKEDIT 70.1M
__PAGEZERO 4K
__TEXT 129.7M
__UNICODE 544K
mapped file 242.7M
shared memory 12K
=========== =======
TOTAL 581.0M
Any help with debugging this would be great as I'm not sure where to start with fixing this.

Can you run the simulator stand-alone, not through XCode?
If so, can you run any of the built-in applications?
I'm not sure what may be causing this but it could well be some low-level interaction between the simulator and the VM. You should also bring up Console and see what is logged to the system when you try to run from XCode.

"Reset Content and Settings" resolved this issue, however I think it was combined with a step I made earlier in my attempts at debugging, as at the start I also tried resetting the contents and it didn't work...

Related

Since macOS Catalina Xcode app is crashing every night with CVCGDisplayLink exception

I have a macOS app with a GUI which runs 24/7 and as of last week worked flawlessly. Three days ago I updated my Mac mini late 2012 to macOS Catalina. I started my app again and it worked. The next morning I encountered an EXC_BAD_ACCESS error which crashed the app (see below for more information). Restarted the app, error reappeared next morning and this morning, too.
Background: I don't expect hardware to have any influence since it was never any issue but still: I have a display attached, which through a connected power plug gets turned off at night and turned on again in the morning.
Here's the error:
CVDisplayLink (989): EXC_BAD_ACCESS (code=1, address=0x40)
In the log before the crash this message appears roughly 50 times, not sure if it has anything to do with the crash itself:
CVCGDisplayLink::setCurrentDisplay didn't find a valid display - falling back to 60Hz
and
Could not start the display link: -6661
I attached a screenshot with the threads in question and the last commands. I don't find any connection to my code... The app crashes always at the exact same location (I think).
Any help is highly appreciated! My next step is to leave the display on during the night and see if the error reappears. Even if no, that's no solution as I want the display to sleep during the night and other times...
Here's a crash report:
Process: FIPS [29505]
Path: /Applications/FIPS.app/Contents/MacOS/FIPS
Identifier: xxx.xxxxxxxx.FIPS
Version: 1.0 (1)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: FIPS [29505]
User ID: 502
Date/Time: 2020-03-29 23:28:13.101 +0200
OS Version: Mac OS X 10.15.4 (19E266)
Report Version: 12
Anonymous UUID: 571E7574-0586-B5D1-F56D-FDC0D2261660
Time Awake Since Boot: 86000 seconds
System Integrity Protection: enabled
Crashed Thread: 17 CVDisplayLink
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000040
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [29505]
VM Regions Near 0x40:
-->
__TEXT 000000010510d000-000000010517f000 [ 456K] r-x/r-x SM=COW /Applications/FIPS.app/Contents/MacOS/FIPS
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff6f55fdfa mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff6f560170 mach_msg + 60
2 com.apple.SkyLight 0x00007fff646fa418 SLSCopyManagedDisplayForSpace + 225
3 com.apple.AppKit 0x00007fff329ccc68 _NSDisplayUUIDForSpace + 42
4 com.apple.AppKit 0x00007fff33137f50 -[_NSFullScreenSpace screen] + 47
5 com.apple.AppKit 0x00007fff326a4b7e +[_NSFullScreenSpace visibleFullScreenSpaceOnScreen:] + 312
6 com.apple.AppKit 0x00007fff326a49fa -[NSScreen _menuBarHeight] + 76
7 com.apple.AppKit 0x00007fff326a4998 -[NSScreen _layoutFrame] + 71
8 com.apple.AppKit 0x00007fff326e314a -[NSScreen visibleFrame] + 44
9 com.apple.AppKit 0x00007fff326e23b6 -[NSWindow(NSWindowResizing) _resizableEdgesForGrowing:shrinking:] + 587
10 com.apple.AppKit 0x00007fff3287100b -[NSWindow(NSWindowResizing) _resizeDirectionForMouseLocation:] + 225
11 com.apple.AppKit 0x00007fff32870e86 -[NSWindow(NSWindowResizing) _edgeResizingCursorUpdate:atLocation:] + 227
12 com.apple.AppKit 0x00007fff32870a22 -[NSWindow(NSCursorRects) _setCursorForMouseLocation:] + 179
13 com.apple.AppKit 0x00007fff32781599 _NSWindowDisplayCycleUpdateStructuralRegions + 571
14 com.apple.AppKit 0x00007fff3277bcc4 __NSWindowGetDisplayCycleObserverForUpdateStructuralRegions_block_invoke + 420
15 com.apple.AppKit 0x00007fff32773e52 NSDisplayCycleObserverInvoke + 155
16 com.apple.AppKit 0x00007fff327739dc NSDisplayCycleFlush + 937
17 com.apple.QuartzCore 0x00007fff40f07454 CA::Transaction::run_commit_handlers(CATransactionPhase) + 106
18 com.apple.QuartzCore 0x00007fff40f06166 CA::Transaction::commit() + 230
19 com.apple.AppKit 0x00007fff3282fa01 __62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke + 266
20 com.apple.AppKit 0x00007fff32f4e950 ___NSRunLoopObserverCreateWithHandler_block_invoke + 41
21 com.apple.CoreFoundation 0x00007fff3542402c __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
22 com.apple.CoreFoundation 0x00007fff35423f5c __CFRunLoopDoObservers + 457
23 com.apple.CoreFoundation 0x00007fff354234f4 __CFRunLoopRun + 884
24 com.apple.CoreFoundation 0x00007fff35422b23 CFRunLoopRunSpecific + 466
25 com.apple.HIToolbox 0x00007fff34044abd RunCurrentEventLoopInMode + 292
26 com.apple.HIToolbox 0x00007fff340447d5 ReceiveNextEventCommon + 584
27 com.apple.HIToolbox 0x00007fff34044579 _BlockUntilNextEventMatchingListInModeWithFilter + 64
28 com.apple.AppKit 0x00007fff3268fc99 _DPSNextEvent + 883
29 com.apple.AppKit 0x00007fff3268e4e0 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352
30 com.apple.AppKit 0x00007fff326801ee -[NSApplication run] + 658
31 com.apple.AppKit 0x00007fff32651ff6 NSApplicationMain + 777
32 xxx.xxxxxxx.FIPS 0x000000010510fb49 main + 9 (AppDelegate.swift:12)
33 libdyld.dylib 0x00007fff6f41ecc9 start + 1
Thread 1:: JavaScriptCore bmalloc scavenger
0 libsystem_kernel.dylib 0x00007fff6f562882 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff6f627425 _pthread_cond_wait + 698
2 libc++.1.dylib 0x00007fff6c6fa623 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 93
3 com.apple.JavaScriptCore 0x00007fff39c42a75 bmalloc::Scavenger::threadRunLoop() + 741
4 com.apple.JavaScriptCore 0x00007fff39c42489 bmalloc::Scavenger::threadEntryPoint(bmalloc::Scavenger*) + 9
5 com.apple.JavaScriptCore 0x00007fff39c44b67 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(bmalloc::Scavenger*), bmalloc::Scavenger*> >(void*) + 39
6 libsystem_pthread.dylib 0x00007fff6f627109 _pthread_start + 148
7 libsystem_pthread.dylib 0x00007fff6f622b8b thread_start + 15
Thread 2:: com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x00007fff6f55fdfa mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff6f560170 mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff35424bf7 __CFRunLoopServiceMachPort + 247
3 com.apple.CoreFoundation 0x00007fff354236b1 __CFRunLoopRun + 1329
4 com.apple.CoreFoundation 0x00007fff35422b23 CFRunLoopRunSpecific + 466
5 com.apple.CFNetwork 0x00007fff33c5009a 0x7fff33c06000 + 303258
6 com.apple.Foundation 0x00007fff37ad1882 __NSThread__start__ + 1064
7 libsystem_pthread.dylib 0x00007fff6f627109 _pthread_start + 148
8 libsystem_pthread.dylib 0x00007fff6f622b8b thread_start + 15
Thread 3:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x00007fff6f55fdfa mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff6f560170 mach_msg + 60
2 com.apple.SkyLight 0x00007fff645a58d7 CGSSnarfAndDispatchDatagrams + 237
3 com.apple.SkyLight 0x00007fff647d55a5 SLSGetNextEventRecordInternal + 83
4 com.apple.SkyLight 0x00007fff64673fbe SLEventCreateNextEvent + 136
5 com.apple.HIToolbox 0x00007fff34051da6 PullEventsFromWindowServerOnConnection(unsigned int, unsigned char, __CFMachPortBoost*) + 268
6 com.apple.HIToolbox 0x00007fff34051c72 MessageHandler(__CFMachPort*, void*, long, void*) + 48
7 com.apple.CoreFoundation 0x00007fff35453983 __CFMachPortPerform + 250
8 com.apple.CoreFoundation 0x00007fff35425003 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
9 com.apple.CoreFoundation 0x00007fff35424f52 __CFRunLoopDoSource1 + 541
10 com.apple.CoreFoundation 0x00007fff35423a6c __CFRunLoopRun + 2284
11 com.apple.CoreFoundation 0x00007fff35422b23 CFRunLoopRunSpecific + 466
12 com.apple.AppKit 0x00007fff328315b4 _NSEventThread + 132
13 libsystem_pthread.dylib 0x00007fff6f627109 _pthread_start + 148
14 libsystem_pthread.dylib 0x00007fff6f622b8b thread_start + 15
Thread 4:: com.apple.coreanimation.render-server
0 libsystem_kernel.dylib 0x00007fff6f55fdfa mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff6f560170 mach_msg + 60
2 com.apple.QuartzCore 0x00007fff40f4f1c2 CA::Render::Server::server_thread(void*) + 496
3 com.apple.QuartzCore 0x00007fff40f4efc3 thread_fun(void*) + 25
4 libsystem_pthread.dylib 0x00007fff6f627109 _pthread_start + 148
5 libsystem_pthread.dylib 0x00007fff6f622b8b thread_start + 15
Thread 5:: com.apple.coreaudio.AQClient
0 libsystem_kernel.dylib 0x00007fff6f55fdfa mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff6f560170 mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff35424bf7 __CFRunLoopServiceMachPort + 247
3 com.apple.CoreFoundation 0x00007fff354236b1 __CFRunLoopRun + 1329
4 com.apple.CoreFoundation 0x00007fff35422b23 CFRunLoopRunSpecific + 466
5 com.apple.audio.toolbox.AudioToolbox 0x00007fff337a44cc GenericRunLoopThread::Entry(void*) + 166
6 libAudioToolboxUtility.dylib 0x00007fff6bda96c9 CAPThread::Entry(CAPThread*) + 77
7 libsystem_pthread.dylib 0x00007fff6f627109 _pthread_start + 148
8 libsystem_pthread.dylib 0x00007fff6f622b8b thread_start + 15
Thread 6:
0 libsystem_kernel.dylib 0x00007fff6f55fe36 semaphore_wait_trap + 10
1 com.apple.audio.caulk 0x00007fff68f6ab16 caulk::mach::semaphore::wait() + 16
2 com.apple.audio.caulk 0x00007fff68f6a9b2 caulk::semaphore::timed_wait(double) + 106
3 com.apple.audio.caulk 0x00007fff68f6a7c4 caulk::concurrent::details::worker_thread::run() + 30
4 com.apple.audio.caulk 0x00007fff68f6a1e4 void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::*)(), std::__1::tuple<caulk::concurrent::details::worker_thread*> > >(void*) + 45
5 libsystem_pthread.dylib 0x00007fff6f627109 _pthread_start + 148
6 libsystem_pthread.dylib 0x00007fff6f622b8b thread_start + 15
Thread 7:: AMCP Logging Spool
0 libsystem_kernel.dylib 0x00007fff6f55fe36 semaphore_wait_trap + 10
1 com.apple.audio.caulk 0x00007fff68f6ab16 caulk::mach::semaphore::wait() + 16
2 com.apple.audio.caulk 0x00007fff68f6a9b2 caulk::semaphore::timed_wait(double) + 106
3 com.apple.audio.caulk 0x00007fff68f6a7c4 caulk::concurrent::details::worker_thread::run() + 30
4 com.apple.audio.caulk 0x00007fff68f6a1e4 void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::*)(), std::__1::tuple<caulk::concurrent::details::worker_thread*> > >(void*) + 45
5 libsystem_pthread.dylib 0x00007fff6f627109 _pthread_start + 148
6 libsystem_pthread.dylib 0x00007fff6f622b8b thread_start + 15
Thread 8:
0 libsystem_pthread.dylib 0x00007fff6f622b68 start_wqthread + 0
Thread 9:
0 libsystem_pthread.dylib 0x00007fff6f622b68 start_wqthread + 0
Thread 10:
0 libsystem_pthread.dylib 0x00007fff6f622b68 start_wqthread + 0
Thread 11:
0 libsystem_pthread.dylib 0x00007fff6f622b68 start_wqthread + 0
Thread 12:
0 libsystem_pthread.dylib 0x00007fff6f622b68 start_wqthread + 0
Thread 13:
0 libsystem_pthread.dylib 0x00007fff6f622b68 start_wqthread + 0
Thread 14:
0 libsystem_pthread.dylib 0x00007fff6f622b68 start_wqthread + 0
Thread 15:: CVDisplayLink
0 libsystem_kernel.dylib 0x00007fff6f562882 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff6f627457 _pthread_cond_wait + 748
2 com.apple.CoreVideo 0x00007fff373d7d2b CVDisplayLink::waitUntil(unsigned long long) + 229
3 com.apple.CoreVideo 0x00007fff373d7238 CVDisplayLink::runIOThread() + 482
4 libsystem_pthread.dylib 0x00007fff6f627109 _pthread_start + 148
5 libsystem_pthread.dylib 0x00007fff6f622b8b thread_start + 15
Thread 16:: CVDisplayLink
0 libsystem_kernel.dylib 0x00007fff6f562882 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff6f627457 _pthread_cond_wait + 748
2 com.apple.CoreVideo 0x00007fff373d7d2b CVDisplayLink::waitUntil(unsigned long long) + 229
3 com.apple.CoreVideo 0x00007fff373d7238 CVDisplayLink::runIOThread() + 482
4 libsystem_pthread.dylib 0x00007fff6f627109 _pthread_start + 148
5 libsystem_pthread.dylib 0x00007fff6f622b8b thread_start + 15
Thread 17 Crashed:: CVDisplayLink
0 com.apple.CoreVideo 0x00007fff373d76ab CVCGDisplayLink::getDisplayTimes(unsigned long long*, unsigned long long*, unsigned long long*) + 65
1 com.apple.CoreVideo 0x00007fff373d7525 CVHWTime::update(double, bool*, bool*) + 57
2 com.apple.CoreVideo 0x00007fff373d73de CVXTime::update() + 44
3 com.apple.CoreVideo 0x00007fff373d711c CVDisplayLink::runIOThread() + 198
4 libsystem_pthread.dylib 0x00007fff6f627109 _pthread_start + 148
5 libsystem_pthread.dylib 0x00007fff6f622b8b thread_start + 15
Thread 17 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000600001d56c38 rcx: 0x00007000060c8da8 rdx: 0x00007000060c8db0
rdi: 0x00007f9e1d18fe20 rsi: 0x00007000060c8db8 rbp: 0x00007000060c8d90 rsp: 0x00007000060c8d60
r8: 0x000000000009ad1d r9: 0x00007f9e1d18fe50 r10: 0x00007f9e1d18fe58 r11: 0x0000000000000206
r12: 0x00007000060c8db8 r13: 0x0000000000000000 r14: 0x00007000060c8e07 r15: 0x00007000060c8db0
rip: 0x00007fff373d76ab rfl: 0x0000000000010246 cr2: 0x0000000000000000
Logical CPU: 0
Error Code: 0x00000000
Trap Number: 0
Followed by a million lines of Binary Images followed by this:
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 54
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 16801343
thread_create: 0
thread_set_state: 967
VM Region Summary:
ReadOnly portion of Libraries: Total=778.7M resident=0K(0%) swapped_out_or_unallocated=778.7M(100%)
Writable regions: Total=758.5M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=758.5M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate framework 1024K 8
Activity Tracing 256K 1
CG backing stores 440K 2
CG image 52K 9
CoreAnimation 2940K 146
CoreData Object IDs 4100K 2
CoreGraphics 8K 1
CoreImage 12K 3
CoreUI image data 392K 7
Foundation 956K 5
IOKit 7940K 1
Image IO 8188K 32
Kernel Alloc Once 8K 1
MALLOC 593.3M 211
MALLOC guard page 48K 11
MALLOC_NANO (reserved) 128.0M 1 reserved VM address space (unallocated)
Memory Tag 242 12K 1
Memory Tag 251 16K 1
SQLite page cache 64K 1
STACK GUARD 56.1M 18
Stack 17.1M 18
VM_ALLOCATE 412K 28
WebKit Malloc 8604K 18
__DATA 55.1M 502
__DATA_CONST 637K 21
__FONT_DATA 4K 1
__GLSLBUILTINS 5176K 1
__LINKEDIT 392.2M 17
__OBJC_RO 32.2M 1
__OBJC_RW 1892K 2
__TEXT 386.5M 487
__UNICODE 564K 1
libnetwork 1664K 24
mapped file 378.0M 74
shared memory 668K 18
=========== ======= =======
TOTAL 2.0G 1675
TOTAL, minus reserved VM space 1.9G 1675
After adding a symbolic breakpoint to "getDisplayTimes" with bt and restarting the app the code immediately stops to show this situation:
Log:
* thread #17, name = 'CVDisplayLink', stop reason = breakpoint 1.1
* frame #0: 0x00007fff3910a66a CoreVideo`CVCGDisplayLink::getDisplayTimes(unsigned long long*, unsigned long long*, unsigned long long*)
frame #1: 0x00007fff3910a525 CoreVideo`CVHWTime::update(double, bool*, bool*) + 57
frame #2: 0x00007fff3910a3de CoreVideo`CVXTime::update() + 44
frame #3: 0x00007fff3910a11c CoreVideo`CVDisplayLink::runIOThread() + 198
frame #4: 0x0000000101047c65 libsystem_pthread.dylib`_pthread_start + 148
frame #5: 0x00000001010434af libsystem_pthread.dylib`thread_start + 15
and this:
I haven’t received any answer from Apple (it’s been months!) so I went ahead and downgraded (which I did not want to do) to Mojave. I haven’t had a single hic up or problem since. I am bewildered.

Unknown exception and crash

My application crashes when I try to scroll the tableview very fast or reload the data from remote. Everything seems to be working fine, when I let the remote fetch happen first and then scroll the tableview. I have no idea what the crash log below means. It just works fine sometimes and crashes sometime.
Incident Identifier: 710A120C-97E3-45C8-A7B2-E6A7BD98BC1A
CrashReporter Key: 8bd54d8428128b9e6b8c04d59b86c40cccf33457
Hardware Model: iPhone5,2
Process: MyApp [5294]
Path: /var/mobile/Applications/B6ED5B19-B8D7-4146-90A2-F709AE35292F/MyApp.app/MyApp
Identifier: MyApp
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-02-26 16:45:27.693 +0200
OS Version: iOS 6.1.2 (10B146)
Report Version: 104
Exception Type: EXC_CRASH (SIGSEGV)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 1
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libobjc.A.dylib 0x3c3f658a _cache_getImp + 10
1 libobjc.A.dylib 0x3c3f6fa0 lookUpMethod + 24
2 libobjc.A.dylib 0x3c3f81e2 class_respondsToSelector + 26
3 CoreFoundation 0x3470a750 objectIsKindOfClass + 32
4 CoreFoundation 0x3470a49c __handleUncaughtException + 64
5 libobjc.A.dylib 0x3c3fba46 _objc_terminate() + 126
6 libc++abi.dylib 0x3be48118 safe_handler_caller(void (*)()) + 76
7 libc++abi.dylib 0x3be481b0 std::terminate() + 16
8 libc++abi.dylib 0x3be49626 __cxa_rethrow + 90
9 libobjc.A.dylib 0x3c3fb9b0 objc_exception_rethrow + 8
10 CoreFoundation 0x3465129c CFRunLoopRunSpecific + 452
11 CoreFoundation 0x346510c4 CFRunLoopRunInMode + 100
12 GraphicsServices 0x3822f336 GSEventRunModal + 70
13 UIKit 0x3656d2b4 UIApplicationMain + 1116
14 MyApp 0x000910a2 0x44000 + 315554
15 MyApp 0x0004668c 0x44000 + 9868
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1 Crashed:
0 libsystem_kernel.dylib 0x3c8df5d0 kevent64 + 24
1 libdispatch.dylib 0x3c81ad22 _dispatch_mgr_invoke + 806
2 libdispatch.dylib 0x3c816374 _dispatch_mgr_thread + 32
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x3c8dee30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3c8defd0 mach_msg + 48
2 CoreFoundation 0x346df2b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x346de02c __CFRunLoopRun + 900
4 CoreFoundation 0x34651238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x346510c4 CFRunLoopRunInMode + 100
6 WebCore 0x3a650390 RunWebThread(void*) + 440
7 libsystem_c.dylib 0x3c8480de _pthread_start + 306
8 libsystem_c.dylib 0x3c847fa4 thread_start + 4
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x3c8dee30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3c8defd0 mach_msg + 48
2 CoreFoundation 0x346df2b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x346de02c __CFRunLoopRun + 900
4 CoreFoundation 0x34651238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x346510c4 CFRunLoopRunInMode + 100
6 Foundation 0x34f9e888 +[NSURLConnection(Loader) _resourceLoadLoop:] + 304
7 Foundation 0x3502222c __NSThread__main__ + 968
8 libsystem_c.dylib 0x3c8480de _pthread_start + 306
9 libsystem_c.dylib 0x3c847fa4 thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x3c8efd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3c83dad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3c83d7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3c83d680 start_wqthread + 4
Thread 5:
0 libsystem_kernel.dylib 0x3c8dee30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3c8defd0 mach_msg + 48
2 CoreFoundation 0x346df2b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x346de02c __CFRunLoopRun + 900
4 CoreFoundation 0x34651238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x346510c4 CFRunLoopRunInMode + 100
6 Foundation 0x34f755be -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x35018c40 -[NSRunLoop(NSRunLoop) run] + 76
8 MyApp 0x0016b900 0x44000 + 1210624
9 Foundation 0x3502222c __NSThread__main__ + 968
10 libsystem_c.dylib 0x3c8480de _pthread_start + 306
11 libsystem_c.dylib 0x3c847fa4 thread_start + 4
Thread 6:
0 libsystem_kernel.dylib 0x3c8dee30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3c8defd0 mach_msg + 48
2 CoreFoundation 0x346df2b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x346de02c __CFRunLoopRun + 900
4 CoreFoundation 0x34651238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x346510c4 CFRunLoopRunInMode + 100
6 Foundation 0x34f755be -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x35018c40 -[NSRunLoop(NSRunLoop) run] + 76
8 MyApp 0x000e63d0 0x44000 + 664528
9 Foundation 0x3502222c __NSThread__main__ + 968
10 libsystem_c.dylib 0x3c8480de _pthread_start + 306
11 libsystem_c.dylib 0x3c847fa4 thread_start + 4
Thread 7 name: com.apple.CFSocket.private
Thread 7:
0 libsystem_kernel.dylib 0x3c8ef594 __select + 20
1 CoreFoundation 0x346e3474 __CFSocketManager + 676
2 libsystem_c.dylib 0x3c8480de _pthread_start + 306
3 libsystem_c.dylib 0x3c847fa4 thread_start + 4
Thread 8:
0 libsystem_kernel.dylib 0x3c8dee30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3c8defd0 mach_msg + 48
2 CoreFoundation 0x346df2b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x346de02c __CFRunLoopRun + 900
4 CoreFoundation 0x34651238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x346afc46 CFRunLoopRun + 94
6 MyApp 0x00115d7e 0x44000 + 859518
7 Foundation 0x3502222c __NSThread__main__ + 968
8 libsystem_c.dylib 0x3c8480de _pthread_start + 306
9 libsystem_c.dylib 0x3c847fa4 thread_start + 4
Thread 9:
0 libsystem_kernel.dylib 0x3c8efd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3c83dad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3c83d7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3c83d680 start_wqthread + 4
Thread 10:
0 libsystem_kernel.dylib 0x3c8efd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3c83dad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3c83d7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3c83d680 start_wqthread + 4
Thread 11 name: JavaScriptCore::BlockFree
Thread 11:
0 libsystem_kernel.dylib 0x3c8ef08c __psynch_cvwait + 24
1 libsystem_c.dylib 0x3c840afc _pthread_cond_wait + 644
2 libsystem_c.dylib 0x3c840870 pthread_cond_timedwait + 40
3 JavaScriptCore 0x38625df6 WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 102
4 JavaScriptCore 0x38738532 JSC::BlockAllocator::blockFreeingThreadMain() + 78
5 JavaScriptCore 0x3874b030 WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_c.dylib 0x3c8480de _pthread_start + 306
7 libsystem_c.dylib 0x3c847fa4 thread_start + 4
Thread 12 name: JavaScriptCore::Marking
Thread 12:
0 libsystem_kernel.dylib 0x3c8ef08c __psynch_cvwait + 24
1 libsystem_c.dylib 0x3c840afc _pthread_cond_wait + 644
2 libsystem_c.dylib 0x3c84acf8 pthread_cond_wait + 36
3 JavaScriptCore 0x386cb6dc JSC::SlotVisitor::drainFromShared(JSC::SlotVisitor::SharedDrainMode) + 140
4 JavaScriptCore 0x386cb620 JSC::MarkStackThreadSharedData::markingThreadMain() + 140
5 JavaScriptCore 0x3874b030 WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_c.dylib 0x3c8480de _pthread_start + 306
7 libsystem_c.dylib 0x3c847fa4 thread_start + 4
Thread 13 name: WebCore: CFNetwork Loader
Thread 13:
0 libsystem_kernel.dylib 0x3c8dee30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3c8defd0 mach_msg + 48
2 CoreFoundation 0x346df2b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x346de02c __CFRunLoopRun + 900
4 CoreFoundation 0x34651238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x346510c4 CFRunLoopRunInMode + 100
6 WebCore 0x3a6eaccc WebCore::runLoaderThread(void*) + 140
7 JavaScriptCore 0x3874b030 WTF::wtfThreadEntryPoint(void*) + 12
8 libsystem_c.dylib 0x3c8480de _pthread_start + 306
9 libsystem_c.dylib 0x3c847fa4 thread_start + 4
Thread 14:
0 libsystem_kernel.dylib 0x3c8efd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3c83dad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3c83d7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3c83d680 start_wqthread + 4
Thread 1 crashed with ARM Thread State (32-bit):
r0: 0x00000004 r1: 0x00000000 r2: 0x00000000 r3: 0x0042c714
r4: 0x00000001 r5: 0x00000000 r6: 0x0042c744 r7: 0x0042c764
r8: 0x00000000 r9: 0x0042c6c8 r10: 0x3e3a2188 r11: 0x00000002
ip: 0x00000171 sp: 0x0042c6d0 lr: 0x3c81ad27 pc: 0x3c8df5d0
cpsr: 0x60000010
I would be really happy if anybody could explain me what this crash log could relate to and how I could solve it. Many many thanks to all those who are willing to help others.
Seems to me that it's dangling pointer, and you're sending message to it.
As MikeD said, use breakpoint on exception if it can help. But it's not 100% reliable since you get a SIGSEGV and not a SIGABRT. And the exception throw is not really the cause of the crash, just a border effect.
Edit
Ok: In your log crash, it says that libsystem_kernel.dylib has crashed in a kevent call. That won't help you since this is private and opaque, and you can be 100% sure this lib do its job well. This can appears because you have used (unintentionally) a space memory where you should not write into. Like with a dangling pointer. Let's say you have allocated memory to 0x2000 and you have a pointer pointing to this memory, if you freed the memory but still using this pointer to this address, if someone else (like libsystem_kernel) use it, and you change some data in the same time (because of your dangling pointer). Then the other side will use data corrupted, and some random behavior will occur. That's why if you analyze literally your crash log, you'll do wrong statement. Because kevent from libSystem is stable.
By the way you have thread 1 who crashed, but look into thread 0, it was trying to raise an exception too, but it didn't get time to do it. This can occur because of data corrupted too.
That's why I recommend you to make another crash, and compare it to this one. If the crash log are the same, then i was totally wrong. If the crash log are different, this is a dangling pointer.

XCode 4.5 quit unexpectedly ASSERTION FAILURE

My XCode crashes and crashes and crashes and i can't open my project here is the error that i receive
Process: Xcode [883]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 4.5 (1839)
Build Info: IDEApplication-1839000000000000~3
App Item ID: 497799835
App External ID: 10747437
Code Type: X86-64 (Native)
Parent Process: launchd [110]
Date/Time: 2012-10-04 14:53:34.748 +0300
OS Version: Mac OS X 10.7.5 (11G56)
Report Version: 9
Interval Since Last Report: 2021 sec
Crashes Since Last Report: 9
Per-App Interval Since Last Report: 358 sec
Per-App Crashes Since Last Report: 9
Anonymous UUID: E9E2BB86-81A1-404E-90D8-B7F32880697C
Crashed Thread: 13 Dispatch queue: com.apple.root.default-priority
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 4G182
ASSERTION FAILURE in /SourceCache/IDEFoundation/IDEFoundation-1877/Framework/Classes/Model/SourceControl/IDESourceControlWorkspaceMonitor.m:1054
Details: Attempted to add repository (IDESourceControlRepository) Name:192.168.1, Type:Subversion, Location:svn://192.168.1.20 when (IDESourceControlRepository) Name:192.168.1, Type:Subversion, Location:svn://192.168.1.20 already existed.
Object: <IDESourceControlWorkspaceMonitor: 0x402515500>
Method: -_findWorkingTreesForFilePath:
Thread: <NSThread: 0x402c1fe40>{name = (null), num = 11}
Hints: None
Backtrace:
0 0x000000010e6ad7ef -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit)
1 0x000000010d9752a5 _DVTAssertionFailureHandler (in DVTFoundation)
2 0x000000010e20bcfd __block_global_5 (in IDEFoundation)
3 0x00007fff922a3ae1 -[NSBlockOperation main] (in Foundation)
4 0x00007fff9226a6b4 -[__NSOperationInternal start] (in Foundation)
5 0x00007fff9227d912 ____NSOQSchedule_block_invoke_2 (in Foundation)
6 0x00007fff8c619a82 _dispatch_call_block_and_release (in libdispatch.dylib)
7 0x00007fff8c61a961 _dispatch_worker_thread2 (in libdispatch.dylib)
8 0x00007fff937ac3da _pthread_wqthread (in libsystem_c.dylib)
9 0x00007fff937adb85 start_wqthread (in libsystem_c.dylib)
objc[883]: garbage collection is ON
abort() called
Thread 0:: Dispatch queue: com.apple.main-thread
0 com.apple.CoreFoundation 0x00007fff8b25c27d CFAllocatorDeallocate + 221
1 com.apple.CoreFoundation 0x00007fff8b28b4c6 CFRunLoopRunSpecific + 294
2 com.apple.HIToolbox 0x00007fff88a1a2bf RunCurrentEventLoopInMode + 277
3 com.apple.HIToolbox 0x00007fff88a214bf ReceiveNextEventCommon + 181
4 com.apple.HIToolbox 0x00007fff88a213fa BlockUntilNextEventMatchingListInMode + 62
5 com.apple.AppKit 0x00007fff8a013779 _DPSNextEvent + 659
6 com.apple.AppKit 0x00007fff8a01307d -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135
7 com.apple.AppKit 0x00007fff8a00f9b9 -[NSApplication run] + 470
8 com.apple.AppKit 0x00007fff8a28beac NSApplicationMain + 867
9 com.apple.dt.Xcode 0x000000010d8e6d17 0x10d8e5000 + 7447
10 com.apple.dt.Xcode 0x000000010d8e6ca8 0x10d8e5000 + 7336
Thread 1:: Dispatch queue: IDE Source Control Workspace Scanning Queue
0 libsystem_kernel.dylib 0x00007fff89c1fbca __psynch_cvwait + 10
1 libsystem_c.dylib 0x00007fff937ae2a6 _pthread_cond_wait + 890
2 com.apple.Foundation 0x00007fff922aba5c -[NSCondition waitUntilDate:] + 371
3 com.apple.Foundation 0x00007fff9227522e -[NSConditionLock lockWhenCondition:beforeDate:] + 251
4 com.apple.dt.IDEFoundation 0x000000010e20b782 __block_global_3 + 1154
5 com.apple.dt.IDEFoundation 0x000000010e172d00 -[IDESourceControlManager remoteRootPathForFilePath:sourceControlExtension:completionBlock:] + 1277
6 com.apple.dt.IDEFoundation 0x000000010e16378a -[IDESourceControlManager workingTreeRootForFilePath:sourceControlExtension:completionBlock:] + 1591
7 com.apple.dt.IDEFoundation 0x000000010e1633fc -[IDESourceControlManager workingTreeRootForFilePath:sourceControlExtension:completionBlock:] + 681
8 com.apple.dt.IDEFoundation 0x000000010e11aa99 -[IDESourceControlManager workingTreeRootForFilePath:completionBlock:] + 130
9 com.apple.dt.IDEFoundation 0x000000010e20b2f3 __65-[IDESourceControlWorkspaceMonitor _findWorkingTreesForFilePath:]_block_invoke_0 + 602
10 com.apple.dt.IDEFoundation 0x000000010e1c0a3e __66-[IDESourceControlManager workingTreeForFilePath:completionBlock:]_block_invoke_0426 + 1411
11 com.apple.Foundation 0x00007fff922a3ae1 -[NSBlockOperation main] + 116
12 com.apple.dt.IDEFoundation 0x000000010e159232 -[IDESourceControlManager performRequest:waitUntilFinished:withCompletionBlock:] + 761
13 com.apple.dt.IDEFoundation 0x000000010e172b47 -[IDESourceControlManager remoteRootPathForFilePath:sourceControlExtension:completionBlock:] + 836
14 com.apple.dt.IDEFoundation 0x000000010e16378a -[IDESourceControlManager workingTreeRootForFilePath:sourceControlExtension:completionBlock:] + 1591
15 com.apple.dt.IDEFoundation 0x000000010e1196b6 -[IDESourceControlManager workingTreeForFilePath:completionBlock:] + 811
16 com.apple.dt.IDEFoundation 0x000000010e119583 -[IDESourceControlManager workingTreeForFilePath:completionBlock:] + 504
17 com.apple.dt.IDEFoundation 0x000000010e11916f -[IDESourceControlWorkspaceMonitor _findWorkingTreesForFilePath:] + 268
18 libdispatch.dylib 0x00007fff8c619a82 _dispatch_call_block_and_release + 18
19 libdispatch.dylib 0x00007fff8c61b2d2 _dispatch_queue_drain + 264
20 libdispatch.dylib 0x00007fff8c61b12e _dispatch_queue_invoke + 54
21 libdispatch.dylib 0x00007fff8c61a928 _dispatch_worker_thread2 + 198
22 libsystem_c.dylib 0x00007fff937ac3da _pthread_wqthread + 316
23 libsystem_c.dylib 0x00007fff937adb85 start_wqthread + 13
Thread 2:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff89c207e6 kevent + 10
1 libdispatch.dylib 0x00007fff8c61b786 _dispatch_mgr_invoke + 923
2 libdispatch.dylib 0x00007fff8c61a316 _dispatch_mgr_thread + 54
Thread 3:
0 libsystem_kernel.dylib 0x00007fff89c20192 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff937ac594 _pthread_wqthread + 758
2 libsystem_c.dylib 0x00007fff937adb85 start_wqthread + 13
Thread 4:: Dispatch queue: com.apple.root.low-priority
0 com.apple.Foundation 0x00007fff92228893 _NSResolveSymlinksInPathUsingCache + 857
1 com.apple.Foundation 0x00007fff922283f9 -[NSString(NSPathUtilities) _stringByResolvingSymlinksInPathUsingCache:] + 124
2 com.apple.dt.IDEFoundation 0x000000010e1150e3 -[NSString(IDEIndexAdditions) ideIndex_stringByResolvingSymlinksInPath] + 54
3 com.apple.dt.IDEFoundation 0x000000010e112606 +[IDEIndexingEngine runLoadJob:] + 315
4 com.apple.dt.IDEFoundation 0x000000010e135e0b -[IDEIndexingJob run] + 99
5 com.apple.dt.IDEFoundation 0x000000010e25c0fa __40-[IDEIndexingJobScheduler _scheduleJobs]_block_invoke_0 + 31
6 com.apple.dt.DVTFoundation 0x000000010d998d20 __DVTDispatchAsync_block_invoke_0 + 16
7 libdispatch.dylib 0x00007fff8c619a82 _dispatch_call_block_and_release + 18
8 libdispatch.dylib 0x00007fff8c61a961 _dispatch_worker_thread2 + 255
9 libsystem_c.dylib 0x00007fff937ac3da _pthread_wqthread + 316
10 libsystem_c.dylib 0x00007fff937adb85 start_wqthread + 13
Thread 5:: Dispatch queue: com.apple.root.default-priority
0 libsystem_kernel.dylib 0x00007fff89c1e6b6 semaphore_wait_trap + 10
1 libdispatch.dylib 0x00007fff8c61d0c4 _dispatch_group_wait_slow + 91
2 com.apple.dt.IDEFoundation 0x000000010e20ae12 __51-[IDESourceControlWorkspaceMonitor _startScanTimer]_block_invoke_0 + 65
3 com.apple.dt.DVTFoundation 0x000000010d999370 __DVTDispatchSourceSetEventHandler_block_invoke_0 + 16
4 libdispatch.dylib 0x00007fff8c61e497 _dispatch_source_invoke + 649
5 libdispatch.dylib 0x00007fff8c61b13f _dispatch_queue_invoke + 71
6 libdispatch.dylib 0x00007fff8c61a928 _dispatch_worker_thread2 + 198
7 libsystem_c.dylib 0x00007fff937ac3da _pthread_wqthread + 316
8 libsystem_c.dylib 0x00007fff937adb85 start_wqthread + 13
Thread 6:: com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x00007fff89c1e67a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff89c1dd71 mach_msg + 73
2 com.apple.CoreFoundation 0x00007fff8b28350c __CFRunLoopServiceMachPort + 188
3 com.apple.CoreFoundation 0x00007fff8b28bc74 __CFRunLoopRun + 1204
4 com.apple.CoreFoundation 0x00007fff8b28b486 CFRunLoopRunSpecific + 230
5 com.apple.Foundation 0x00007fff92287fd7 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 335
6 com.apple.Foundation 0x00007fff9227c72a -[NSThread main] + 68
7 com.apple.Foundation 0x00007fff9227c6a2 __NSThread__main__ + 1575
8 libsystem_c.dylib 0x00007fff937aa8bf _pthread_start + 335
9 libsystem_c.dylib 0x00007fff937adb75 thread_start + 13
Thread 7:: com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x00007fff89c1fdf2 __select + 10
1 com.apple.CoreFoundation 0x00007fff8b2d4c8b __CFSocketManager + 1355
2 libsystem_c.dylib 0x00007fff937aa8bf _pthread_start + 335
3 libsystem_c.dylib 0x00007fff937adb75 thread_start + 13
Thread 8:
0 libsystem_kernel.dylib 0x00007fff89c1e67a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff89c1dd71 mach_msg + 73
2 com.apple.CoreFoundation 0x00007fff8b28350c __CFRunLoopServiceMachPort + 188
3 com.apple.CoreFoundation 0x00007fff8b28bc74 __CFRunLoopRun + 1204
4 com.apple.CoreFoundation 0x00007fff8b28b486 CFRunLoopRunSpecific + 230
5 com.apple.DTDeviceKit 0x00000001159b5cff -[DTDKRemoteDeviceDataListener listenerThreadImplementation] + 298
6 com.apple.Foundation 0x00007fff9227c72a -[NSThread main] + 68
7 com.apple.Foundation 0x00007fff9227c6a2 __NSThread__main__ + 1575
8 libsystem_c.dylib 0x00007fff937aa8bf _pthread_start + 335
9 libsystem_c.dylib 0x00007fff937adb75 thread_start + 13
Thread 9:
0 libsystem_kernel.dylib 0x00007fff89c20192 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff937ac594 _pthread_wqthread + 758
2 libsystem_c.dylib 0x00007fff937adb85 start_wqthread + 13
Thread 10:: DYMobileDeviceManager
0 libsystem_kernel.dylib 0x00007fff89c1e67a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff89c1dd71 mach_msg + 73
2 com.apple.CoreFoundation 0x00007fff8b28350c __CFRunLoopServiceMachPort + 188
3 com.apple.CoreFoundation 0x00007fff8b28bc74 __CFRunLoopRun + 1204
4 com.apple.CoreFoundation 0x00007fff8b28b486 CFRunLoopRunSpecific + 230
5 com.apple.Foundation 0x00007fff9222df7b -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 267
6 com.apple.Foundation 0x00007fff9222de67 -[NSRunLoop(NSRunLoop) run] + 62
7 com.apple.Foundation 0x00007fff9227c72a -[NSThread main] + 68
8 com.apple.Foundation 0x00007fff9227c6a2 __NSThread__main__ + 1575
9 libsystem_c.dylib 0x00007fff937aa8bf _pthread_start + 335
10 libsystem_c.dylib 0x00007fff937adb75 thread_start + 13
Thread 11:
0 libsystem_c.dylib 0x00007fff937adb78 start_wqthread + 0
Thread 12:
0 libsystem_kernel.dylib 0x00007fff89c20192 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff937ac594 _pthread_wqthread + 758
2 libsystem_c.dylib 0x00007fff937adb85 start_wqthread + 13
Thread 13 Crashed:: Dispatch queue: com.apple.root.default-priority
0 libsystem_kernel.dylib 0x00007fff89c1fce2 __pthread_kill + 10
1 libsystem_c.dylib 0x00007fff937ac7d2 pthread_kill + 95
2 libsystem_c.dylib 0x00007fff9379da7a abort + 143
3 com.apple.dt.IDEKit 0x000000010e6ad25f +[IDEAssertionHandler _handleAssertionWithLogString:] + 596
4 com.apple.dt.DVTFoundation 0x000000010d9752a5 _DVTAssertionFailureHandler + 128
5 com.apple.dt.IDEFoundation 0x000000010e20bcfd __block_global_5 + 696
6 com.apple.Foundation 0x00007fff922a3ae1 -[NSBlockOperation main] + 116
7 com.apple.Foundation 0x00007fff9226a6b4 -[__NSOperationInternal start] + 705
8 com.apple.Foundation 0x00007fff9227d912 ____NSOQSchedule_block_invoke_2 + 124
9 libdispatch.dylib 0x00007fff8c619a82 _dispatch_call_block_and_release + 18
10 libdispatch.dylib 0x00007fff8c61a961 _dispatch_worker_thread2 + 255
11 libsystem_c.dylib 0x00007fff937ac3da _pthread_wqthread + 316
12 libsystem_c.dylib 0x00007fff937adb85 start_wqthread + 13
Thread 14:: CVDisplayLink
0 libsystem_kernel.dylib 0x00007fff89c1fbca __psynch_cvwait + 10
1 libsystem_c.dylib 0x00007fff937ae2a6 _pthread_cond_wait + 890
2 com.apple.CoreVideo 0x00007fff888401cb CVDisplayLink::waitUntil(unsigned long long) + 279
3 com.apple.CoreVideo 0x00007fff8883f631 CVDisplayLink::runIOThread() + 559
4 com.apple.CoreVideo 0x00007fff8883f3e9 _ZL13startIOThreadPv + 148
5 libsystem_c.dylib 0x00007fff937aa8bf _pthread_start + 335
6 libsystem_c.dylib 0x00007fff937adb75 thread_start + 13
Thread 15:
0 libsystem_kernel.dylib 0x00007fff89c1e67a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff89c1dd71 mach_msg + 73
2 com.apple.CoreFoundation 0x00007fff8b28350c __CFRunLoopServiceMachPort + 188
3 com.apple.CoreFoundation 0x00007fff8b28bc74 __CFRunLoopRun + 1204
4 com.apple.CoreFoundation 0x00007fff8b28b486 CFRunLoopRunSpecific + 230
5 com.apple.DebugSymbols 0x00007fff8bf082f2 _ZL20SpotlightQueryThreadPv + 434
6 libsystem_c.dylib 0x00007fff937aa8bf _pthread_start + 335
7 libsystem_c.dylib 0x00007fff937adb75 thread_start + 13
Thread 16:
0 libsystem_kernel.dylib 0x00007fff89c1fe42 __semwait_signal + 10
1 libsystem_c.dylib 0x00007fff93760dea nanosleep + 164
2 com.apple.CoreSymbolication 0x00007fff87df23bb cleaner_thread_main(void*) + 42
3 libsystem_c.dylib 0x00007fff937aa8bf _pthread_start + 335
4 libsystem_c.dylib 0x00007fff937adb75 thread_start + 13
Thread 13 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000006 rcx: 0x00000001177159e8 rdx: 0x0000000000000000
rdi: 0x000000000000f023 rsi: 0x0000000000000006 rbp: 0x0000000117715a10 rsp: 0x00000001177159e8
r8: 0x00007fff78532fb8 r9: 0x00007f944651aee0 r10: 0x00007fff89c1fd0a r11: 0xffffff80002dad60
r12: 0x0000000402c4afb8 r13: 0x00007fff87cf9e80 r14: 0x0000000117716000 r15: 0x0000000117715b18
rip: 0x00007fff89c1fce2 rfl: 0x0000000000000206 cr2: 0x0000000101adc000
Logical CPU: 0
Binary Images:
0x10d8e5000 - 0x10d8e7fff com.apple.dt.Xcode (4.5 - 1839) <B5C20A97-D031-383A-8045-814DBC82546E> /Applications/Xcode.app/Contents/MacOS/Xcode
0x10d8f3000 - 0x10dc0eff7 com.apple.dt.DVTFoundation (4.5 - 1828) <EBED7760-2AF1-325D-AA67-308E33DF1EEF> /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/DVTFoundation
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 13
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 2591
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=277.5M resident=162.0M(58%) swapped_out_or_unallocated=115.5M(42%)
Writable regions: Total=17.2G written=33.8M(0%) resident=96.8M(1%) swapped_out=0K(0%) unallocated=17.1G(99%)
REGION TYPE VIRTUAL
=========== =======
CG backing stores 5492K
CG image 152K
CG raster data 684K
CG shared images 4432K
CoreAnimation 316K
CoreGraphics 16K
CoreImage 24K
CoreServices 1424K
IOKit 11.4M
JS JIT generated code 8K
JS JIT generated code (reserved) 1.0G reserved VM address space (unallocated)
MALLOC 384.8M
MALLOC (reserved) 15.8G reserved VM address space (unallocated)
MALLOC guard page 80K
Memory tag=240 4K
Memory tag=242 12K
Memory tag=243 4K
Memory tag=249 156K
Memory tag=251 68K
OpenCL 52K
OpenGL GLSL 1024K
SQLite page cache 960K
STACK GUARD 56.1M
Stack 15.7M
VM_ALLOCATE 17.5M
__CI_BITMAP 80K
__DATA 29.8M
__IMAGE 528K
__LINKEDIT 64.7M
__TEXT 212.8M
__UNICODE 544K
mapped file 82.5M
shared memory 17.3M
=========== =======
TOTAL 17.6G
TOTAL, minus reserved VM space 908.3M
Model: Macmini5,1, BootROM MM51.0077.B10, 2 processors, Intel Core i5, 2.3 GHz, 4 GB, SMC 1.76f0
Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 384 MB
Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80CE, 0x4D34373142353737334348532D4348392020
Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80CE, 0x4D34373142353737334348532D4348392020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xE4), Broadcom BCM43xx 1.0 (5.106.198.19.22)
Bluetooth: Version 4.0.8f17, 2 service, 18 devices, 1 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Serial ATA Device: TOSHIBA MK5065GSXF, 500.11 GB
USB Device: hub_device, 0x0424 (SMSC), 0x2513, 0xfa100000 / 2
USB Device: BRCM20702 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0xfa110000 / 3
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8281, 0xfa113000 / 6
USB Device: hub_device, 0x0424 (SMSC), 0x2513, 0xfd100000 / 2
USB Device: USB Mouse, 0x09da (A-FOUR TECH CO., LTD.), 0x000a, 0xfd120000 / 5
USB Device: Keyboard Hub, apple_vendor_id, 0x1006, 0xfd130000 / 4
USB Device: Apple Keyboard, apple_vendor_id, 0x0221, 0xfd132000 / 6
USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd110000 / 3
I tried removing xcuserdata folder from .xcodeproj file that didn't worked
I tried removing the project from repository in XCode -> Organizer
I tried removing the derived project data that
I really don't know what the problem is, we are using a SVN server on the network so we can sync the sources of the projects.
There is a good chance that is fixed in Xcode 4.5.1:
Source Control
Issues interacting with working copies known by the Xcode app. 12364258, 12389205, 12389198
The release notes are available on the Apple Developer Download site (here); they don't appear to be updated on the main Apple Developer website.
Details: Attempted to add repository (IDESourceControlRepository) Name:192.168.1, Type:Subversion, Location:svn://192.168.1.20 when (IDESourceControlRepository) Name:192.168.1, Type:Subversion, Location:svn://192.168.1.20 already existed.
I would remove all your repositories from Xcode and add them again.
I am running Xcode 4.5.1 and just started having this problem today. The app was running in the simulator and then the simulator started acting funny so I decided to stop everything and close Xcode. I had to blast it. When I tried to relaunch I got this error and cannot launch anymore. Clearly something got messed up.

iPhone SDK - CALayer crash

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];?

Why did this app crash while in the background?

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)