In my tvos application i reset the avplayer as e.g Appdelegate.myPlayerVC.avplayerviewcontroller.player = nil
It works fine till the 15.1.1tvos version. But in tvos version 15.2 and above we get few crashes which are not replicable. The crash. is like: Foundation - _NSKVONotifyingOriginalClassForIsa.
On analysis i could find an issue with avplayerviewcontroller.player = nil. (Screenshots attached). I tried the apple sample of "PictureInPictureTvos_Sample". Even in that code base on resetting the player I could see a similar issue.
My doubt is , is resetting the player with nil cause any issue in 15.2 and above OS? .Is this the reason for the crash I am getting in my production build. Please help me to resolve the issue.

I also have this exact same issue - though I have not verified the issue is 100% with tvOS >= 15.2, customers started to report the issue right around the release of tvOS 15.2 thoough. In my case, the crash is very intermittent - sometimes can be hard to reproduce, sometimes can be reproduced multiple times in a row. Crash happens both in release mode and debug mode.
I also have several observers for each stream / player / playerItem:
The crash happens in transition from stopping one stream and starting a new one. During this transition, I am stopping the current stream with the following:
Here is the stack-trace / crash log - the crash is ALWAYS within AVKit [AVInterstitialController dealloc] on thread 0. There is never any of my app code reported in the stack trace.
My hunch is that there is some new race condition with the player & playerItem observers and removing the player from avPlayerViewController.
So far in my testing, removing this part:
I have not seen a crash - but being that the crash is very intermittent I can not be sure this is the appropriate fix. Also, there is no documentation for AVPlayerViewController which says we should not be clearing the player property by setting it to nil.
So far, this is a big mystery. I am trying to get Apple's attention via a Developer Support ticket. If anyone else gets a reply from Apple, please share response here.
This is causing crashes on Apps that are widely deployed.