Capturing depth using the lidar camera sample code: Caused GPU Timeout Error (00000002:kIOGPUCommandBufferCallbackErrorTimeout)

Similar post on StackOverflow and multiple people reported this (you will encounter it if you run the app for like 10 minutes). I'm hoping this could get Apple's attention somehow

After downloading the project code (https://developer.apple.com/documentation/avfoundation/additional_data_capture/capturing_depth_using_the_lidar_camera) and running the Swift sample code on an iPhone 14 Pro, the app crashes intermittently, throwing this error:

Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (00000002:kIOGPUCommandBufferCallbackErrorTimeout)

Sometimes it will crash within a few seconds, sometimes it can take around 10 minutes.

Has anyone here experienced this crash from the sample code, or using the LiDAR camera?

I have spent a long time trying to solve this issue, I have searched the web high and low and submitted (I think) a report to Apple about it. I am unable to get xcode to show me the line of code where the crash is happening.

Any help would be greatly appreciated.

Capturing depth using the lidar camera sample code: Caused GPU Timeout Error (00000002:kIOGPUCommandBufferCallbackErrorTimeout)
 
 
Q