What is a communication error: OS_xpc_error in Xcode 6?

This morning I received this error and cannot find a reasonable explanation:

Communications error: <OS_xpc_error: <error: 0x3b3c2614> { count = 1, contents = "XPCErrorDescription" => <string: 0x3b3c286c> { length = 22, contents = "Connection interrupted" } }> 

I think this happens when I take pictures. I can show the full fragment on request. However, this is sample code from a tutorial. He appeared only once, and there are not many explanations online.

I included a breakpoint at all exception and a symbolic breakpoint in UIViewAlertForUnsatisfiableConstraints . But this error also appeared without these milestones.

No breakpoints called when this error occurred.

What is it?

+46
xcode swift
Mar 01 '15 at 15:13
source share
2 answers

XPC is Apple's interprocess communication system (IPC). Some functionality (for example, h.264 encoding / decoding or interaction with camera equipment) is processed by a separate application - a daemon, which runs in the background all the time.

Interruption of the connection means that the IPC connection was interrupted for any reason. Maybe it took too much time, maybe the time was just bad, and the daemon or your application needed to urgently do something else.

This is probably not a mistake. When you work with IPC, the daemon should be considered a black box, and your connection to it is somewhat flimsy. In this case, you talk to the daemon indirectly (through the Apple libraries), and most likely they designed it for asynchronous operation and automatic error recovery.

+24
Jul 06 '15 at 15:06
source share

I encountered the same error. My mistake was to load the URL of a specific gif ( http://whyd.com/uCoverImg/bd1833e6afe5a8ae9c9aff4177d3f80d_960x.gif ) using SDWebImage in imageView

 NSURL *url = NSURL urlFromString:@"image.gif"]; [myImageView sd_setImageWithURL:imageCoverUrl]; 

This crash does not exist for all GIF images, I have to find the correct rule

+2
Apr 15 '15 at 7:55
source share



All Articles