AVAsynchronousVideoCompositionRequest sourceFramebytrackID returns nil sometimes while seeking

I want to know under what conditions does -[AVAsynchronousVideoCompositionRequest sourceFramebytrackID] returns nil. I have a custom compositor and when seeking AVPlayer, I find the method sometimes returns nil, particularly when seek tolerance is set to zero. No issues are seen if I simply play the composition. Only seeking throws these errors and only some of the times.

Dear Apple Engineers,

Can you please shed more light on this on why sourceFrame(byTrackId:) sometimes returns nil while seeking with AVPlayer seekTolerance set to .zero? Is it a bug? I have built my project using XCode 13 beta 5 but running it on iOS 14 device.

AVAsynchronousVideoCompositionRequest sourceFramebytrackID returns nil sometimes while seeking
 
 
Q