8的CIContext上的连接中断

8的CIContext上的连接中断

本文介绍了BSXPCMessage收到错误消息:iOS 8的CIContext上的连接中断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序现在出现了一些问题。我想创建一个CIContext:

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

CIContext *myContext = [CIContext contextWithOptions:nil];

但是启动应用程序时,此行在控制台中返回以下消息: BSXPCMessage收到错误消息:连接中断

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

当我在iOS 8(模拟器或设备)上启动应用程序,但未在iOS 7模拟器上启动该消息时(我没有尝试的设备)。我尝试了很多方法来解决此问题,例如在另一个Mac上的另一个Projet中尝试,在另一个文件上调用此方法...我认为它来自iOS 8。

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.

感谢您的帮助:)

推荐答案

我正在相同的问题:我在iOS 8中收到 BSXPCMessage ...消息,但在iOS 7中却没有。

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

我将其追溯到创建CIContext的位置:

I traced it to where I create the CIContext:

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

如果将kCIContextUseSoftwareRenderer设置为YES,该错误就会消失。也许iOS 8需要您启用CPU渲染?

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

这篇关于BSXPCMessage收到错误消息:iOS 8的CIContext上的连接中断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 07:25