AVAssetReader init failure -- media services were reset

I work on a video editing app that composes multiple small video clips, sometimes hundreds or thousands. For one user in particular, attempting to export causes a failure 100% of the time. The failure occurs in the initialization of AVAssetReader, and is in the AVFoundationErrorDomain with code -11819 (AVErrorMediaServicesWereReset.) We've done everything we can think of, including quitting other running apps, enabling airplane mode, and even performing the flow on an identical device using the customer's data, and have had no luck pinning down the cause of the error. Does anyone have any suggestion for how we might go about debugging this? Getting ready to file a TSI but thought I should ask here first.

Answered by Engineer in 803281022

Hello @jef. If the issue is restricted to a specific device, then it might not be an implementation issue. If you have access to the device where it happens, or can get a sysdiagnose from it, the best way to investigate the problem would be submitting a bug report via Feedback Assistant and attaching a sysdiagnose.

Hello @jef. If the issue is restricted to a specific device, then it might not be an implementation issue. If you have access to the device where it happens, or can get a sysdiagnose from it, the best way to investigate the problem would be submitting a bug report via Feedback Assistant and attaching a sysdiagnose.

AVAssetReader init failure -- media services were reset
 
 
Q