Keyboard extension: "Message=Service Connection Interrupted" - ios

I wrote a keyboard extension and met some problems. I put a collectview on this extension. collectview every cell needs to load a GIF diagram, each GIF dynamic figure is 2 m, then there is the keyboard crash case, an error for the following reasons (). I have been in the info. The file of RequestsOpenAccess set to YES. So I don't know where the problem is. The following is the cause of the error, only these:
2017-03-24 21:37:45.820834 ExpressionBaby[3672:934876] viewServiceDidTerminateWithError:: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3 "(null)" UserInfo={Message=Service Connection Interrupted}
2017-03-24 21:37:48.709876 ExpressionBaby[3672:934876] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction
2017-03-24 21:37:49.222492 ExpressionBaby[3672:934876] viewServiceDidTerminateWithError:: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3 "(null)" UserInfo={Message=Service Connection Interrupted}
2017-03-24 21:37:51.231664 ExpressionBaby[3672:934876] viewServiceDidTerminateWithError:: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3 "(null)" UserInfo={Message=Service Connection Interrupted}
2017-03-24 21:37:53.225378 ExpressionBaby[3672:934876] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction
2017-03-24 21:37:54.500931 ExpressionBaby[3672:934876] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction
2017-03-24 21:37:55.016598 ExpressionBaby[3672:934876] viewServiceDidTerminateWithError:: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3 "(null)" UserInfo={Message=Service Connection Interrupted}

Related

My app is collecting a lot of StoreKit underlyingErrors: AMSErrorDomain Code=305 Purchase Failed, what might be the reasons?

The issue occurs in production, couldn't reproduce it in Sandbox.
Full example of underlyingError I get:
Error Domain=SKErrorDomain
Code=0
"An unknown error occurred"
UserInfo={
NSLocalizedDescription=An unknown error occurred,
NSUnderlyingError=0x282db1230 {
Error Domain=ASDErrorDomain
Code=504
"The operation couldn’t be completed. (ASDErrorDomain error 504.)"
UserInfo={
NSLocalizedDescription=The operation couldn’t be completed. (ASDErrorDomain error 504.),
NSUnderlyingError=0x282db0780 {
Error Domain=AMSErrorDomain
Code=305
"Purchase Failed"
UserInfo={
NSLocalizedDescription=Purchase Failed,
NSLocalizedFailureReason=Server canceled the purchase
}
}
}
}
};
What might be the reasons for it? Is there really something I can do to resolve it?

Error trapping Swift Google upload to Firebase code

We are writing an iOS app that uploads data to Google Firebase storage. We use the code below to upload text data to the location we specify. It works fine, except when we are not connected to the internet.
For the case of not being connected to the internet, we are having trouble trapping and handling the error. As far as we can tell, the delegate is never called (MyFirebaseProtocol_UploadTextComplete doesn't fire until much later, perhaps after a timeout) , and it just tries to upload repeatedly. If we are connected to the Mac and watching the debug window, it continuously generates errors in a loop, indefinitely. These certainly look like they are intended to be trappable (class names like NSErrorFailingURLStringKey, and helpful error messages and codes), but so far we are unable to trap them as they occur.
We are relatively new at swift, but is there some syntax, something like exception handling, that will allow us to trap and handle these errors, rather than just loop indefinitely?
Thanks!
func UploadTextFile(filepath : String, text: String, delegate : MyFirebaseProtocol)
{
let storage = Storage.storage()
let storageRef = storage.reference()
let textfileref = storageRef.child(filepath)
let data: Data? = text.data(using: .utf8)
textfileref.putData(data!, metadata: nil)
{
(metadata, error) in
delegate.MyFirebaseProtocol_UploadTextComplete(error: error)
}
}
Error messages in Xcode debug window:
2022-01-20 15:15:38.553528-0500 GarmentTest[431:60410] Connection 1: received failure notification
2022-01-20 15:15:38.553552-0500 GarmentTest[431:60410] Connection 1: failed to connect 1:50, reason -1
2022-01-20 15:15:38.553564-0500 GarmentTest[431:60410] Connection 1: encountered error(1:50)
2022-01-20 15:15:38.555426-0500 GarmentTest[431:60410] Connection 2: received failure notification
2022-01-20 15:15:38.555442-0500 GarmentTest[431:60410] Connection 2: failed to connect 1:50, reason -1
2022-01-20 15:15:38.555452-0500 GarmentTest[431:60410] Connection 2: encountered error(1:50)
2022-01-20 15:15:38.557057-0500 GarmentTest[431:60410] Task .<1> HTTP load failed, 0/0 bytes (error code: -1009 [1:50])
2022-01-20 15:15:38.557104-0500 GarmentTest[431:60410] Task <1D0E3033-5A15-4435-AF3D-99A06EAB4C3C>.<2> HTTP load failed, 0/0 bytes (error code: -1009 [1:50])
2022-01-20 15:15:38.557485-0500 GarmentTest[431:60410] Connection 3: received failure notification
2022-01-20 15:15:38.557544-0500 GarmentTest[431:60410] Connection 3: failed to connect 1:50, reason -1
2022-01-20 15:15:38.557664-0500 GarmentTest[431:60410] Connection 3: encountered error(1:50)
2022-01-20 15:15:38.558844-0500 GarmentTest[431:60268] Task .<1> finished with error [-1009] Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x280374a80 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)" UserInfo={_kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask .<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask .<1>"
), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=https://firebasestorage.googleapis.com/v0/b/garmenttest-8897e.appspot.com/o/Snapshots%2FAn%2FAn_20220120_151528_Relaxed_Center_Image_1B.png?uploadType=resumable&name=Snapshots%2FAn%2FAn_20220120_151528_Relaxed_Center_Image_1B.png, NSErrorFailingURLKey=https://firebasestorage.googleapis.com/v0/b/garmenttest-8897e.appspot.com/o/Snapshots%2FAn%2FAn_20220120_151528_Relaxed_Center_Image_1B.png?uploadType=resumable&name=Snapshots%2FAn%2FAn_20220120_151528_Relaxed_Center_Image_1B.png, _kCFStreamErrorDomainKey=1}

