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

倾然丶 夕夏残阳落幕 提交于 2019-12-14 03:42:41

问题


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 :)


回答1:


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?




回答2:


connection interrupted means that the XPC connection in question was interrupted (either by the remote of the connection quitting or possibly crashing). Assuming the other side is an XPC Service, App Extension, or Launch Daemon, this is usually not fatal and the connection will be restored by launchd restarting the service.

Are there any crash logs saved to ~/Library/Logs/DiagnosticReports around this time?

Do you see anything interesting in the device's syslog at this time?

Is there anything wrong happening other than the unexpected message?



来源:https://stackoverflow.com/questions/26163018/bsxpcmessage-received-error-for-message-connection-interrupted-on-cicontext-wit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!