ios 13 beta 1- VNImageRequestHandler performRequests [VNDetectFaceRectanglesRequest] failed assertion

validateComputeFunctionArguments:817: failed assertion `Compute Function(mainMetalEntryPoint): Non-writeable texture format MTLPixelFormatBGRA8Unorm_sRGB is being bound at index 0 to a shader argument with write access enabled.'


CIImage *ciImage = [[CIImage alloc] initWithImage: img];


VNImageRequestHandler* handler = [[VNImageRequestHandler alloc]

initWithCIImage:ciImage

orientation:(CGImagePropertyOrientation)img.imageOrientation

options:@{}];

VNDetectFaceRectanglesRequest* request = [[VNDetectFaceRectanglesRequest alloc] initWithCompletionHandler:^(VNRequest * _Nonnull request, NSError * _Nullable error) {

...

}];

NSError *error;


//This is throwing the error

[handler performRequests:@[request] error:&error];


This works fine in 12

Replies

After installing beta 2 on a device we were able to verify that this does not happen. With beta 1 we cannot test anymore.

As for the simulator, it is also happening with beta 2.