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

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.

Related

Crash KVO_IS_RETAINING_ALL_OBSERVERS_OF_THIS_OBJECT_IF_IT_CRASHES_AN_OBSERVER_WAS_OVERRELEASED_OR_SMASHED

I'm seeing crashes in my crash log, but I have yet to experience a crash directly. I've searched everything and tried everything but I'm stuck.
Any ideas on why I'm getting these in my crash logs?
Crash log
CrashReporter Key: d42015aa3717735a5388beca859904bc83c7d8a1
Hardware Model: iPhone9,2
Process: Waterspeed [9082]
Path: /private/var/containers/Bundle/Application/60208DDD-0A10-41FE-B309-56CF3CCB0E45/Waterspeed.app/Waterspeed
Identifier: TNT.Waterspeed
Version: 23 (2.9.28)
AppStoreTools: 10G3
AppVariant: 1:iPhone9,2:12.2
Code Type: ARM-64 (Native)
Role: Non UI
Parent Process: launchd [1]
Coalition: TNT.Waterspeed [2182]
Date/Time: 2019-07-22 19:20:09.0959 -1000
Launch Time: 2019-07-21 23:14:01.7633 -1000
OS Version: iPhone OS 12.3.1 (16F203)
Baseband Version: 5.60.01
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000fbcae9b80
VM Region Info: 0xfbcae9b80 is not in any region. Bytes after previous region: 56315779969
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
MALLOC_NANO 0000000280000000-00000002a0000000 [512.0M] rw-/rwx SM=PRV
--->
UNUSED SPACE AT END
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [9082]
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 libobjc.A.dylib 0x00000001fdcf60e0 object_isClass + 16 (objc-runtime-new.h:976)
1 Foundation 0x00000001ff56a8d0 KVO_IS_RETAINING_ALL_OBSERVERS_OF_THIS_OBJECT_IF_IT_CRASHES_AN_OBSERVER_WAS_OVERRELEASED_OR_SMASHED + 64 (NSKeyValueObserving.m:1122)
2 Foundation 0x00000001ff568170 NSKeyValueWillChangeWithPerThreadPendingNotifications.llvm.9306004367141260615 + 304 (NSKeyValueObserving.m:1152)
3 Foundation 0x00000001ff4e1d44 -[NSProgress _setValueForKeys:settingBlock:] + 264 (NSProgress.m:773)
4 Foundation 0x00000001ff4ff424 -[NSProgress _setRemoteValues:forKeys:] + 192 (NSProgress.m:2347)
5 Foundation 0x00000001ff6b3020 __45-[_NSProgressProxy _setRemoteValues:forKeys:]_block_invoke + 64 (NSProgressSubscriber.m:118)
6 CoreFoundation 0x00000001feaaee68 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20 (CFRunLoop.c:1838)
7 CoreFoundation 0x00000001feaae76c __CFRunLoopDoBlocks + 272 (CFRunLoop.c:1879)
8 CoreFoundation 0x00000001feaa9cd8 __CFRunLoopRun + 2312 (CFRunLoop.c:3178)
9 CoreFoundation 0x00000001feaa90b0 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
10 GraphicsServices 0x0000000200ca979c GSEventRunModal + 104 (GSEvent.c:2245)
11 UIKitCore 0x000000022b457978 UIApplicationMain + 212 (UIApplication.m:4353)
12 Waterspeed 0x0000000102d95068 main + 68 (LoginViewController.swift:34)
13 libdyld.dylib 0x00000001fe56e8e0 start + 4
Thread 1 name:
Thread 1:
0 libsystem_kernel.dylib 0x00000001fe6af0f4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001fe6ae5a0 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x00000001feaaea10 __CFRunLoopServiceMachPort + 236 (CFRunLoop.c:2615)
3 CoreFoundation 0x00000001feaa9920 __CFRunLoopRun + 1360 (CFRunLoop.c:2971)
4 CoreFoundation 0x00000001feaa90b0 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
5 Foundation 0x00000001ff476fac -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 300 (NSRunLoop.m:367)
6 Foundation 0x00000001ff476e3c -[NSRunLoop(NSRunLoop) runUntilDate:] + 96 (NSRunLoop.m:411)
7 UIKitCore 0x000000022b53d494 -[UIEventFetcher threadMain] + 136 (UIEventFetcher.m:606)
8 Foundation 0x00000001ff5a36a4 __NSThread__start__ + 984 (NSThread.m:1175)
9 libsystem_pthread.dylib 0x00000001fe73c2c0 _pthread_body + 128 (pthread.c:857)
10 libsystem_pthread.dylib 0x00000001fe73c220 _pthread_start + 44 (pthread.c:884)
11 libsystem_pthread.dylib 0x00000001fe73fcdc thread_start + 4
Thread 2 name:
Thread 2:
0 libsystem_kernel.dylib 0x00000001fe6bc920 write + 8
1 Waterspeed 0x0000000102f50cb4 CLSSDKFileLog + 288 (CLSInternalLogging.c:0)
2 Waterspeed 0x0000000102f48388 CLSMachExceptionServer + 912 (CLSMachException.c:249)
3 libsystem_pthread.dylib 0x00000001fe73c2c0 _pthread_body + 128 (pthread.c:857)
4 libsystem_pthread.dylib 0x00000001fe73c220 _pthread_start + 44 (pthread.c:884)
5 libsystem_pthread.dylib 0x00000001fe73fcdc thread_start + 4
Thread 3 name:
Thread 3:
0 libsystem_kernel.dylib 0x00000001fe6af0f4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001fe6ae5a0 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x00000001feaaea10 __CFRunLoopServiceMachPort + 236 (CFRunLoop.c:2615)
3 CoreFoundation 0x00000001feaa9920 __CFRunLoopRun + 1360 (CFRunLoop.c:2971)
4 CoreFoundation 0x00000001feaa90b0 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
5 CFNetwork 0x00000001ff0c274c -[__CoreSchedulingSetRunnable runForever] + 216 (CoreSchedulingSet.mm:1365)
6 Foundation 0x00000001ff5a36a4 __NSThread__start__ + 984 (NSThread.m:1175)
7 libsystem_pthread.dylib 0x00000001fe73c2c0 _pthread_body + 128 (pthread.c:857)
8 libsystem_pthread.dylib 0x00000001fe73c220 _pthread_start + 44 (pthread.c:884)
9 libsystem_pthread.dylib 0x00000001fe73fcdc thread_start + 4
Thread 4 name:
Thread 4:
0 libsystem_kernel.dylib 0x00000001fe6af0f4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001fe6ae5a0 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x00000001feaaea10 __CFRunLoopServiceMachPort + 236 (CFRunLoop.c:2615)
3 CoreFoundation 0x00000001feaa9920 __CFRunLoopRun + 1360 (CFRunLoop.c:2971)
4 CoreFoundation 0x00000001feaa90b0 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
5 Foundation 0x00000001ff476fac -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 300 (NSRunLoop.m:367)
6 Waterspeed 0x000000010301e8d0 -[_FSRRunLoopThread main] + 252 (FSRWebSocket.m:1843)
7 Foundation 0x00000001ff5a36a4 __NSThread__start__ + 984 (NSThread.m:1175)
8 libsystem_pthread.dylib 0x00000001fe73c2c0 _pthread_body + 128 (pthread.c:857)
9 libsystem_pthread.dylib 0x00000001fe73c220 _pthread_start + 44 (pthread.c:884)
10 libsystem_pthread.dylib 0x00000001fe73fcdc thread_start + 4
Thread 5 name:
Thread 5:
0 libsystem_kernel.dylib 0x00000001fe6ba328 __select + 8
1 CoreFoundation 0x00000001feab76f4 __CFSocketManager + 620 (CFSocket.c:2242)
2 libsystem_pthread.dylib 0x00000001fe73c2c0 _pthread_body + 128 (pthread.c:857)
3 libsystem_pthread.dylib 0x00000001fe73c220 _pthread_start + 44 (pthread.c:884)
4 libsystem_pthread.dylib 0x00000001fe73fcdc thread_start + 4
Thread 6 name:
Thread 6:
0 libsystem_kernel.dylib 0x00000001fe6bb93c kevent_id + 8
1 libdispatch.dylib 0x00000001fe51bbf0 _dispatch_kq_poll + 332 (event_kevent.c:718)
2 libdispatch.dylib 0x00000001fe51b114 _dispatch_event_loop_poke$VARIANT$mp + 476 (event_kevent.c:1644)
3 Foundation 0x00000001ff4fb080 -[NSFileAccessArbiterProxy revokeAccessClaimForID:] + 84 (NSFileAccessArbiter.m:2232)
4 Foundation 0x00000001ff660af0 __98-[NSFileCoordinator(NSPrivate) _withAccessArbiter:invokeAccessor:orDont:andRelinquishAccessCl... + 232 (NSFileCoordinator.m:960)
5 Foundation 0x00000001ff660cc0 __85-[NSFileCoordinator(NSPrivate) _coordinateReadingItemAtURL:options:error:byAccessor:]_block_i... + 28 (NSFileCoordinator.m:1014)
6 Foundation 0x00000001ff4e95a4 -[NSFileCoordinatorAccessorBlockCompletion decrement] + 76 (NSFileCoordinator.m:2245)
7 Foundation 0x00000001ff4d8f48 -[NSFileCoordinator _invokeAccessor:thenCompletionHandler:] + 164 (NSFileCoordinator.m:470)
8 Foundation 0x00000001ff65fbc0 __73-[NSFileCoordinator coordinateReadingItemAtURL:options:error:byAccessor:]_block_invoke + 88 (NSFileCoordinator.m:483)
9 Foundation 0x00000001ff660c98 __85-[NSFileCoordinator(NSPrivate) _coordinateReadingItemAtURL:options:error:byAccessor:]_block_i... + 108 (NSFileCoordinator.m:1013)
10 Foundation 0x00000001ff4d9160 -[NSFileCoordinator(NSPrivate) _withAccessArbiter:invokeAccessor:orDont:andRelinquishAccessClaim:] + 452 (NSFileCoordinator.m:943)
11 Foundation 0x00000001ff4da138 -[NSFileCoordinator(NSPrivate) _coordinateReadingItemAtURL:options:error:byAccessor:] + 776 (NSFileCoordinator.m:1008)
12 Foundation 0x00000001ff4d9e24 -[NSFileCoordinator coordinateReadingItemAtURL:options:error:byAccessor:] + 76 (NSFileCoordinator.m:480)
13 WatchConnectivity 0x0000000220177b1c -[WCContentIndex loadContentIfNecessary] + 808 (WCContentIndex.m:66)
14 Foundation 0x00000001ff647ec4 __74-[NSFilePresenterXPCMessenger _makePresenter:observeChangeWithSubitemURL:]_block_invoke_2 + 48 (NSFileAccessArbiter.m:3360)
15 Foundation 0x00000001ff66662c __95-[NSOperationQueue(NSFileCoordinationSupport) _fc_addUncancellableOperationForReactorID:block... + 140 (NSFileCoordinator.m:2427)
16 Foundation 0x00000001ff581ef8 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16 (NSOperation.m:1559)
17 Foundation 0x00000001ff48e3e0 -[NSBlockOperation main] + 72 (NSOperation.m:1578)
18 Foundation 0x00000001ff48d8c8 -[__NSOperationInternal _start:] + 740 (NSOperation.m:907)
19 Foundation 0x00000001ff583c7c __NSOQSchedule_f + 272 (NSOperation.m:2165)
20 libdispatch.dylib 0x00000001fe55ca38 _dispatch_call_block_and_release + 24 (init.c:1372)
21 libdispatch.dylib 0x00000001fe55d7d4 _dispatch_client_callout + 16 (object.m:511)
22 libdispatch.dylib 0x00000001fe502018 _dispatch_continuation_pop$VARIANT$mp + 412 (inline_internal.h:2441)
23 libdispatch.dylib 0x00000001fe5016dc _dispatch_async_redirect_invoke + 600 (queue.c:796)
24 libdispatch.dylib 0x00000001fe50e02c _dispatch_root_queue_drain + 372 (inline_internal.h:2482)
25 libdispatch.dylib 0x00000001fe50e8d0 _dispatch_worker_thread2 + 128 (queue.c:6072)
26 libsystem_pthread.dylib 0x00000001fe73d1b4 _pthread_wqthread + 464 (pthread.c:2361)
27 libsystem_pthread.dylib 0x00000001fe73fcd4 start_wqthread + 4
Thread 7:
0 libsystem_pthread.dylib 0x00000001fe73fcd0 start_wqthread + 0
Thread 8:
0 libsystem_pthread.dylib 0x00000001fe73fcd0 start_wqthread + 0
Thread 9 name:
Thread 9:
0 libsystem_kernel.dylib 0x00000001fe6b9f2c __psynch_mutexwait + 8
1 libsystem_pthread.dylib 0x00000001fe735a84 _pthread_mutex_firstfit_lock_wait + 92 (pthread_mutex.c:1228)
2 libsystem_pthread.dylib 0x00000001fe7359f4 _pthread_mutex_firstfit_lock_slow$VARIANT$mp + 272 (pthread_mutex.c:1304)
3 Foundation 0x00000001ff478d44 -[NSObject(NSKeyValueObserverRegistration) addObserver:forKeyPath:options:context:] + 64 (NSKeyValueObserving.m:68)
4 WatchConnectivity 0x00000002201650a0 -[WCSession onqueue_updateProgressForFileTransfer:progress:] + 280 (WCSession.m:517)
5 WatchConnectivity 0x0000000220164c9c __51-[WCSession onqueue_createProgressForFileTransfer:]_block_invoke_2 + 44 (WCSession.m:496)
6 Foundation 0x00000001ff581ef8 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16 (NSOperation.m:1559)
7 Foundation 0x00000001ff48e3e0 -[NSBlockOperation main] + 72 (NSOperation.m:1578)
8 Foundation 0x00000001ff48d8c8 -[__NSOperationInternal _start:] + 740 (NSOperation.m:907)
9 Foundation 0x00000001ff583c7c __NSOQSchedule_f + 272 (NSOperation.m:2165)
10 libdispatch.dylib 0x00000001fe50b7f0 _dispatch_block_async_invoke2 + 104 (queue.c:518)
11 libdispatch.dylib 0x00000001fe55d7d4 _dispatch_client_callout + 16 (object.m:511)
12 libdispatch.dylib 0x00000001fe502018 _dispatch_continuation_pop$VARIANT$mp + 412 (inline_internal.h:2441)
13 libdispatch.dylib 0x00000001fe5016dc _dispatch_async_redirect_invoke + 600 (queue.c:796)
14 libdispatch.dylib 0x00000001fe50e02c _dispatch_root_queue_drain + 372 (inline_internal.h:2482)
15 libdispatch.dylib 0x00000001fe50e8d0 _dispatch_worker_thread2 + 128 (queue.c:6072)
16 libsystem_pthread.dylib 0x00000001fe73d1b4 _pthread_wqthread + 464 (pthread.c:2361)
17 libsystem_pthread.dylib 0x00000001fe73fcd4 start_wqthread + 4
Thread 10:
0 libsystem_pthread.dylib 0x00000001fe73fcd0 start_wqthread + 0
Thread 11:
0 libsystem_pthread.dylib 0x00000001fe73fcd0 start_wqthread + 0
Thread 12:
0 libsystem_pthread.dylib 0x00000001fe73fcd0 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x00000002833a9b60 x1: 0x000000016d0768d0 x2: 0x000000016d0768e0 x3: 0x0000000000000000
x4: 0x0000000000000003 x5: 0x0000000000000000 x6: 0x00000002833b5320 x7: 0x000000023665c000
x8: 0x0000000fbcae9b60 x9: 0x0000000000000008 x10: 0x00000001fea19e54 x11: 0x0000002a0000007f
x12: 0x0000000104918f60 x13: 0x000001a238c5ba41 x14: 0x0000000000000000 x15: 0x0000030000000302
x16: 0x0000000238c5ba40 x17: 0x00000001fea19d00 x18: 0x0000000000000000 x19: 0x000000016d0768d0
x20: 0x0000000000000003 x21: 0x000000022b98d9bf x22: 0x00000002833a9b60 x23: 0x000000023665c000
x24: 0x0000000000000000 x25: 0x0000000283d85bc0 x26: 0x0000000000000003 x27: 0x000000016d0768d0
x28: 0x0000000000000000 fp: 0x000000016d0768c0 lr: 0x00000001ff56a8d0
sp: 0x000000016d076890 pc: 0x00000001fdcf60e0 cpsr: 0x20000000

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Failed to set posix_spawn_file_actions for fd -1 at index 0

In Swift 4, on Xcode Version 9.3.1 (9E501), I am utilizing DispatchQueue.global(qos: .background).async {...} to run a while(true) loop in the background:
func appStartDispatchQueue() {
DispatchQueue.global(qos: .background).async {
while(true) {
let networkStatus = Verification.onCompanyNetwork()
DispatchQueue.main.async {
self.onNetwork = networkStatus
}
sleep(3)
}
}
}
Verification.onCompanyNetwork() is running a ping via bash script to see if there is response from a server on a corporate network.
I need this thread running in the background at all times for this application - so even if it fails, how can I catch the exception and make sure the thread starts up again? Right now I'm not even sure why the thread is failing...
Two discovered crash scenarios so far:
while running app (outside of Xcode), the app crashes on average after 3-6 hours of continuous running
while running app (inside of Xcode), the app does NOT crash, even after 3-6 hours of continuous running
The entire error message is found below:
Crashed Thread: 1 Dispatch queue: com.apple.root.background-qos
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Failed to set posix_spawn_file_actions for fd -1 at index 0 with errno 9'
terminating with uncaught exception of type NSException
abort() called
Application Specific Backtrace 1:
0 CoreFoundation 0x00007fff339d9ecd __exceptionPreprocess + 256
1 libobjc.A.dylib 0x00007fff5fa91720 objc_exception_throw + 48
2 CoreFoundation 0x00007fff339d9cff +[NSException raise:format:] + 201
3 Foundation 0x00007fff35ccf581 -[NSConcreteTask launchWithDictionary:error:] + 3236
4 AdminAccess 0x000000010f268b32 _T011AdminAccess9ScriptingC12shellCommandSSSgSS0D4Path_SaySSG9argumentstFZ + 370
5 AdminAccess 0x000000010f266e20 _T011AdminAccess9ScriptingC13runBashScriptS2S10scriptName_SS3argtFZ + 32496
6 AdminAccess 0x000000010f25779b _T011AdminAccess12VerificationC16onCompanyNetworkSbyFZ + 107
7 AdminAccess 0x000000010f26a834 _T011AdminAccess11AppDelegateC21appStartDispatchQueueyyFyycfU_ + 36
8 AdminAccess 0x000000010f26a99d _T011AdminAccess11AppDelegateC21appStartDispatchQueueyyFyycfU_TA + 13
9 AdminAccess 0x000000010f26aa1d _T0Ieg_IeyB_TR + 45
10 libdispatch.dylib 0x00007fff60b10d53 _dispatch_call_block_and_release + 12
11 libdispatch.dylib 0x00007fff60b11dcf _dispatch_client_callout + 8
12 libdispatch.dylib 0x00007fff60b1fe80 _dispatch_root_queue_drain + 671
13 libdispatch.dylib 0x00007fff60b204bd _dispatch_worker_thread2 + 90
14 libsystem_pthread.dylib 0x00007fff60d526dd _pthread_wqthread + 619
15 libsystem_pthread.dylib 0x00007fff60d52405 start_wqthread + 13
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff60c9917a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff60c996d0 mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff339230c2 __CFRunLoopServiceMachPort + 337
3 com.apple.CoreFoundation 0x00007fff33922611 __CFRunLoopRun + 1654
4 com.apple.CoreFoundation 0x00007fff33921d48 CFRunLoopRunSpecific + 463
5 com.apple.HIToolbox 0x00007fff32bb8ab5 RunCurrentEventLoopInMode + 293
6 com.apple.HIToolbox 0x00007fff32bb87eb ReceiveNextEventCommon + 618
7 com.apple.HIToolbox 0x00007fff32bb8568 _BlockUntilNextEventMatchingListInModeWithFilter + 64
8 com.apple.AppKit 0x00007fff30e73363 _DPSNextEvent + 997
9 com.apple.AppKit 0x00007fff30e72102 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1362
10 com.apple.AppKit 0x00007fff30e6c165 -[NSApplication run] + 699
11 com.apple.AppKit 0x00007fff30e5b8a3 NSApplicationMain + 780
12 mace.AdminAccess 0x000000010f26be6d main + 13 (AppDelegate.swift:18)
13 libdyld.dylib 0x00007fff60b5fed9 start + 1
Thread 1 Crashed:: Dispatch queue: com.apple.root.background-qos
0 libsystem_kernel.dylib 0x00007fff60c9f23e __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff60d55c1c pthread_kill + 285
2 libsystem_c.dylib 0x00007fff60c081c9 abort + 127
3 libc++abi.dylib 0x00007fff5e289231 abort_message + 231
4 libc++abi.dylib 0x00007fff5e2893cd default_terminate_handler() + 265
5 libobjc.A.dylib 0x00007fff5fa93c87 _objc_terminate() + 97
6 libc++abi.dylib 0x00007fff5e294dfe std::__terminate(void (*)()) + 8
7 libc++abi.dylib 0x00007fff5e294e73 std::terminate() + 51
8 libdispatch.dylib 0x00007fff60b11de3 _dispatch_client_callout + 28
9 libdispatch.dylib 0x00007fff60b1fe80 _dispatch_root_queue_drain + 671
10 libdispatch.dylib 0x00007fff60b204bd _dispatch_worker_thread2 + 90
11 libsystem_pthread.dylib 0x00007fff60d526dd _pthread_wqthread + 619
12 libsystem_pthread.dylib 0x00007fff60d52405 start_wqthread + 13
Thread 2:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x00007fff60c9917a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff60c996d0 mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff339230c2 __CFRunLoopServiceMachPort + 337
3 com.apple.CoreFoundation 0x00007fff33922611 __CFRunLoopRun + 1654
4 com.apple.CoreFoundation 0x00007fff33921d48 CFRunLoopRunSpecific + 463
5 com.apple.AppKit 0x00007fff30e7bf89 _NSEventThread + 160
6 libsystem_pthread.dylib 0x00007fff60d53305 _pthread_body + 126
7 libsystem_pthread.dylib 0x00007fff60d5626f _pthread_start + 70
8 libsystem_pthread.dylib 0x00007fff60d52415 thread_start + 13
Thread 3:
0 libsystem_pthread.dylib 0x00007fff60d523f8 start_wqthread + 0
1 ??? 0x0000000054485244 0 + 1414025796
Thread 4:
0 libsystem_pthread.dylib 0x00007fff60d523f8 start_wqthread + 0
1 ??? 0x0000000000000903 0 + 2307
Thread 1 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00007000054b9000 rcx: 0x00007000054b88b8 rdx: 0x0000000000000000
rdi: 0x0000000000002703 rsi: 0x0000000000000006 rbp: 0x00007000054b88f0 rsp: 0x00007000054b88b8
r8: 0x00007000054b8778 r9: 0x00007000054b8950 r10: 0x0000000000000000 r11: 0x0000000000000206
r12: 0x0000000000002703 r13: 0x0000003000000008 r14: 0x0000000000000006 r15: 0x000000000000002d
rip: 0x00007fff60c9f23e rfl: 0x0000000000000206 cr2: 0x00007fff93949188
The best Way to do that is using https://github.com/ashleymills/Reachability.swift
in this link you'll see how the ask for google.com server all the time.
https://github.com/ashleymills/Reachability.swift/blob/master/ReachabilitySample/ViewController.swift
there are many ways to do it
let hostReachability = Reachability(hostName:"www.apple.com")
hostReachability.startNotifier()
NSNotificationCenter.defaultCenter().addObserver(
self,
selector: "reachabilityChanged:",
name: kReachabilityChangedNotification,
object: nil)
it will avoid you to use while(true) or stuff like that is hard to handle with.
enum NetworkStatus {
case notReachable, reachableViaWiFi, reachableViaWWAN
}
var currentReachabilityStatus: NetworkStatus

UIWebview crashing on IOS 7 but not on IOS 6

I'm using Xcode 5 to make my app. When I run it on the simulator using IOS 6.1 everything works perfectly, but when I run the app on IOS 7 it crashes! Here is the crash log I'm getting from the webview:
`Incident Identifier: 01BCFB4C-E85B-488D-9855-4188D27566B1
CrashReporter Key: cc047dce10a1cd20b4718dbf73ddc413162841fe
Hardware Model: iPhone5,1
Process: Widgets iphone [420]
Path: /var/mobile/Applications/0D552E90-FF2C-4561-B012-0901359ED7A0/Widgets iphone.app/Widgets iphone
Identifier: jeardev.Widgets-iphone
Version: 1.1 (1.1)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-08-27 20:49:46.578 -0500
OS Version: iOS 7.0 (11A4449d)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x000000f0
Triggered by Thread: 7
Thread 0:
0 libsystem_kernel.dylib 0x382e3a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x382e387c mach_msg + 36
2 CoreFoundation 0x2dccc55c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dccacc2 __CFRunLoopRun + 858
4 CoreFoundation 0x2dc3553c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dc3531e CFRunLoopRunInMode + 102
6 GraphicsServices 0x326c933e GSEventRunModal + 134
7 UIKit 0x3024e7b0 UIApplicationMain + 1132
8 Widgets iphone 0x00071fa2 main (main.m:16)
9 libdyld.dylib 0x3823fab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x382f6c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3835ae06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3835acc0 start_wqthread + 4
Thread 2:
0 libsystem_kernel.dylib 0x382f6c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3835ae06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3835acc0 start_wqthread + 4
Thread 3 name: gputools.smt_poll.0x16580fd0
Thread 3:
0 libsystem_kernel.dylib 0x382f6550 __semwait_signal + 24
1 libsystem_c.dylib 0x382674e8 nanosleep + 168
2 libsystem_c.dylib 0x38267438 usleep + 48
3 GPUToolsCore 0x0062b0bc smt_poll_thread_entry(void*) + 120
4 libsystem_pthread.dylib 0x3835cc5a _pthread_body + 138
5 libsystem_pthread.dylib 0x3835cbca _pthread_start + 98
6 libsystem_pthread.dylib 0x3835accc thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x382e3838 kevent64 + 24
1 libdispatch.dylib 0x382320d0 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3822c63e _dispatch_mgr_thread + 34
Thread 5:
0 libsystem_kernel.dylib 0x382f6c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3835ae06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3835acc0 start_wqthread + 4
Thread 6:
0 libsystem_kernel.dylib 0x382f6c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3835ae06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3835acc0 start_wqthread + 4
Thread 7 name: WebThread
Thread 7 Crashed:
0 WebCore 0x35ac9de8 WebCore::ApplicationCacheGroup::selectCache(WebCore::Frame*, WebCore::KURL const&) + 544
1 WebCore 0x358d12b6 WebCore::HTMLHtmlElement::insertedByParser() + 90
2 WebCore 0x358c9936 WebCore::HTMLConstructionSite::insertHTMLHtmlStartTagBeforeHTML(WebCore::AtomicHTMLToken*) + 318
3 WebCore 0x3589f1b4 WebCore::HTMLTreeBuilder::processStartTag(WebCore::AtomicHTMLToken*) + 2472
4 WebCore 0x3589e76e WebCore::HTMLTreeBuilder::processToken(WebCore::AtomicHTMLToken*) + 86
5 WebCore 0x3589e552 WebCore::HTMLTreeBuilder::constructTree(WebCore::AtomicHTMLToken*) + 30
6 WebCore 0x3589e038 WebCore::HTMLDocumentParser::constructTreeFromHTMLToken(WebCore::HTMLToken&) + 96
7 WebCore 0x358910f0 WebCore::HTMLDocumentParser::pumpTokenizer(WebCore::HTMLDocumentParser::SynchronousMode) + 248
8 WebCore 0x3590234e WebCore::HTMLDocumentParser::append(WTF::PassRefPtr<WTF::StringImpl>) + 290
9 WebCore 0x35901872 WebCore::DecodedDataDocumentParser::appendBytes(WebCore::DocumentWriter*, char const*, unsigned long) + 70
10 WebCore 0x358bdae4 WebCore::DocumentLoader::commitData(char const*, unsigned long) + 32
11 WebKit 0x362c366e -[WebHTMLRepresentation receivedData:withDataSource:] + 178
12 WebKit 0x362c3508 -[WebDataSource(WebInternal) _receivedData:] + 132
13 WebKit 0x362c3464 WebFrameLoaderClient::committedLoad(WebCore::DocumentLoader*, char const*, int) + 96
14 WebCore 0x358f9240 WebCore::DocumentLoader::commitLoad(char const*, int) + 96
15 WebCore 0x358f9198 WebCore::DocumentLoader::dataReceived(WebCore::CachedResource*, char const*, int) + 492
16 WebCore 0x358f79b0 WebCore::DocumentLoader::continueAfterContentPolicy(WebCore::PolicyAction) + 760
17 WebCore 0x358f6fde WebCore::DocumentLoader::responseReceived(WebCore::CachedResource*, WebCore::ResourceResponse const&) + 650
18 WebCore 0x35b73a1a WebCore::DocumentLoader::handleSubstituteDataLoadNow(WebCore::Timer<WebCore::DocumentLoader>*) + 322
19 WebCore 0x3581d2d4 WebCore::ThreadTimers::sharedTimerFiredInternal() + 132
20 WebCore 0x3581d226 WebCore::timerFired(__CFRunLoopTimer*, void*) + 22
21 CoreFoundation 0x2dccce84 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 12
22 CoreFoundation 0x2dccca9e __CFRunLoopDoTimer + 790
23 CoreFoundation 0x2dccae26 __CFRunLoopRun + 1214
24 CoreFoundation 0x2dc3553c CFRunLoopRunSpecific + 520
25 CoreFoundation 0x2dc3531e CFRunLoopRunInMode + 102
26 WebCore 0x358abf68 RunWebThread(void*) + 416
27 libsystem_pthread.dylib 0x3835cc5a _pthread_body + 138
28 libsystem_pthread.dylib 0x3835cbca _pthread_start + 98
29 libsystem_pthread.dylib 0x3835accc thread_start + 4
Thread 8 name: com.apple.NSURLConnectionLoader
Thread 8:
0 libsystem_kernel.dylib 0x382e3a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x382e387c mach_msg + 36
2 CoreFoundation 0x2dccc55c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dccac7c __CFRunLoopRun + 788
4 CoreFoundation 0x2dc3553c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dc3531e CFRunLoopRunInMode + 102
6 Foundation 0x2e6519bc +[NSURLConnection(Loader) _resourceLoadLoop:] + 316
7 Foundation 0x2e6c72b2 __NSThread__main__ + 1058
8 libsystem_pthread.dylib 0x3835cc5a _pthread_body + 138
9 libsystem_pthread.dylib 0x3835cbca _pthread_start + 98
10 libsystem_pthread.dylib 0x3835accc thread_start + 4
Thread 9:
0 libsystem_kernel.dylib 0x382e3a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x382e387c mach_msg + 36
2 CoreFoundation 0x2dccc55c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dccac7c __CFRunLoopRun + 788
4 CoreFoundation 0x2dc3553c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dc3531e CFRunLoopRunInMode + 102
6 libAVFAudio.dylib 0x2cc125ae GenericRunLoopThread::Entry(void*) + 126
7 libAVFAudio.dylib 0x2cc05f44 CAPThread::Entry(CAPThread*) + 176
8 libsystem_pthread.dylib 0x3835cc5a _pthread_body + 138
9 libsystem_pthread.dylib 0x3835cbca _pthread_start + 98
10 libsystem_pthread.dylib 0x3835accc thread_start + 4
Thread 10 name: com.apple.CFSocket.private
Thread 10:
0 libsystem_kernel.dylib 0x382f6440 select$DARWIN_EXTSN + 20
1 CoreFoundation 0x2dcd045a __CFSocketManager + 478
2 libsystem_pthread.dylib 0x3835cc5a _pthread_body + 138
3 libsystem_pthread.dylib 0x3835cbca _pthread_start + 98
4 libsystem_pthread.dylib 0x3835accc thread_start + 4
Thread 11 name: JavaScriptCore::BlockFree
Thread 11:
0 libsystem_kernel.dylib 0x382f5f38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x3835c262 _pthread_cond_wait + 538
2 libsystem_pthread.dylib 0x3835d03c pthread_cond_wait + 36
3 JavaScriptCore 0x2ec3a408 JSC::BlockAllocator::blockFreeingThreadMain() + 204
4 JavaScriptCore 0x2ec37a70 WTF::wtfThreadEntryPoint(void*) + 12
5 libsystem_pthread.dylib 0x3835cc5a _pthread_body + 138
6 libsystem_pthread.dylib 0x3835cbca _pthread_start + 98
7 libsystem_pthread.dylib 0x3835accc thread_start + 4
Thread 12 name: JavaScriptCore::Marking
Thread 12:
0 libsystem_kernel.dylib 0x382f5f38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x3835c262 _pthread_cond_wait + 538
2 libsystem_pthread.dylib 0x3835d03c pthread_cond_wait + 36
3 JavaScriptCore 0x2edd8af2 JSC::GCThread::waitForNextPhase() + 74
4 JavaScriptCore 0x2edd8b4c JSC::GCThread::gcThreadMain() + 48
5 JavaScriptCore 0x2ec37a70 WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_pthread.dylib 0x3835cc5a _pthread_body + 138
7 libsystem_pthread.dylib 0x3835cbca _pthread_start + 98
8 libsystem_pthread.dylib 0x3835accc thread_start + 4
Thread 13 name: WebCore: CFNetwork Loader
Thread 13:
0 libsystem_kernel.dylib 0x382e3a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x382e387c mach_msg + 36
2 CoreFoundation 0x2dccc55c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dccac7c __CFRunLoopRun + 788
4 CoreFoundation 0x2dc3553c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dc3531e CFRunLoopRunInMode + 102
6 WebCore 0x358f512a WebCore::runLoaderThread(void*) + 250
7 JavaScriptCore 0x2ec37a70 WTF::wtfThreadEntryPoint(void*) + 12
8 libsystem_pthread.dylib 0x3835cc5a _pthread_body + 138
9 libsystem_pthread.dylib 0x3835cbca _pthread_start + 98
10 libsystem_pthread.dylib 0x3835accc thread_start + 4
Thread 14:
0 libsystem_kernel.dylib 0x382f6c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3835ae06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3835acc0 start_wqthread + 4
Thread 7 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000008 r2: 0x9b81ac40 r3: 0x00000021
r4: 0x00000000 r5: 0x0367daf0 r6: 0x04cf6750 r7: 0x031b4818
r8: 0x0309f040 r9: 0x00000035 r10: 0x0309f000 r11: 0x04b2d000
ip: 0x39d5d5cc sp: 0x031b477c lr: 0x35ac9de5 pc: 0x35ac9de8
cpsr: 0x00000030
`
It is particularly crashing "Thread 5 Webthread" Sometimes Thread 8
Any feedback is appreciated :)
I figured out the problem, #Jake Lin's suggestion was right it was the link. I was trying to connect to twitter and I was using the URL: http://mobile.twitter.com/account and I tried changing it to: https://mobile.twitter.com/account where I added the "s" in the http. Very strange problem but that seemed to fix it.

iOS Simulator crashing in Virtual Machine

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...

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.