Post

Replies

Boosts

Views

Activity

VNImageRequestHandler perform 'unspecified error' on M1 MacBook Pro
I'm getting the following error when running a simple test of VNImageRequestHandler perform in Xcode: failed: caught error: "Error Domain=com.apple.vis Code=9 "encountered an unexpected condition: Unspecified error" UserInfo={NSLocalizedDescription=encountered an unexpected condition: Unspecified error} The test is as follows:     func testExample() throws {         let bundle = Bundle(for: type(of: self))         let image = UIImage(named: "image.jpeg", in: bundle, with: nil)!         let imageRequestHandler = VNImageRequestHandler(cgImage: image.cgImage!)         let captureQualityRequest = VNDetectFaceCaptureQualityRequest()         try imageRequestHandler.perform([captureQualityRequest])     } This error is happening on Xcode 12.2 (and 12.3 beta), macOS 11.0.1, and a Late 2020 13" M1 MacBook Pro. This does not happen on Xcode 12.2 and macOS 11.0.1 on an Intel MacBook Pro. Sample project can be found here: https://gitlab.com/kabucey/vnimagerequesthandlertest Has anyone encountered this before?
11
0
4.4k
Nov ’20