Describe the bug
Symptom: The first time I issue a Send To (for a Loop Report) after a rebuild, Loop is very slow to respond.
When attached to Xcode, the debug log shows errors - appended below.
Expected behavior
Prompt response for send to with no errors showing
Phone
SE running iOS 17.6.1
Test with other hardware
Repeated this test with two other test phones, errors are not as obvious as for iOS 17 (and no slow-down for first instance noted)
iPhone 7+ running iOS 15.8.3
iPhone 8 running iOS 16.7.10
Added Xcode debug log excerpts at the end for iOS 15 and iOS 16
the excerpt for the iOS 16 Xcode debug log ends with "This will become a fault soon"
Loop Version
dev branch
CGM
Nightscout as CGM
Pump
rPi DASH simulator
Example First Time iOS 17:
Xcode log excerpt for Issue Report Send To
after selecting send to, the app is slow to respond and the following items appear in the Xcode debug log
then the app responds as expected
the slow response seems to be only the first time - however, similar error messages show up each time in debug log
Failed to request default share mode for fileURL:file:///private/var/mobile/Containers/Data/Application/54898A59-81BD-48B7-A448-E9E5090CFA46/tmp/Loop%20Report%202024-09-05%2007:42:52-07:00.md error:Error Domain=NSOSStatusErrorDomain Code=-10814 "(null)" UserInfo={_LSLine=1741, _LSFunction=runEvaluator}
Type: Error | Timestamp: 2024-09-05 07:42:53.606389-07:00 | Process: Loop | Library: Sharing | Subsystem: com.apple.ShareSheet | Category: ShareSheet | TID: 0x63ef29
Only support loading options for CKShare and SWY types.
Type: Error | Timestamp: 2024-09-05 07:42:53.611994-07:00 | Process: Loop | Library: Sharing | Subsystem: com.apple.ShareSheet | Category: ShareSheet | TID: 0x63ef29
error fetching item for URL:file:///private/var/mobile/Containers/Data/Application/54898A59-81BD-48B7-A448-E9E5090CFA46/tmp/Loop%20Report%202024-09-05%2007:42:52-07:00.md : (null)
Type: Error | Timestamp: 2024-09-05 07:42:53.614622-07:00 | Process: Loop | Library: Sharing | Subsystem: com.apple.ShareSheet | Category: ShareSheet | TID: 0x63ef29
error fetching file provider domain for URL:file:///private/var/mobile/Containers/Data/Application/54898A59-81BD-48B7-A448-E9E5090CFA46/tmp/Loop%20Report%202024-09-05%2007:42:52-07:00.md : (null)
Type: Error | Timestamp: 2024-09-05 07:42:53.624314-07:00 | Process: Loop | Library: Sharing | Subsystem: com.apple.ShareSheet | Category: ShareSheet | TID: 0x63ef29
error fetching item for URL:file:///private/var/mobile/Containers/Data/Application/54898A59-81BD-48B7-A448-E9E5090CFA46/tmp/Loop%20Report%202024-09-05%2007:42:52-07:00.md : (null)
Type: Error | Timestamp: 2024-09-05 07:42:53.626280-07:00 | Process: Loop | Library: Sharing | Subsystem: com.apple.ShareSheet | Category: ShareSheet | TID: 0x6898ef
Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "(originator doesn't have entitlement com.apple.runningboard.primitiveattribute AND originator doesn't have entitlement com.apple.runningboard.assertions.frontboard AND target is not running or doesn't have entitlement com.apple.runningboard.trustedtarget AND Target not hosted by originator)" UserInfo={NSLocalizedFailureReason=(originator doesn't have entitlement com.apple.runningboard.primitiveattribute AND originator doesn't have entitlement com.apple.runningboard.assertions.frontboard AND target is not running or doesn't have entitlement com.apple.runningboard.trustedtarget AND Target not hosted by originator)}>
Type: Error | Timestamp: 2024-09-05 07:43:00.068279-07:00 | Process: Loop | Library: RunningBoardServices | Subsystem: com.apple.runningboard | Category: assertion | TID: 0x63ef29
(501) personaAttributesForPersonaType for type:0 failed with error Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.mobile.usermanagerd.xpc was invalidated: failed at lookup with error 159 - Sandbox restriction." UserInfo={NSDebugDescription=The connection to service named com.apple.mobile.usermanagerd.xpc was invalidated: failed at lookup with error 159 - Sandbox restriction.}
Type: Error | Timestamp: 2024-09-05 07:43:00.069323-07:00 | Process: Loop | Library: UserManagement | TID: 0x63ef29
Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 "Client not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false}
Type: Fault | Timestamp: 2024-09-05 07:43:00.078568-07:00 | Process: Loop | Library: RunningBoardServices | Subsystem: com.apple.runningboard | Category: general | TID: 0x68997c
elapsedCPUTimeForFrontBoard couldn't generate a task port
Type: Error | Timestamp: 2024-09-05 07:43:00.078617-07:00 | Process: Loop | Library: RunningBoardServices | Subsystem: com.apple.runningboard | Category: process | TID: 0x68997c
Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 "Client not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false}
Type: Fault | Timestamp: 2024-09-05 07:43:00.079189-07:00 | Process: Loop | Library: RunningBoardServices | Subsystem: com.apple.runningboard | Category: general | TID: 0x68997c
elapsedCPUTimeForFrontBoard couldn't generate a task port
Type: Error | Timestamp: 2024-09-05 07:43:00.079222-07:00 | Process: Loop | Library: RunningBoardServices | Subsystem: com.apple.runningboard | Category: process | TID: 0x68997c
<0x105b0f660> Gesture: System gesture gate timed out.
Type: Error | Timestamp: 2024-09-05 07:43:00.112533-07:00 | Process: Loop | Library: UIKitCore | Subsystem: com.apple.UIKit | Category: SystemGestureGate | TID: 0x63ef29
Received port for identifier response: <(null)> with error:Error Domain=RBSServiceErrorDomain Code=1 "Client not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false}
Type: Fault | Timestamp: 2024-09-05 07:43:00.139209-07:00 | Process: Loop | Library: RunningBoardServices | Subsystem: com.apple.runningboard | Category: general | TID: 0x6899be
elapsedCPUTimeForFrontBoard couldn't generate a task port
Type: Error | Timestamp: 2024-09-05 07:43:00.139294-07:00 | Process: Loop | Library: RunningBoardServices | Subsystem: com.apple.runningboard | Category: process | TID: 0x6899be
Example iOS 17
Xcode log excerpt for critical log export
after the zip finished tapped on airdrop
no slow-down was discernable, but noticed similar error notices in Xcode debug log
2024-09-05 08:03:21.352544-0700 Loop[82451:2573645] [Default] Task Loop[82451]/1#10 LF=0 couldn't find entitlement CopresenceCore.Entitlement.publicAPI error nil
2024-09-05 08:03:22.273848-0700 Loop[82451:2573645] [Default] Task Loop[82451]/1#10 LF=0 couldn't find entitlement CopresenceCore.Entitlement.publicAPI error nil
2024-09-05 08:03:22.914354-0700 Loop[82451:2573645] [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
2024-09-05 08:03:22.914426-0700 Loop[82451:2573645] [default] Attempt to map database failed: permission was denied. This attempt will not be retried.
2024-09-05 08:03:22.914546-0700 Loop[82451:2573645] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
2024-09-05 08:03:22.921360-0700 Loop[82451:2573645] [default] -imageForImageDescriptor: can do IO please adopt -imageForDescriptor: for IO free drawing or -prepareImageForDescriptor: if IO is allowed. (This will become a fault soon.)
2024-09-05 08:03:22.964242-0700 Loop[82451:2573645] [LayoutConstraints] Changing the translatesAutoresizingMaskIntoConstraints property of a UICollectionReusableView that is managed by a UICollectionView is not supported, and will result in incorrect self-sizing. View: <_UIActivityContentFooterView: 0x101e808e0; baseClass = UICollectionReusableView; frame = (20 236; 374 52); layer = <CALayer: 0x283fe3ba0>>
Example iOS 16
2024-09-05 08:07:29.495416-0700 Loop[16177:5152571] [PersistentDeviceLog] Deleted 1971 DeviceLogEntries
2024-09-05 08:07:34.359568-0700 Loop[16177:5152322] [ShareSheet] Failed to request default share mode for fileURL:file:///private/var/mobile/Containers/Data/Application/3744B7F1-46A2-46E6-8F29-1DE7FD9D744B/tmp/Loop%20Report%202024-09-05%2008:07:29-07:00.md error:Error Domain=NSOSStatusErrorDomain Code=-10814 "(null)" UserInfo={_LSLine=1569, _LSFunction=runEvaluator}
2024-09-05 08:07:34.364051-0700 Loop[16177:5152322] [ShareSheet] Only support loading options for CKShare and SWY types.
2024-09-05 08:07:34.364750-0700 Loop[16177:5152322] [ShareSheet] error fetching item for URL:file:///private/var/mobile/Containers/Data/Application/3744B7F1-46A2-46E6-8F29-1DE7FD9D744B/tmp/Loop%20Report%202024-09-05%2008:07:29-07:00.md : (null)
2024-09-05 08:07:34.379236-0700 Loop[16177:5152322] [ShareSheet] error fetching file provider domain for URL:file:///private/var/mobile/Containers/Data/Application/3744B7F1-46A2-46E6-8F29-1DE7FD9D744B/tmp/Loop%20Report%202024-09-05%2008:07:29-07:00.md : (null)
2024-09-05 08:07:34.702360-0700 Loop[16177:5152575] [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=66, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler}
2024-09-05 08:07:34.703633-0700 Loop[16177:5152575] [default] Attempt to map database failed: permission was denied. This attempt will not be retried.
2024-09-05 08:07:34.703963-0700 Loop[16177:5152575] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=66, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler}
2024-09-05 08:07:34.711661-0700 Loop[16177:5152758] [ShareSheet] error loading metadata for documentURL:file:///private/var/mobile/Containers/Data/Application/3744B7F1-46A2-46E6-8F29-1DE7FD9D744B/tmp/Loop%20Report%202024-09-05%2008:07:29-07:00.md error:Error Domain=NSFileProviderInternalErrorDomain Code=0 "No valid file provider found from URL file:///private/var/mobile/Containers/Data/Application/3744B7F1-46A2-46E6-8F29-1DE7FD9D744B/tmp/Loop%20Report%202024-09-05%2008:07:29-07:00.md." UserInfo={NSLocalizedDescription=No valid file provider found from URL file:///private/var/mobile/Containers/Data/Application/3744B7F1-46A2-46E6-8F29-1DE7FD9D744B/tmp/Loop%20Report%202024-09-05%2008:07:29-07:00.md.}
2024-09-05 08:07:34.803488-0700 Loop[16177:5152575] [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=66, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler}
2024-09-05 08:07:34.803598-0700 Loop[16177:5152575] [default] Attempt to map database failed: permission was denied. This attempt will not be retried.
2024-09-05 08:07:34.803719-0700 Loop[16177:5152575] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=66, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler}
2024-09-05 08:07:35.860087-0700 Loop[16177:5152575] [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=66, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler}
2024-09-05 08:07:35.860140-0700 Loop[16177:5152575] [default] Attempt to map database failed: permission was denied. This attempt will not be retried.
2024-09-05 08:07:35.860206-0700 Loop[16177:5152575] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=66, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler}
2024-09-05 08:07:35.867042-0700 Loop[16177:5152575] [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=66, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler}
2024-09-05 08:07:35.867179-0700 Loop[16177:5152575] [default] Attempt to map database failed: permission was denied. This attempt will not be retried.
2024-09-05 08:07:35.867295-0700 Loop[16177:5152575] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=66, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler}
2024-09-05 08:07:35.867992-0700 Loop[16177:5152575] [default] -imageForImageDescriptor: can do IO please adopt -imageForDescriptor: for IO free drawing or -prepareImageForDescriptor: if IO is allowed. (This will become a fault soon.)
2024-09-05 08:07:35.872525-0700 Loop[16177:5152322] [LayoutConstraints] Changing the translatesAutoresizingMaskIntoConstraints property of a UICollectionReusableView that is managed by a UICollectionView is not supported, and will result in incorrect self-sizing. View: <_UIActivityContentFooterView: 0x133fc5940; baseClass = UICollectionReusableView; frame = (16 291.5; 343 52); layer = <CALayer: 0x2824a7300>>
2024-09-05 08:07:35.904739-0700 Loop[16177:5152575] [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=66, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler}
2024-09-05 08:07:35.904848-0700 Loop[16177:5152575] [default] Attempt to map database failed: permission was denied. This attempt will not be retried.
2024-09-05 08:07:35.904959-0700 Loop[16177:5152575] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=66, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler}
2024-09-05 08:07:35.905840-0700 Loop[16177:5152575] [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=66, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler}
2024-09-05 08:07:35.905921-0700 Loop[16177:5152575] [default] Attempt to map database failed: permission was denied. This attempt will not be retried.
2024-09-05 08:07:35.906033-0700 Loop[16177:5152575] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=66, _LSFunction=_LSServer_GetServerStoreForConnectionWithCompletionHandler}
2024-09-05 08:07:35.906278-0700 Loop[16177:5152575] [default] -imageForImageDescriptor: can do IO please adopt -imageForDescriptor: for IO free drawing or -prepareImageForDescriptor: if IO is allowed. (This will become a fault soon.)
Describe the bug Symptom: The first time I issue a Send To (for a Loop Report) after a rebuild, Loop is very slow to respond. When attached to Xcode, the debug log shows errors - appended below.
Expected behavior Prompt response for send to with no errors showing
Phone
Test with other hardware
Repeated this test with two other test phones, errors are not as obvious as for iOS 17 (and no slow-down for first instance noted)
Added Xcode debug log excerpts at the end for iOS 15 and iOS 16
Loop Version
CGM
Pump
Example First Time iOS 17:
Xcode log excerpt for Issue Report Send To
Example iOS 17
Xcode log excerpt for critical log export
Example iOS 17 Repeat the Issue Report, send to action
Example iOS 15
Example iOS 16