Error in opening UIDocumentPickerViewController

I am trying to present UIDocumentPickerViewController from my Viewcontroller. Sometimes I get error saying Could not communicate with a helper application.
The way I present my DocumentPickerViewController is:
BHFilePickerViewController *documentPicker = [[BHFilePickerViewController alloc]initWithDocumentTypes:types inMode:UIDocumentPickerModeImport];
documentPicker.filePickerDelegate = self;
documentPicker.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentViewController:documentPicker animated:true completion:nil];
Where, BHFilePickerViewController is my custom class of type UIDocumentPickerViewController.
When issue occurs I can see the log as
[DocumentManager] The view service did terminate with error: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3 "(null)" UserInfo={Message=Service Connection Interrupted}
Remote view controller crashed with error: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3 "(null)" UserInfo={Message=Service Connection Interrupted}. Trying to relaunch.
[u 571773A2-04B9-4EAB-A4AE-E0C629CB07AF:m (null)] [com.apple.DocumentManagerUICore.Service(1.0)] Connection to plugin interrupted while in use.
[DocumentManager] Failed to get the remote browser View Controller with error (Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.DocumentManagerUICore.Service.viewservice was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.DocumentManagerUICore.Service.viewservice was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid.})
[DocumentManager] Remote view controller crashed with error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.DocumentManagerUICore.Service.viewservice was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.DocumentManagerUICore.Service.viewservice was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid.}. Trying to relaunch.
Am I presenting it wrong way? What could you be improved?
Thank you in advance.

How can I get this Fairplay HLS setup to work?

I'm running:
mediafilesegmenter movie.mp4 --encrypt-key-file=key.bin --streaming-key-delivery -t 10 --file-base=.`
where key.bin is just aaaaa... (32 a's). Then, in my prog_index.m3u8 file, I set it up as:
#EXT-X-KEY:METHOD=AES-128,URI="http://192.168.1.27/just_key.bin",KEYFORMAT="identity",IV=0x6161616161...
However, when I try to run it, I get:
Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo={NSLocalizedFailureReason=An unknown error occurred (-16040), NSLocalizedDescription=The operation could not be completed, NSUnderlyingError=0x1c0250200 {Error Domain=NSOSStatusErrorDomain Code=-16040 "(null)"}.
just_key.bin is just 16 a's.
Any ideas what might be the issue? Is there an easy way to get Fairplay going otherwise?
FairPlay uses SAMPLE-AES encryption, not AES-128. Try with:
METHOD=SAMPLE-AES

AVAssetExportSessionStatusFailed randomly to write the video

I am creating the video from a set of images with AVAssetwriter and AVAssetExportSession and successfully getting the video and save it to the documents. But randomly the video exporting failed and it shows An Unknown error occured with error code -11800.
ExportSessionError: -11800 adn userinfo{
NSLocalizedDescription = "The operation could not be completed";
NSLocalizedFailureReason = "An unknown error occurred (-12124)";
NSUnderlyingError = "Error Domain=NSOSStatusErrorDomain Code=-12124 \"The operation couldn\U2019t be completed. (OSStatus error -12124.)\"";
This is the error console i got.. Please help me.. Thanks

Resources