In a function convertToPixelBuffer(image:) there's code path when created pixel buffer is not unlocked.