Hi,
Our apps currently facing a crash that only happens in iPhone with iOS 16. Unfortunately, we could not reproduce this issue, neither from XCode build or App store build.
From third party crash analytics, it happens mostly of background and they highlighted this as the issue.
Fatal Exception: NSInvalidArgumentException
*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil
And the stack trace, it shows:
AVFCore __22-[AVPlayer _addLayer:]_block_invoke
Pegasus
__116-[PGPictureInPictureProxy _endDeactivatingPictureInPictureIfNeededWithAnimationType:stopReason:cleanupHandlerOrNil:]_block_invoke
We also attach the full crash log to give full context of the crash.
Any idea why this crash happens and is there anything i can do to prevent the crashes from happening again?