Skip to content

Instantly share code, notes, and snippets.

@robinwo
Last active January 4, 2023 22:09
Show Gist options
  • Save robinwo/e5823bcb2bd609ff81391a4373c2f8e2 to your computer and use it in GitHub Desktop.
Save robinwo/e5823bcb2bd609ff81391a4373c2f8e2 to your computer and use it in GitHub Desktop.
xcode threads
Thread 1 Queue : com.apple.main-thread (serial)
#0 0x00000001c6c40aa8 in mach_msg2_trap ()
#1 0x00000001c6c52fc4 in mach_msg2_internal ()
#2 0x00000001c6c53204 in mach_msg_overwrite ()
#3 0x00000001c6c40fec in mach_msg ()
#4 0x0000000189346ad4 in __CFRunLoopServiceMachPort ()
#5 0x0000000189347d18 in __CFRunLoopRun ()
#6 0x000000018934cec0 in CFRunLoopRunSpecific ()
#7 0x00000001c33a3368 in GSEventRunModal ()
#8 0x000000018b84286c in -[UIApplication _run] ()
#9 0x000000018b8424d0 in UIApplicationMain ()
#10 0x00000001008d49c4 in main at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-230104-2240_84afcfb/LoopWorkspace/Loop/Loop/main.swift:16
#11 0x00000001a7b6e960 in start ()
com.apple.uikit.eventfetch-thread (5)#0 0x00000001c6c40aa8 in mach_msg2_trap ()
#1 0x00000001c6c52fc4 in mach_msg2_internal ()
#2 0x00000001c6c53204 in mach_msg_overwrite ()
#3 0x00000001c6c40fec in mach_msg ()
#4 0x0000000189346ad4 in __CFRunLoopServiceMachPort ()
#5 0x0000000189347d18 in __CFRunLoopRun ()
#6 0x000000018934cec0 in CFRunLoopRunSpecific ()
#7 0x000000018368b0d4 in -[NSRunLoop(NSRunLoop) runMode:beforeDate:] ()
#8 0x000000018368afbc in -[NSRunLoop(NSRunLoop) runUntilDate:] ()
#9 0x000000018b97772c in -[UIEventFetcher threadMain] ()
#10 0x00000001836a45a8 in __NSThread__start__ ()
#11 0x00000001d735e6cc in _pthread_start ()
com.apple.CFSocket.private (12)#0 0x00000001c6c4160c in __select ()
#1 0x00000001893976a4 in __CFSocketManager ()
#2 0x00000001d735e6cc in _pthread_start ()
com.apple.NSURLConnectionLoader (16)#0 0x00000001c6c40aa8 in mach_msg2_trap ()
#1 0x00000001c6c52fc4 in mach_msg2_internal ()
#2 0x00000001c6c53204 in mach_msg_overwrite ()
#3 0x00000001c6c40fec in mach_msg ()
#4 0x0000000189346ad4 in __CFRunLoopServiceMachPort ()
#5 0x0000000189347d18 in __CFRunLoopRun ()
#6 0x000000018934cec0 in CFRunLoopRunSpecific ()
#7 0x000000018a6b8078 in ___lldb_unnamed_symbol14262 ()
#8 0x00000001836a45a8 in __NSThread__start__ ()
#9 0x00000001d735e6cc in _pthread_start ()
Thread 71#0 0x00000001c6c40fb0 in __workq_kernreturn ()
Thread 80 Queue : NSManagedObjectContext 0x281023a80 (serial)
#0 0x00000001d735dba8 in ___chkstk_darwin ()
#1 0x000000018312d768 in protocol witness for IteratorProtocol.next() in conformance IndexingIterator<τ_0_0> ()
#2 0x00000001830b3e28 in EnumeratedSequence.Iterator.next() ()
#3 0x000000010225c800 in DailyValueSchedule.between(start:end:) ()
#4 0x000000010225f200 in protocol witness for DailySchedule.between(start:end:) in conformance DailyValueSchedule<τ_0_0> ()
#5 0x000000010225b088 in DailySchedule.value(at:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-230104-2240_84afcfb/LoopWorkspace/LoopKit/LoopKit/DailyValueSchedule.swift:82
#6 0x00000001022b9ff0 in DailyQuantitySchedule<>.quantity(at:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-230104-2240_84afcfb/LoopWorkspace/LoopKit/LoopKit/DailyQuantitySchedule.swift:105
#7 0x00000001023e0d70 in closure #2 in Collection<>.glucoseEffects(insulinModelProvider:longestEffectDuration:insulinSensitivity:from:to:delta:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-230104-2240_84afcfb/LoopWorkspace/LoopKit/LoopKit/InsulinKit/InsulinMath.swift:571
#8 0x00000001023e0e34 in partial apply for closure #2 in Collection<>.glucoseEffects(insulinModelProvider:longestEffectDuration:insulinSensitivity:from:to:delta:) ()
#9 0x0000000183286708 in Sequence.reduce<τ_0_0>(_:_:) ()
#10 0x00000001023dced0 in Collection<>.glucoseEffects(insulinModelProvider:longestEffectDuration:insulinSensitivity:from:to:delta:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-230104-2240_84afcfb/LoopWorkspace/LoopKit/LoopKit/InsulinKit/InsulinMath.swift:570
#11 0x0000000102364e1c in closure #1 in DoseStore.getGlucoseEffects(start:end:basalDosingEnd:completion:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-230104-2240_84afcfb/LoopWorkspace/LoopKit/LoopKit/InsulinKit/DoseStore.swift:1322
#12 0x0000000102362db0 in closure #1 in closure #1 in DoseStore.getNormalizedDoseEntries(start:end:completion:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-230104-2240_84afcfb/LoopWorkspace/LoopKit/LoopKit/InsulinKit/DoseStore.swift:1226
#13 0x0000000102240934 in thunk for @escaping @callee_guaranteed () -> () ()
#14 0x0000000190b6ede0 in developerSubmittedBlockToNSManagedObjectContextPerform ()
#15 0x0000000101b5605c in _dispatch_client_callout ()
#16 0x0000000101b5e10c in _dispatch_lane_serial_drain ()
#17 0x0000000101b5ee34 in _dispatch_lane_invoke ()
#18 0x0000000101b6bcbc in _dispatch_workloop_worker_thread ()
#19 0x00000001d735ddf8 in _pthread_wqthread ()
Thread 85#0 0x00000001c6c40fb0 in __workq_kernreturn ()
Thread 92#0 0x00000001d735db90 in start_wqthread ()
Thread 94 Queue : com.loudnate.Naterade.LoopDataManager.dataAccessQueue (serial)
#0 0x00000001c6c415e0 in __ulock_wait ()
#1 0x0000000101b56bdc in _dlock_wait ()
#2 0x0000000101b56f8c in _dispatch_group_wait_slow ()
#3 0x0000000101221ea4 in interposed_dispatch_group_wait ()
#4 0x0000000191ac8efc in OS_dispatch_group.wait(wallTimeout:) ()
#5 0x00000001006e51f8 in LoopDataManager.update(for:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-230104-2240_84afcfb/LoopWorkspace/Loop/Loop/Managers/LoopDataManager.swift:976
#6 0x0000000100700a74 in closure #1 in LoopDataManager.getLoopState(_:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-230104-2240_84afcfb/LoopWorkspace/Loop/Loop/Managers/LoopDataManager.swift:1926
#7 0x00000001006281d4 in thunk for @escaping @callee_guaranteed () -> () ()
#8 0x0000000101b545a8 in _dispatch_call_block_and_release ()
#9 0x0000000101b5605c in _dispatch_client_callout ()
#10 0x0000000101b5e10c in _dispatch_lane_serial_drain ()
#11 0x0000000101b5ee34 in _dispatch_lane_invoke ()
#12 0x0000000101b6bcbc in _dispatch_workloop_worker_thread ()
#13 0x00000001d735ddf8 in _pthread_wqthread ()
Enqueued from com.loudnate.Naterade.LoopDataManager.dataAccessQueue (Thread 94) Queue : com.loudnate.Naterade.LoopDataManager.dataAccessQueue (serial)
#0 0x0000000101b5ad4c in dispatch_async ()
#1 0x0000000191ac8a00 in _swift_dispatch_async ()
#2 0x0000000191ac94e8 in OS_dispatch_queue.async(group:qos:flags:execute:) ()
#3 0x0000000100700904 in LoopDataManager.getLoopState(_:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-230104-2240_84afcfb/LoopWorkspace/Loop/Loop/Managers/LoopDataManager.swift:1925
#4 0x0000000100981b0c in ExtensionDataManager.createStatusContext(glucoseUnit:_:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-230104-2240_84afcfb/LoopWorkspace/Loop/Loop/Managers/ExtensionDataManager.swift:91
#5 0x0000000100980ea0 in ExtensionDataManager.update() at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-230104-2240_84afcfb/LoopWorkspace/Loop/Loop/Managers/ExtensionDataManager.swift:68
#6 0x00000001009814c0 in ExtensionDataManager.notificationReceived(_:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-230104-2240_84afcfb/LoopWorkspace/Loop/Loop/Managers/ExtensionDataManager.swift:60
#7 0x0000000100981558 in @objc ExtensionDataManager.notificationReceived(_:) ()
#8 0x00000001893033c4 in __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ ()
#9 0x00000001893aa454 in ___CFXRegistrationPost_block_invoke ()
#10 0x000000018938d704 in _CFXRegistrationPost ()
#11 0x00000001893179c8 in _CFXNotificationPost ()
#12 0x00000001836a5d9c in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
#13 0x00000001006dd3fc in LoopDataManager.notify(forChange:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-230104-2240_84afcfb/LoopWorkspace/Loop/Loop/Managers/LoopDataManager.swift:1089
#14 0x00000001006dd9fc in closure #1 in closure #4 in LoopDataManager.init(lastLoopCompleted:basalDeliveryState:settings:overrideHistory:analyticsServicesManager:localCacheDuration:doseStore:glucoseStore:carbStore:dosingDecisionStore:latestStoredSettingsProvider:now:pumpInsulinType:automaticDosingStatus:trustedTimeOffset:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-230104-2240_84afcfb/LoopWorkspace/Loop/Loop/Managers/LoopDataManager.swift:194
#15 0x00000001006281d4 in thunk for @escaping @callee_guaranteed () -> () ()
#16 0x0000000101b545a8 in _dispatch_call_block_and_release ()
#17 0x0000000101b5605c in _dispatch_client_callout ()
#18 0x0000000101b5e10c in _dispatch_lane_serial_drain ()
#19 0x0000000101b5ee34 in _dispatch_lane_invoke ()
#20 0x0000000101b6bcbc in _dispatch_workloop_worker_thread ()
#21 0x00000001d735ddf8 in _pthread_wqthread ()
#22 0x00000001d735db98 in start_wqthread ()
Enqueued from com.apple.main-thread (Thread 1) Queue : com.apple.main-thread (serial)
#0 0x0000000101b5ad4c in dispatch_async ()
#1 0x0000000191ac8a00 in _swift_dispatch_async ()
#2 0x0000000191ac94e8 in OS_dispatch_queue.async(group:qos:flags:execute:) ()
#3 0x00000001006dd8c0 in closure #4 in LoopDataManager.init(lastLoopCompleted:basalDeliveryState:settings:overrideHistory:analyticsServicesManager:localCacheDuration:doseStore:glucoseStore:carbStore:dosingDecisionStore:latestStoredSettingsProvider:now:pumpInsulinType:automaticDosingStatus:trustedTimeOffset:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-230104-2240_84afcfb/LoopWorkspace/Loop/Loop/Managers/LoopDataManager.swift:188
#4 0x000000010067e110 in thunk for @escaping @callee_guaranteed @Sendable (@in_guaranteed Notification) -> () ()
#5 0x00000001893033b0 in __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ ()
#6 0x00000001893aa454 in ___CFXRegistrationPost_block_invoke ()
#7 0x00000001836f00f0 in __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ ()
#8 0x00000001836c4240 in -[NSBlockOperation main] ()
#9 0x00000001836c41d0 in __NSOPERATION_IS_INVOKING_MAIN__ ()
#10 0x0000000183685578 in -[NSOperation start] ()
#11 0x00000001836852ac in __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ ()
#12 0x000000018368a9c0 in __NSOQSchedule_f ()
#13 0x0000000101b545a8 in _dispatch_call_block_and_release ()
#14 0x0000000101b5605c in _dispatch_client_callout ()
#15 0x0000000101b66810 in _dispatch_main_queue_drain ()
#16 0x0000000101b66354 in _dispatch_main_queue_callback_4CF ()
#17 0x00000001893666d8 in __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ ()
#18 0x000000018934803c in __CFRunLoopRun ()
#19 0x000000018934cec0 in CFRunLoopRunSpecific ()
#20 0x00000001c33a3368 in GSEventRunModal ()
#21 0x000000018b84286c in -[UIApplication _run] ()
#22 0x000000018b8424d0 in UIApplicationMain ()
#23 0x00000001008d49c4 in main at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-230104-2240_84afcfb/LoopWorkspace/Loop/Loop/main.swift:16
#24 0x00000001a7b6e960 in start ()
Enqueued from com.loopkit.InsulinDeliveryStore.queue (Thread 99) Queue : com.loopkit.InsulinDeliveryStore.queue (serial)
#0 0x0000000101b5ad4c in dispatch_async ()
#1 0x00000001836f89a0 in __NSOQSchedule ()
#2 0x00000001836e31ec in __addOperations ()
#3 0x000000018938d6dc in _CFXRegistrationPost ()
#4 0x00000001893179c8 in _CFXNotificationPost ()
#5 0x00000001836a5d9c in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
#6 0x0000000102358f00 in closure #1 in closure #2 in closure #1 in DoseStore.addPumpEvents(_:lastReconciliation:completion:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-230104-2240_84afcfb/LoopWorkspace/LoopKit/LoopKit/InsulinKit/DoseStore.swift:771
#7 0x000000010235dd34 in closure #1 in closure #1 in DoseStore.savePumpEventsToInsulinDeliveryStore(after:resolveMutable:completion:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-230104-2240_84afcfb/LoopWorkspace/LoopKit/LoopKit/InsulinKit/DoseStore.swift:945
#8 0x000000010230da74 in closure #1 in InsulinDeliveryStore.addDoseEntries(_:from:syncVersion:resolveMutable:completion:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-230104-2240_84afcfb/LoopWorkspace/LoopKit/LoopKit/InsulinKit/InsulinDeliveryStore.swift:435
#9 0x0000000102240934 in thunk for @escaping @callee_guaranteed () -> () ()
#10 0x0000000101b545a8 in _dispatch_call_block_and_release ()
#11 0x0000000101b5605c in _dispatch_client_callout ()
#12 0x0000000101b5e10c in _dispatch_lane_serial_drain ()
#13 0x0000000101b5ee34 in _dispatch_lane_invoke ()
#14 0x0000000101b6bcbc in _dispatch_workloop_worker_thread ()
#15 0x00000001d735ddf8 in _pthread_wqthread ()
#16 0x00000001d735db98 in start_wqthread ()
Thread 95#0 0x00000001c6c40fb0 in __workq_kernreturn ()
Thread 96#0 0x00000001c6c40fb0 in __workq_kernreturn ()
Thread 97#0 0x00000001c6c40fb0 in __workq_kernreturn ()
Thread 98#0 0x00000001c6c40fb0 in __workq_kernreturn ()
Thread 99#0 0x00000001c6c40fb0 in __workq_kernreturn ()
Thread 100#0 0x00000001d735db90 in start_wqthread ()
Thread 101#0 0x00000001c6c40fb0 in __workq_kernreturn ()
Thread 102#0 0x0000000000000000 in 0x00000000 ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment