Skip to content

Instantly share code, notes, and snippets.

@robinwo
Created January 3, 2023 20:44
Show Gist options
  • Save robinwo/eccfb3cffb1b5be3f18da3f4e2608cb7 to your computer and use it in GitHub Desktop.
Save robinwo/eccfb3cffb1b5be3f18da3f4e2608cb7 to your computer and use it in GitHub Desktop.
loop xcode thread
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 0x00000001002cb5cc in main at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/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 (14)#0 0x00000001c6c4160c in __select ()
#1 0x00000001893976a4 in __CFSocketManager ()
#2 0x00000001d735e6cc in _pthread_start ()
com.apple.NSURLConnectionLoader (18)#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 ()
WebThread (28)#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 0x000000019a192d3c in RunWebThread(void*) ()
#8 0x00000001d735e6cc in _pthread_start ()
Thread 34 Queue : com.loopkit.Loop.RemoteDataServicesManager.NightscoutService.DosingDecisionDispatchQueue (serial)
#0 0x00000001c6c40a24 in semaphore_wait_trap ()
#1 0x00000001015b2788 in _dispatch_sema4_wait ()
#2 0x00000001015b2e3c in _dispatch_semaphore_wait_slow ()
#3 0x0000000100c0dbf8 in interposed_dispatch_semaphore_wait ()
#4 0x00000001003b55f0 in closure #1 in RemoteDataServicesManager.uploadDosingDecisionData(to:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/RemoteDataServicesManager.swift:406
#5 0x0000000100020738 in thunk for @escaping @callee_guaranteed () -> () ()
#6 0x00000001015b05a8 in _dispatch_call_block_and_release ()
#7 0x00000001015b205c in _dispatch_client_callout ()
#8 0x00000001015ba10c in _dispatch_lane_serial_drain ()
#9 0x00000001015bae34 in _dispatch_lane_invoke ()
#10 0x00000001015c7cbc in _dispatch_workloop_worker_thread ()
#11 0x00000001d735ddf8 in _pthread_wqthread ()
Enqueued from com.loopkit.DosingDecisionStore.dataAccessQueue (Thread 43) Queue : com.loopkit.DosingDecisionStore.dataAccessQueue (serial)
#0 0x00000001015b6d4c in dispatch_async ()
#1 0x0000000191ac8a00 in _swift_dispatch_async ()
#2 0x0000000191ac94e8 in OS_dispatch_queue.async(group:qos:flags:execute:) ()
#3 0x00000001003b03e4 in RemoteDataServicesManager.uploadDosingDecisionData(to:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/RemoteDataServicesManager.swift:380
#4 0x00000001003b26c8 in closure #6 in RemoteDataServicesManager.triggerUpload(for:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/RemoteDataServicesManager.swift:193
#5 0x00000001003b2960 in partial apply for closure #6 in RemoteDataServicesManager.triggerUpload(for:) ()
#6 0x00000001831923b8 in Sequence.forEach(_:) ()
#7 0x00000001003b2134 in RemoteDataServicesManager.triggerUpload(for:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/RemoteDataServicesManager.swift:193
#8 0x00000001003b5300 in RemoteDataServicesManager.dosingDecisionStoreHasUpdatedDosingDecisionData(_:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/RemoteDataServicesManager.swift:372
#9 0x00000001001baf3c in DeviceDataManager.dosingDecisionStoreHasUpdatedDosingDecisionData(_:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/DeviceDataManager.swift:1204
#10 0x00000001001baf60 in protocol witness for DosingDecisionStoreDelegate.dosingDecisionStoreHasUpdatedDosingDecisionData(_:) in conformance DeviceDataManager ()
#11 0x0000000101cc9fe0 in DosingDecisionStore.purgeDosingDecisionObjects(before:completion:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/LoopKit/LoopKit/DosingDecisionStore.swift:85
#12 0x0000000101cc9608 in DosingDecisionStore.purgeExpiredDosingDecisions() at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/LoopKit/LoopKit/DosingDecisionStore.swift:56
#13 0x0000000101cc44a8 in closure #1 in DosingDecisionStore.storeDosingDecision(_:completion:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/LoopKit/LoopKit/DosingDecisionStore.swift:46
#14 0x0000000101c4541c in thunk for @escaping @callee_guaranteed () -> () ()
#15 0x00000001015b05a8 in _dispatch_call_block_and_release ()
#16 0x00000001015b205c in _dispatch_client_callout ()
#17 0x00000001015ba10c in _dispatch_lane_serial_drain ()
#18 0x00000001015bae34 in _dispatch_lane_invoke ()
#19 0x00000001015c7cbc in _dispatch_workloop_worker_thread ()
#20 0x00000001d735ddf8 in _pthread_wqthread ()
#21 0x00000001d735db98 in start_wqthread ()
Thread 36#0 0x00000001c6c40fb0 in __workq_kernreturn ()
Thread 37 Queue : com.loopkit.InsulinDeliveryStore.queue (serial)
#0 0x00000001c6c41000 in kevent_id ()
#1 0x00000001015d6ec4 in _dispatch_kq_poll ()
#2 0x00000001015d78e8 in _dispatch_event_loop_wait_for_ownership ()
#3 0x00000001015c3c38 in __DISPATCH_WAIT_FOR_QUEUE__ ()
#4 0x00000001015c3594 in _dispatch_sync_f_slow ()
#5 0x0000000190b6e968 in -[NSManagedObjectContext performBlockAndWait:] ()
#6 0x0000000101d1a320 in closure #1 in InsulinDeliveryStore.executeDoseQuery(fromQueryAnchor:limit:completion:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/LoopKit/LoopKit/InsulinKit/InsulinDeliveryStore.swift:760
#7 0x0000000101c4541c in thunk for @escaping @callee_guaranteed () -> () ()
#8 0x00000001015b05a8 in _dispatch_call_block_and_release ()
#9 0x00000001015b205c in _dispatch_client_callout ()
#10 0x00000001015ba10c in _dispatch_lane_serial_drain ()
#11 0x00000001015bae34 in _dispatch_lane_invoke ()
#12 0x00000001015c7cbc in _dispatch_workloop_worker_thread ()
#13 0x00000001d735ddf8 in _pthread_wqthread ()
Enqueued from com.loopkit.Loop.RemoteDataServicesManager.NightscoutService.DoseDispatchQueue (Thread 42) Queue : com.loopkit.Loop.RemoteDataServicesManager.NightscoutService.DoseDispatchQueue (serial)
#0 0x00000001015b6d4c in dispatch_async ()
#1 0x0000000191ac8a00 in _swift_dispatch_async ()
#2 0x0000000191ac94e8 in OS_dispatch_queue.async(group:qos:flags:execute:) ()
#3 0x0000000101d1a068 in InsulinDeliveryStore.executeDoseQuery(fromQueryAnchor:limit:completion:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/LoopKit/LoopKit/InsulinKit/InsulinDeliveryStore.swift:749
#4 0x00000001003b4b30 in closure #1 in RemoteDataServicesManager.uploadDoseData(to:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/RemoteDataServicesManager.swift:331
#5 0x0000000100020738 in thunk for @escaping @callee_guaranteed () -> () ()
#6 0x00000001015b05a8 in _dispatch_call_block_and_release ()
#7 0x00000001015b205c in _dispatch_client_callout ()
#8 0x00000001015ba10c in _dispatch_lane_serial_drain ()
#9 0x00000001015bae34 in _dispatch_lane_invoke ()
#10 0x00000001015c7cbc in _dispatch_workloop_worker_thread ()
#11 0x00000001d735ddf8 in _pthread_wqthread ()
#12 0x00000001d735db98 in start_wqthread ()
Enqueued from com.loopkit.Loop.RemoteDataServicesManager.NightscoutService.DoseDispatchQueue (Thread 42) Queue : com.loopkit.Loop.RemoteDataServicesManager.NightscoutService.DoseDispatchQueue (serial)
#0 0x00000001015b6d4c in dispatch_async ()
#1 0x0000000191ac8a00 in _swift_dispatch_async ()
#2 0x0000000191ac94e8 in OS_dispatch_queue.async(group:qos:flags:execute:) ()
#3 0x00000001003b0114 in RemoteDataServicesManager.uploadDoseData(to:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/RemoteDataServicesManager.swift:326
#4 0x00000001003b4bb4 in closure #1 in RemoteDataServicesManager.uploadDoseData(to:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/RemoteDataServicesManager.swift:356
#5 0x0000000100020738 in thunk for @escaping @callee_guaranteed () -> () ()
#6 0x00000001015b05a8 in _dispatch_call_block_and_release ()
#7 0x00000001015b205c in _dispatch_client_callout ()
#8 0x00000001015ba10c in _dispatch_lane_serial_drain ()
#9 0x00000001015bae34 in _dispatch_lane_invoke ()
#10 0x00000001015c7cbc in _dispatch_workloop_worker_thread ()
#11 0x00000001d735ddf8 in _pthread_wqthread ()
#12 0x00000001d735db98 in start_wqthread ()
Enqueued from com.loopkit.InsulinDeliveryStore.queue (Thread 43) Queue : com.loopkit.InsulinDeliveryStore.queue (serial)
#0 0x00000001015b6d4c in dispatch_async ()
#1 0x0000000191ac8a00 in _swift_dispatch_async ()
#2 0x0000000191ac94e8 in OS_dispatch_queue.async(group:qos:flags:execute:) ()
#3 0x00000001003b0114 in RemoteDataServicesManager.uploadDoseData(to:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/RemoteDataServicesManager.swift:326
#4 0x00000001003b2670 in closure #5 in RemoteDataServicesManager.triggerUpload(for:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/RemoteDataServicesManager.swift:191
#5 0x00000001003b2980 in partial apply for closure #5 in RemoteDataServicesManager.triggerUpload(for:) ()
#6 0x00000001831923b8 in Sequence.forEach(_:) ()
#7 0x00000001003b20c0 in RemoteDataServicesManager.triggerUpload(for:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/RemoteDataServicesManager.swift:191
#8 0x00000001003b4858 in RemoteDataServicesManager.insulinDeliveryStoreHasUpdatedDoseData(_:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/RemoteDataServicesManager.swift:318
#9 0x00000001001bb00c in DeviceDataManager.insulinDeliveryStoreHasUpdatedDoseData(_:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/DeviceDataManager.swift:1222
#10 0x00000001001bb030 in protocol witness for InsulinDeliveryStoreDelegate.insulinDeliveryStoreHasUpdatedDoseData(_:) in conformance DeviceDataManager ()
#11 0x0000000101d11b30 in closure #1 in InsulinDeliveryStore.addDoseEntries(_:from:syncVersion:resolveMutable:completion:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/LoopKit/LoopKit/InsulinKit/InsulinDeliveryStore.swift:433
#12 0x0000000101c4541c in thunk for @escaping @callee_guaranteed () -> () ()
#13 0x00000001015b05a8 in _dispatch_call_block_and_release ()
#14 0x00000001015b205c in _dispatch_client_callout ()
#15 0x00000001015ba10c in _dispatch_lane_serial_drain ()
#16 0x00000001015bae34 in _dispatch_lane_invoke ()
#17 0x00000001015c7cbc in _dispatch_workloop_worker_thread ()
#18 0x00000001d735ddf8 in _pthread_wqthread ()
#19 0x00000001d735db98 in start_wqthread ()
Thread 39#0 0x00000001c6c40fb0 in __workq_kernreturn ()
Thread 40 Queue : com.loudnate.Naterade.LoopDataManager.dataAccessQueue (serial)
#0 0x00000001c6c415e0 in __ulock_wait ()
#1 0x00000001015b2bdc in _dlock_wait ()
#2 0x00000001015b2f8c in _dispatch_group_wait_slow ()
#3 0x0000000100c0dea4 in interposed_dispatch_group_wait ()
#4 0x0000000191ac8efc in OS_dispatch_group.wait(wallTimeout:) ()
#5 0x00000001000de120 in LoopDataManager.update(for:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/LoopDataManager.swift:1038
#6 0x00000001000f9150 in closure #1 in LoopDataManager.getLoopState(_:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/LoopDataManager.swift:1913
#7 0x0000000100020738 in thunk for @escaping @callee_guaranteed () -> () ()
#8 0x00000001015b05a8 in _dispatch_call_block_and_release ()
#9 0x00000001015b205c in _dispatch_client_callout ()
#10 0x00000001015ba10c in _dispatch_lane_serial_drain ()
#11 0x00000001015bae34 in _dispatch_lane_invoke ()
#12 0x00000001015c7cbc in _dispatch_workloop_worker_thread ()
#13 0x00000001d735ddf8 in _pthread_wqthread ()
Enqueued from com.apple.main-thread (Thread 1) Queue : com.apple.main-thread (serial)
#0 0x00000001015b6d4c in dispatch_async ()
#1 0x0000000191ac8a00 in _swift_dispatch_async ()
#2 0x0000000191ac94e8 in OS_dispatch_queue.async(group:qos:flags:execute:) ()
#3 0x00000001000f8fe0 in LoopDataManager.getLoopState(_:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/LoopDataManager.swift:1912
#4 0x000000010014df08 in StatusTableViewController.reloadData(animated:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/View Controllers/StatusTableViewController.swift:391
#5 0x0000000102fa1bb8 in ChartsTableViewController.active.didset at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/LoopKit/LoopKitUI/View Controllers/ChartsTableViewController.swift:116
#6 0x0000000102fa1ca0 in ChartsTableViewController.active.setter ()
#7 0x00000001001546d8 in StatusTableViewController.active.setter ()
#8 0x0000000102fa0af8 in closure #1 in ChartsTableViewController.viewDidLoad() at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/LoopKit/LoopKitUI/View Controllers/ChartsTableViewController.swift:43
#9 0x0000000191aea754 in Subscribers.Sink.receive(_:) ()
#10 0x0000000191aea0a8 in protocol witness for Subscriber.receive(_:) in conformance Subscribers.Sink<τ_0_0, τ_0_1> ()
#11 0x0000000191af1904 in closure #1 in Publishers.ReceiveOn.Inner.receive(_:) ()
#12 0x00000001838161bc in thunk for @escaping @callee_guaranteed @Sendable () -> () ()
#13 0x000000018930f524 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ ()
#14 0x0000000189377d7c in __CFRunLoopDoBlocks ()
#15 0x0000000189347ba0 in __CFRunLoopRun ()
#16 0x000000018934cec0 in CFRunLoopRunSpecific ()
#17 0x00000001c33a3368 in GSEventRunModal ()
#18 0x000000018b84286c in -[UIApplication _run] ()
#19 0x000000018b8424d0 in UIApplicationMain ()
#20 0x00000001002cb5cc in main at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/main.swift:16
#21 0x00000001a7b6e960 in start ()
Thread 41 Queue : com.loopkit.CarbStore.queue (serial)
#0 0x00000001c6c41000 in kevent_id ()
#1 0x00000001015d6ec4 in _dispatch_kq_poll ()
#2 0x00000001015d78e8 in _dispatch_event_loop_wait_for_ownership ()
#3 0x00000001015c3c38 in __DISPATCH_WAIT_FOR_QUEUE__ ()
#4 0x00000001015c3594 in _dispatch_sync_f_slow ()
#5 0x0000000190b6e968 in -[NSManagedObjectContext performBlockAndWait:] ()
#6 0x0000000101e69ca0 in CarbStore.getCarbEntries(start:end:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/LoopKit/LoopKit/CarbKit/CarbStore.swift:388
#7 0x0000000101e69890 in closure #1 in CarbStore.getCarbEntries(start:end:completion:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/LoopKit/LoopKit/CarbKit/CarbStore.swift:372
#8 0x0000000101c4541c in thunk for @escaping @callee_guaranteed () -> () ()
#9 0x00000001015b05a8 in _dispatch_call_block_and_release ()
#10 0x00000001015b205c in _dispatch_client_callout ()
#11 0x00000001015ba10c in _dispatch_lane_serial_drain ()
#12 0x00000001015bae34 in _dispatch_lane_invoke ()
#13 0x00000001015c7cbc in _dispatch_workloop_worker_thread ()
#14 0x00000001d735ddf8 in _pthread_wqthread ()
Enqueued from com.loopkit.CarbStore.queue (Thread 41) Queue : com.loopkit.CarbStore.queue (serial)
#0 0x00000001015b6d4c in dispatch_async ()
#1 0x0000000191ac8a00 in _swift_dispatch_async ()
#2 0x0000000191ac94e8 in OS_dispatch_queue.async(group:qos:flags:execute:) ()
#3 0x0000000101e697d4 in CarbStore.getCarbEntries(start:end:completion:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/LoopKit/LoopKit/CarbKit/CarbStore.swift:371
#4 0x0000000101e762fc in closure #1 in CarbStore.getGlucoseEffects(start:end:effectVelocities:completion:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/LoopKit/LoopKit/CarbKit/CarbStore.swift:1061
#5 0x0000000101c4541c in thunk for @escaping @callee_guaranteed () -> () ()
#6 0x00000001015b05a8 in _dispatch_call_block_and_release ()
#7 0x00000001015b205c in _dispatch_client_callout ()
#8 0x00000001015ba10c in _dispatch_lane_serial_drain ()
#9 0x00000001015bae34 in _dispatch_lane_invoke ()
#10 0x00000001015c7cbc in _dispatch_workloop_worker_thread ()
#11 0x00000001d735ddf8 in _pthread_wqthread ()
#12 0x00000001d735db98 in start_wqthread ()
Enqueued from com.loudnate.Naterade.LoopDataManager.dataAccessQueue (Thread 40) Queue : com.loudnate.Naterade.LoopDataManager.dataAccessQueue (serial)
#0 0x00000001015b6d4c in dispatch_async ()
#1 0x0000000191ac8a00 in _swift_dispatch_async ()
#2 0x0000000191ac94e8 in OS_dispatch_queue.async(group:qos:flags:execute:) ()
#3 0x0000000101e75d68 in CarbStore.getGlucoseEffects(start:end:effectVelocities:completion:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/LoopKit/LoopKit/CarbKit/CarbStore.swift:1052
#4 0x0000000100070ebc in protocol witness for CarbStoreProtocol.getGlucoseEffects(start:end:effectVelocities:completion:) in conformance CarbStore ()
#5 0x00000001000ddd98 in LoopDataManager.update(for:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/LoopDataManager.swift:986
#6 0x00000001000f9150 in closure #1 in LoopDataManager.getLoopState(_:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/LoopDataManager.swift:1913
#7 0x0000000100020738 in thunk for @escaping @callee_guaranteed () -> () ()
#8 0x00000001015b05a8 in _dispatch_call_block_and_release ()
#9 0x00000001015b205c in _dispatch_client_callout ()
#10 0x00000001015ba10c in _dispatch_lane_serial_drain ()
#11 0x00000001015bae34 in _dispatch_lane_invoke ()
#12 0x00000001015c7cbc in _dispatch_workloop_worker_thread ()
#13 0x00000001d735ddf8 in _pthread_wqthread ()
#14 0x00000001d735db98 in start_wqthread ()
Enqueued from com.apple.main-thread (Thread 1) Queue : com.apple.main-thread (serial)
#0 0x00000001015b6d4c in dispatch_async ()
#1 0x0000000191ac8a00 in _swift_dispatch_async ()
#2 0x0000000191ac94e8 in OS_dispatch_queue.async(group:qos:flags:execute:) ()
#3 0x00000001000f8fe0 in LoopDataManager.getLoopState(_:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/LoopDataManager.swift:1912
#4 0x000000010014df08 in StatusTableViewController.reloadData(animated:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/View Controllers/StatusTableViewController.swift:391
#5 0x0000000102fa1bb8 in ChartsTableViewController.active.didset at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/LoopKit/LoopKitUI/View Controllers/ChartsTableViewController.swift:116
#6 0x0000000102fa1ca0 in ChartsTableViewController.active.setter ()
#7 0x00000001001546d8 in StatusTableViewController.active.setter ()
#8 0x0000000102fa0af8 in closure #1 in ChartsTableViewController.viewDidLoad() at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/LoopKit/LoopKitUI/View Controllers/ChartsTableViewController.swift:43
#9 0x0000000191aea754 in Subscribers.Sink.receive(_:) ()
#10 0x0000000191aea0a8 in protocol witness for Subscriber.receive(_:) in conformance Subscribers.Sink<τ_0_0, τ_0_1> ()
#11 0x0000000191af1904 in closure #1 in Publishers.ReceiveOn.Inner.receive(_:) ()
#12 0x00000001838161bc in thunk for @escaping @callee_guaranteed @Sendable () -> () ()
#13 0x000000018930f524 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ ()
#14 0x0000000189377d7c in __CFRunLoopDoBlocks ()
#15 0x0000000189347ba0 in __CFRunLoopRun ()
#16 0x000000018934cec0 in CFRunLoopRunSpecific ()
#17 0x00000001c33a3368 in GSEventRunModal ()
#18 0x000000018b84286c in -[UIApplication _run] ()
#19 0x000000018b8424d0 in UIApplicationMain ()
#20 0x00000001002cb5cc in main at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/main.swift:16
#21 0x00000001a7b6e960 in start ()
Thread 42 Queue : com.loopkit.Loop.RemoteDataServicesManager.NightscoutService.DoseDispatchQueue (serial)
#0 0x00000001c6c40a24 in semaphore_wait_trap ()
#1 0x00000001015b2788 in _dispatch_sema4_wait ()
#2 0x00000001015b2e3c in _dispatch_semaphore_wait_slow ()
#3 0x0000000100c0dbf8 in interposed_dispatch_semaphore_wait ()
#4 0x00000001003b4b48 in closure #1 in RemoteDataServicesManager.uploadDoseData(to:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/RemoteDataServicesManager.swift:352
#5 0x0000000100020738 in thunk for @escaping @callee_guaranteed () -> () ()
#6 0x00000001015b05a8 in _dispatch_call_block_and_release ()
#7 0x00000001015b205c in _dispatch_client_callout ()
#8 0x00000001015ba10c in _dispatch_lane_serial_drain ()
#9 0x00000001015bae34 in _dispatch_lane_invoke ()
#10 0x00000001015c7cbc in _dispatch_workloop_worker_thread ()
#11 0x00000001d735ddf8 in _pthread_wqthread ()
Enqueued from com.loopkit.Loop.RemoteDataServicesManager.NightscoutService.DoseDispatchQueue (Thread 42) Queue : com.loopkit.Loop.RemoteDataServicesManager.NightscoutService.DoseDispatchQueue (serial)
#0 0x00000001015b6d4c in dispatch_async ()
#1 0x0000000191ac8a00 in _swift_dispatch_async ()
#2 0x0000000191ac94e8 in OS_dispatch_queue.async(group:qos:flags:execute:) ()
#3 0x00000001003b0114 in RemoteDataServicesManager.uploadDoseData(to:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/RemoteDataServicesManager.swift:326
#4 0x00000001003b4bb4 in closure #1 in RemoteDataServicesManager.uploadDoseData(to:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/RemoteDataServicesManager.swift:356
#5 0x0000000100020738 in thunk for @escaping @callee_guaranteed () -> () ()
#6 0x00000001015b05a8 in _dispatch_call_block_and_release ()
#7 0x00000001015b205c in _dispatch_client_callout ()
#8 0x00000001015ba10c in _dispatch_lane_serial_drain ()
#9 0x00000001015bae34 in _dispatch_lane_invoke ()
#10 0x00000001015c7cbc in _dispatch_workloop_worker_thread ()
#11 0x00000001d735ddf8 in _pthread_wqthread ()
#12 0x00000001d735db98 in start_wqthread ()
Enqueued from com.loopkit.InsulinDeliveryStore.queue (Thread 43) Queue : com.loopkit.InsulinDeliveryStore.queue (serial)
#0 0x00000001015b6d4c in dispatch_async ()
#1 0x0000000191ac8a00 in _swift_dispatch_async ()
#2 0x0000000191ac94e8 in OS_dispatch_queue.async(group:qos:flags:execute:) ()
#3 0x00000001003b0114 in RemoteDataServicesManager.uploadDoseData(to:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/RemoteDataServicesManager.swift:326
#4 0x00000001003b2670 in closure #5 in RemoteDataServicesManager.triggerUpload(for:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/RemoteDataServicesManager.swift:191
#5 0x00000001003b2980 in partial apply for closure #5 in RemoteDataServicesManager.triggerUpload(for:) ()
#6 0x00000001831923b8 in Sequence.forEach(_:) ()
#7 0x00000001003b20c0 in RemoteDataServicesManager.triggerUpload(for:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/RemoteDataServicesManager.swift:191
#8 0x00000001003b4858 in RemoteDataServicesManager.insulinDeliveryStoreHasUpdatedDoseData(_:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/RemoteDataServicesManager.swift:318
#9 0x00000001001bb00c in DeviceDataManager.insulinDeliveryStoreHasUpdatedDoseData(_:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/Loop/Loop/Managers/DeviceDataManager.swift:1222
#10 0x00000001001bb030 in protocol witness for InsulinDeliveryStoreDelegate.insulinDeliveryStoreHasUpdatedDoseData(_:) in conformance DeviceDataManager ()
#11 0x0000000101d11b30 in closure #1 in InsulinDeliveryStore.addDoseEntries(_:from:syncVersion:resolveMutable:completion:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/LoopKit/LoopKit/InsulinKit/InsulinDeliveryStore.swift:433
#12 0x0000000101c4541c in thunk for @escaping @callee_guaranteed () -> () ()
#13 0x00000001015b05a8 in _dispatch_call_block_and_release ()
#14 0x00000001015b205c in _dispatch_client_callout ()
#15 0x00000001015ba10c in _dispatch_lane_serial_drain ()
#16 0x00000001015bae34 in _dispatch_lane_invoke ()
#17 0x00000001015c7cbc in _dispatch_workloop_worker_thread ()
#18 0x00000001d735ddf8 in _pthread_wqthread ()
#19 0x00000001d735db98 in start_wqthread ()
Thread 43 Queue : SQLQueue 0x101b13040 for Model.sqlite (serial)
#0 0x00000001c6c41bbc in pread ()
#1 0x00000001ad34d8c0 in ___lldb_unnamed_symbol964 ()
#2 0x00000001ad29dac0 in ___lldb_unnamed_symbol557 ()
#3 0x00000001ad2c1010 in ___lldb_unnamed_symbol603 ()
#4 0x00000001ad3579e4 in ___lldb_unnamed_symbol1051 ()
#5 0x00000001ad363860 in ___lldb_unnamed_symbol1144 ()
#6 0x00000001ad364ac0 in ___lldb_unnamed_symbol1156 ()
#7 0x00000001ad2e2ee8 in ___lldb_unnamed_symbol632 ()
#8 0x00000001ad2da690 in sqlite3_step ()
#9 0x0000000190b43bf4 in _execute ()
#10 0x0000000190b0d074 in -[NSSQLiteConnection execute] ()
#11 0x0000000190b0b348 in newFetchedRowsForFetchPlan_MT ()
#12 0x0000000190b08434 in _executeFetchRequest ()
#13 0x0000000190b28c5c in -[NSSQLFetchRequestContext executeRequestCore:] ()
#14 0x0000000190b288e8 in -[NSSQLStoreRequestContext executeRequestUsingConnection:] ()
#15 0x0000000190b2852c in __52-[NSSQLDefaultConnectionManager handleStoreRequest:]_block_invoke ()
#16 0x0000000190bd054c in __37-[NSSQLiteConnection performAndWait:]_block_invoke ()
#17 0x00000001015b205c in _dispatch_client_callout ()
#18 0x00000001015c3884 in _dispatch_lane_barrier_sync_invoke_and_complete ()
#19 0x0000000190bd03ec in -[NSSQLiteConnection performAndWait:] ()
#20 0x0000000190b17f78 in -[NSSQLDefaultConnectionManager handleStoreRequest:] ()
#21 0x0000000190b17e48 in -[NSSQLCoreDispatchManager routeStoreRequest:] ()
#22 0x0000000190b07074 in -[NSSQLCore dispatchRequest:withRetries:] ()
#23 0x0000000190b129b8 in -[NSSQLCore executeRequest:withContext:error:] ()
#24 0x0000000190c83c74 in __65-[NSPersistentStoreCoordinator executeRequest:withContext:error:]_block_invoke.551 ()
#25 0x0000000190b4d608 in -[NSPersistentStoreCoordinator _routeHeavyweightBlock:] ()
#26 0x0000000190b11644 in -[NSPersistentStoreCoordinator executeRequest:withContext:error:] ()
#27 0x0000000190b048e4 in -[NSManagedObjectContext executeFetchRequest:error:] ()
#28 0x0000000190affa00 in -[NSManagedObjectContext executeRequest:error:] ()
#29 0x0000000190c18b40 in NSManagedObjectContext.fetch<τ_0_0>(_:) ()
#30 0x0000000101ccbe10 in closure #1 in closure #1 in DosingDecisionStore.executeDosingDecisionQuery(fromQueryAnchor:limit:completion:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/LoopKit/LoopKit/DosingDecisionStore.swift:164
#31 0x0000000101c52868 in thunk for @callee_guaranteed () -> () ()
#32 0x0000000101c528c0 in thunk for @escaping @callee_guaranteed () -> () ()
#33 0x0000000190b6ede0 in developerSubmittedBlockToNSManagedObjectContextPerform ()
#34 0x00000001015b205c in _dispatch_client_callout ()
#35 0x00000001015c3e10 in _dispatch_sync_invoke_and_complete_recurse ()
#36 0x00000001015c35e0 in _dispatch_sync_f_slow ()
#37 0x0000000190b6e968 in -[NSManagedObjectContext performBlockAndWait:] ()
#38 0x0000000101ccb640 in closure #1 in DosingDecisionStore.executeDosingDecisionQuery(fromQueryAnchor:limit:completion:) at /Users/robin.wouters/Downloads/BuildLoop/Loop-dev-221227-2134_3770f56/LoopWorkspace/LoopKit/LoopKit/DosingDecisionStore.swift:156
#39 0x0000000101c4541c in thunk for @escaping @callee_guaranteed () -> () ()
#40 0x00000001015b05a8 in _dispatch_call_block_and_release ()
#41 0x00000001015b205c in _dispatch_client_callout ()
#42 0x00000001015ba10c in _dispatch_lane_serial_drain ()
#43 0x00000001015bae34 in _dispatch_lane_invoke ()
#44 0x00000001015c7cbc in _dispatch_workloop_worker_thread ()
#45 0x00000001d735ddf8 in _pthread_wqthread ()
Thread 44#0 0x00000001c6c40fb0 in __workq_kernreturn ()
Thread 45#0 0x00000001d735db90 in start_wqthread ()
JavaScriptCore libpas scavenger (46)#0 0x00000001c6c4137c in __psynch_cvwait ()
#1 0x00000001d736506c in _pthread_cond_wait ()
#2 0x000000019ca66504 in scavenger_thread_main ()
#3 0x00000001d735e6cc in _pthread_start ()
Thread 47#0 0x0000000000000000 in 0x00000000 ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment