BranchMetrics/ios-branch-deep-linking-attribution

Unexpected warnings when showing share sheet

willbattel opened this issue · 1 comments

Describe the bug

This issue is separate from #1202, which occurs after this one.

We receive the following console output immediately after calling showShareSheet. We expect some of these to be harmless but some do concern us, such as This will become a fault soon. and This method should not be called on the main thread as it may lead to UI unresponsiveness.

2022-10-11 14:41:26.698770-0400 appname[37030:2877064] [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}
2022-10-11 14:41:26.701412-0400 appname[37030:2877064] [default] Attempt to map database failed: permission was denied. This attempt will not be retried.
2022-10-11 14:41:26.701729-0400 appname[37030:2877064] [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}
2022-10-11 14:41:26.784227-0400 appname[37030:2877064] [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}
2022-10-11 14:41:26.784330-0400 appname[37030:2877064] [default] Attempt to map database failed: permission was denied. This attempt will not be retried.
2022-10-11 14:41:26.784488-0400 appname[37030:2877064] [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}
2022-10-11 14:41:27.090570-0400 appname[37030:2877064] [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}
2022-10-11 14:41:27.090698-0400 appname[37030:2877064] [default] Attempt to map database failed: permission was denied. This attempt will not be retried.
2022-10-11 14:41:27.090814-0400 appname[37030:2877064] [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}
2022-10-11 14:41:27.095083-0400 appname[37030:2877064] [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}
2022-10-11 14:41:27.095141-0400 appname[37030:2877064] [default] Attempt to map database failed: permission was denied. This attempt will not be retried.
2022-10-11 14:41:27.095190-0400 appname[37030:2877064] [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}
2022-10-11 14:41:27.156265-0400 appname[37030:2876511] [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: 0x1070a1bd0; baseClass = UICollectionReusableView; frame = (20 406; 374 52); layer = <CALayer: 0x281411720>>
2022-10-11 14:41:27.157071-0400 appname[37030:2877064] [default] -imageForImageDescriptor: can do IO please adopt -imageForDescriptor: for IO free drawing or -prepareImageForDescriptor: if IO is allowed. (This will become a fault soon.)
2022-10-11 14:41:27.163537-0400 appname[37030:2877064] [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}
2022-10-11 14:41:27.163607-0400 appname[37030:2877064] [default] Attempt to map database failed: permission was denied. This attempt will not be retried.
2022-10-11 14:41:27.163657-0400 appname[37030:2877064] [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}
2022-10-11 14:41:27.163997-0400 appname[37030:2877064] [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}
2022-10-11 14:41:27.164027-0400 appname[37030:2877064] [default] Attempt to map database failed: permission was denied. This attempt will not be retried.
2022-10-11 14:41:27.164067-0400 appname[37030:2877064] [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}
2022-10-11 14:41:27.164243-0400 appname[37030:2877064] [default] -imageForImageDescriptor: can do IO please adopt -imageForDescriptor: for IO free drawing or -prepareImageForDescriptor: if IO is allowed. (This will become a fault soon.)
2022-10-11 14:41:27.766998-0400 appname[37030:2876511] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2022-10-11 14:41:27.767125-0400 appname[37030:2876511] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2022-10-11 14:41:28.551873-0400 appname[37030:2876511] [ProcessSuspension] ProcessAssertion::remainingRunTimeInSeconds failed to get handle for process with PID=37041
2022-10-11 14:41:28.553495-0400 appname[37030:2877090] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-10-11 14:41:28.553583-0400 appname[37030:2877090] [ProcessSuspension] 0x11901c3c0 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=37041, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2022-10-11 14:41:28.554259-0400 appname[37030:2877090] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-10-11 14:41:28.554332-0400 appname[37030:2877090] [ProcessSuspension] 0x11901c420 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess Suspended Assertion' for process with PID=37041, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}

Steps to reproduce

  1. Initialize BranchUniversalObject
  2. Initialize BranchLinkProperties
  3. Call buo.showShareSheet(with: lp, andShareText: "some text", from: self)

Expected behavior

We expected to not receive these warnings. We are not sure if there is just one issue here or multiple but we are concerned about using this in a live app.

SDK Version

1.43.2

XCode Version

14.0.1

Device

iPhone 8 Plus

OS

16.0

Additional Information/Context

No response

I believe this issue was fixed in 2.0.0+ with a change to the queue priority.

https://github.com/BranchMetrics/ios-branch-deep-linking-attribution/releases/tag/2.0.0