title: CIFilter / CIImage : BSXPCMessage received error for message: Connection interrupted
body: <p>I'm working on a "camera/photo" based application.</p>
  
  <p>Application launching (sideMenu) : MainView is a normal VC in a <strong>NavigationCTRL</strong> with a camera button.<br/>
  A tap on it pushes a new VC.<br/>
  This one is normal but inside, there are these kind of things :</p>
  
  <pre><code>let captureSession: AVCaptureSession = AVCaptureSession()
  var currentCaptureDevice: AVCaptureDevice?
  var deviceInput: AVCaptureDeviceInput?
  var stillCameraOutput: AVCaptureStillImageOutput?
  var previewLayer: AVCaptureVideoPreviewLayer?
  </code></pre>
  
  <p>So it's a custom camera view controller.<br/>
  I can - this way -  have a better user experience.<br/>
  Then I can take a photo (from the library, or by tapping the shot button (after putting on/off some features [Timer, HD, Flash..].</p>
  
  <p>When it takes the picture, I use the <strong>prepareForSegue</strong> method to send the captured image to the next VC :
  </p>
  
  <pre><code>override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
      if segue.identifier == Constants.Segues.CameraToFiltersSegue {
          var filterVC = segue.destinationViewController as! MYCLASSVC
          filterVC.originalImage = pictureImage
      }
  }
  </code></pre>
  
  <p>And then, it pushed the new VC AND...<br/>
  I got THIS MESSAGE : <strong>BSXPCMessage received error for message: Connection interrupted</strong></p>
  
  <p>The current VC contains :</p>
  
  <ul>
  <li>an imageView (UIImageView) : the previous picture</li>
  <li>A small collection view with small (kind of thumbnail) filtered pictures from the original (<strong>CIFilter</strong>)</li>
  </ul>
  
  <p>Nothing more in this view. But I have this message.<br/> 
  <strong>What about this message?</strong> <br/>
  <strong>Should I do something in a different way?</strong></p>
  
  <p>This is how I set my filters : 
  </p>
  
  <pre><code>//At the top of the class
  //EAGLRenderingAPI.OpenGLES2 but maybe EAGLRenderingAPI.OpenGLES3??
  static let contextFast = CIContext(EAGLContext: EAGLContext(API: EAGLRenderingAPI.OpenGLES2), options: [kCIContextWorkingColorSpace: NSNull(), kCIContextUseSoftwareRenderer: false])
  
  //In my static method (one of the parameter is "originalImage")
  var ciimage: CIImage = CIImage(image: originalImage)
  var imageFilter = CIFilter(name: "CIPhotoEffectInstant")
  filter.setValue(ciimage, forKey: kCIInputImageKey)
  let cgimg = contextFast.createCGImage(imageFilter.outputImage, fromRect: imageFilter.outputImage.extent())
  return UIImage(CGImage: cgimg, scale: 1.0, orientation: image.imageOrientation)
  </code></pre>
  
  <p>This code runs fast!
  I don't know where the message comes from.</p>
  
  <p><strong>So please if you have any idea or something more to help?</strong></p>