There was a crash during the creation of picture-in-picture in iOS 18. No problems were found after reviewing the code.
Please take a look at the possible reasons for the code crash here and how the business code should be protected
21 libsystem_kernel.dylib 0x1dac4ec20 abort_with_payload_wrapper_internal + 104
22 libsystem_kernel.dylib 0x1dac4ebb8 abort_with_reason + 32
23 libobjc.A.dylib 0x1880ffea0 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 116
24 libobjc.A.dylib 0x1880ffe2c _objc_fatal(char const*, ...) + 32
25 libobjc.A.dylib 0x1880ff040 weak_register_no_lock + 396
26 libobjc.A.dylib 0x1880fec50 objc_storeWeak + 472
27 AVKit 0x1b7a904e4 -[AVObservationController initWithOwner:] + 164
28 AVKit 0x1b7ab1d90 -[AVPictureInPictureController _commonInitWithSource:] + 104
29 AVKit 0x1b7b6cc14 -[AVPictureInPictureController initWithContentSource:] + 184
30 AVKit 0x1b7b6ccd8 -[AVPictureInPictureController initWithPlayerLayer:] + 84