Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BSXPCMessage received error for message: Connection interrupted on CIContext with iOS 8

I have got some problems on my app right now. I would like to create a CIContext with :

CIContext *myContext = [CIContext contextWithOptions:nil];

But when starting the app, this line return the following message in console : "BSXPCMessage received error for message: Connection interrupted"

This message come when I launch the app on iOS 8 (simulator or device), but not with an iOS 7 simulator (I don't have a device to try). I tried many things to solve this like try it in another projet, on another Mac, call this method on another file... I think it come from iOS 8.

It don't look to change my image processing (what I use the context to), but if there is a warning, there is a problem to solve.

Thank for your help :)

like image 298
Quentin Avatar asked Dec 14 '22 19:12

Quentin


1 Answers

I'm having the same problem: I get the "BSXPCMessage..." message in iOS 8, but not iOS 7.

I traced it to where I create the CIContext:

self.ciContext = [CIContext contextWithOptions:@{kCIContextUseSoftwareRenderer : @(NO)}];

If you set kCIContextUseSoftwareRenderer to YES, the error goes away. Maybe iOS 8 requires you to enable CPU rendering?

like image 192
Anna Dickinson Avatar answered Dec 28 '22 07:12

Anna Dickinson