vImageScale_Planar8 crashing on orientation change in iOS 16

We are calling function vImageScale_Planar8 to downsample an image. On iOS 16, this function is crashing when camera orientation changes (something is changing underlying memory representation of CVPixelBuffer object).

On orientation change, we are setting output AVCaptureConnection objects' orientation property.

On iOS 15, the same code works perfectly.

Are you locking the CVPixelBuffer while you are reading it for your downsample operation with CVPixelBufferLockBaseAddress(::)?

vImageScale_Planar8 crashing on orientation change in iOS 16
 
 
Q