marty-suzuki / SAParallaxViewControllerSwift

SAParallaxViewControllerSwift realizes parallax scrolling with blur effect. In addition, it realizes seamless opening transition.
MIT License
260 stars 24 forks source link

Crash in func blurEffect(boxSize: CGFloat) -> UIImage! #18

Open ogezue opened 8 years ago

ogezue commented 8 years ago

I'm sorry but your lib is still crashing... This time in func blurEffect(boxSize: CGFloat) -> UIImage!

 <Error>: CGBitmapContextCreate: unsupported parameter combination: set CGBITMAP_CONTEXT_LOG_ERRORS environmental variable to see the details
Jan 26 11:04:13  ZEventApp[36157] <Error>: CGBitmapContextCreateImage: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
fatal error: unexpectedly found nil while unwrapping an Optional value
Printing description of image:
(UIImage) image = 0x00007fb9a3f083b0 {
  NSObject = {
    isa = 0x00007fb9a3f083b0
  }
  _imageRef = 0x00007fb9a3d45880
  _scale = 1
  _flipsForRightToLeftLayoutDirection = false
  _traitCollection = 0x00007fb9a3d41d70
  _imageAsset = nil
}

boxSize is 20 and the image {373, 303}

akring commented 8 years ago

same problem,when I tried to set image with an async download