You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered a crash problem.
Crash's location is "cgImageFromFramebuffer" method in "PictureOutput.swift" class
Crash's point is "return CGImage(width:Int(framebuffer.size.width), height:Int(framebuffer.size.height), bitsPerComponent:8, bitsPerPixel:32, bytesPerRow:4 * Int(framebuffer.size.width), space:defaultRGBColorSpace, bitmapInfo:CGBitmapInfo() /| CGImageAlphaInfo.Last/, provider:dataProvider, decode:nil, shouldInterpolate:false, intent:.defaultIntent)!" line
Crash's reason is "verify_image_parameters: invalid image alphaInfo: kCGImageAlphaNone. It should be kCGImageAlphaNoneSkipLast"
Tap : Would you mind fixing this crash as soon as possible ?
Operating environment
Device : iPhone11
OS : iOS 17.1.2
Version : 0.0.1
Activity
hudek commentedon May 7, 2024
This should work:
Just change bitmapInfo:CGBitmapInfo(rawValue: CGImageAlphaInfo.noneSkipLast.rawValue)
return CGImage(width:Int(framebuffer.size.width), height:Int(framebuffer.size.height), bitsPerComponent:8, bitsPerPixel:32, bytesPerRow:4 * Int(framebuffer.size.width), space:defaultRGBColorSpace, bitmapInfo:CGBitmapInfo(rawValue: CGImageAlphaInfo.noneSkipLast.rawValue) /| CGImageAlphaInfo.Last/, provider:dataProvider, decode:nil, shouldInterpolate:false, intent:.defaultIntent)!