BSXPCMessage Received Error Message: Connection Aborted

UPDATE: link # 19285042 and send bug reports to apple

A very strange mistake and does not find anything online. His statement, "BSXPCMessage received an error for the message: Connection aborts"

I just make some basic filter applications. The error message ONLY occurs if I reassign UIImageView.image to another UIImage. If I comment only on this line, I will not get an error. Therefore, if you can think of any reason why this message appears when I assign a filtered image to UIImageView, that would be incredibly useful.

If you can offer any reason for this error, I would appreciate it.

#import "FilterTestsViewController.h" @interface FilterTestsViewController () @end @implementation FilterTestsViewController UIImage* _originalImage; UIImage* _filterImage; UIImageView* _uiImageView; - (void)viewDidLoad { [super viewDidLoad]; [self initialize]; //flip image by 180* } -(void)initialize { _originalImage = [UIImage imageNamed:@"ja.jpg"]; //creates image from file, this will result in a nil CIImage but a valid CGImage; [self createFilterImage]; _uiImageView = [[UIImageView alloc] initWithImage:_filterImage]; //creates a UIImageView with the UIImage [self.view addSubview:_uiImageView]; //adds the UIImageView to view; } -(void)createFilterImage { NSString* filterName = @"CIFalseColor"; CIImage* ciImage = [CIImage imageWithCGImage:_originalImage.CGImage]; CIFilter* filter = [CIFilter filterWithName:filterName keysAndValues:kCIInputImageKey,ciImage, nil]; _filterImage = [UIImage imageWithCIImage:[filter outputImage]]; } @end 
+43
ios objective-c xcode xcode6 uiimageview
Sep 26 '14 at 18:12
source share
4 answers

The message you receive is related to a CIFilter error in iOS 8.

XPC services are designed to reduce crashes by isolating less stable components such as filters and plugins. This is usually not fatal, and the connection will be restored when the launchd service is restarted. Since this is not a long service, but just an operation, most likely your image filter is not actually applied.

This is a very big mistake in iOS 8, and you have to write a Radar (bug report) for Apple to know about it (while another piece) iOS 8 has an error.

If you are going to do this, you must install Quick Radar , track the radar number and answer many other similar questions about stack overflows with the same problem. Encourage other people to submit a duplicate radar report that refers to your original problem. This will give more attention to Apple.

Apple really got out of this. the previously mentioned workaround is good, if you can make another subclass of CIFilter, do what you want. Otherwise, you just have to bother copying the image, save its NSData view, or otherwise remove it from the CIImage workflow in some other way.

+39
Dec 14 '14 at 9:27
source share

From reading the raywenderlich article , I found that adding an option to the context so that rendering is done on the CPU, not the GPU, will remove the warning.

let context = CIContext(options:[kCIContextUseSoftwareRenderer : true])

+5
Apr 26 '15 at 1:57
source share

For me, the problem arose when I tried to use CIFilters in iOS8 + for some reason?

I added the code to check the version of iOS, and if it was more than 7.9.9, I would use the CIFilter replacement, which iOS8 + is like: https://stackoverflow.com/a/167508/

In a separate note, xCode6 completely removed the CIFilter framework from my project (weird), but adding it back did not fix this failure ...

+2
Dec 11 '14 at 22:44
source share

This worked for me:

Obj-c

 CIContext *context = [CIContext contextWithOptions:@{kCIContextUseSoftwareRenderer:@(YES)}]; 

Swift

 let context = CIContext(options:[kCIContextUseSoftwareRenderer : true]) 

Link: stack overflow

0
Sep 15 '15 at 6:04
source share



All Articles