Caused GPU Timeout Error (IOAF code 2, 5)

Originator:rexfeng
Number:rdar://47065169 Date Originated:1/5/19
Status: Resolved:
Product:iOS/Vision Product Version:
Classification: Reproducible:Always
 
Area:
Vision.framework

Summary:

While running an iOS app on current iOS (12.1.2) + iPhone XS, these errors (below) are sent to Xcode logs. The App uses Vision with ARKit. The purpose is to use Vision's VNDetectFaceRectanglesRequest along with ARKit's features.

Note: the error doesn't seem to occur on my iPhone 7, but always occurs on my iPhone XS.

These errors always occur:
> 2019-01-04 03:03:03.155867-0800 ARKit Vision Demo[12969:3307770] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (IOAF code 2)
> 2019-01-04 03:03:03.155786-0800 ARKit Vision Demo[12969:3307850] Execution of the command buffer was aborted due to an error during execution. Discarded (victim of GPU error/recovery) (IOAF code 5)

Sometimes this error shows up:
> [SceneKit] Error: display link thread seems stuck

This prototype/concept code is based on the guide https://developer.apple.com/documentation/arkit/using_vision_in_real_time_with_arkit

Steps to Reproduce:

App is on Github https://github.com/xta/ARKit-Vision-Demo (App also attached as Xcode project ZIP)

* Run app on actual hardware, specifically iPhone XS. 
* Allow camera permissions for AR app
* Point phone's camera at faces (or image of faces)
* App hangs/crashes/errors

Expected Results:

The app uses Vision to detect face rectangles in the camera's image. Or at a minimum, the app doesn't freeze/hang/crash/error when a face is detected by Vision.

Actual Results:

While using the app & looking around the user's environment with the camera, the app freezes/hangs/errors often. Either just looking around or looking at a JPG (on computer screen) of a face, the app will hang/freeze/crash error.

Version/Build:

1.0/Alpha

Configuration:

latest Xcode 10.1, latest iOS 12.1.2, iPhone XS

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!