Open amrangry opened 5 years ago
Crash when a video is about to end
my use case is to play one video stream
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'An AVPlayerItem cannot be associated with more than one instance of AVPlayer' First throw call stack: ( 0 CoreFoundation 0x00007fff23baa1ee exceptionPreprocess + 350 1 libobjc.A.dylib 0x00007fff50864b20 objc_exception_throw + 48 2 AVFoundation 0x00007fff208c0460 32-[AVPlayerItem _attachToPlayer:]_block_invoke + 0 3 AVFoundation 0x00007fff208a3f22 -[AVPlayer _insertItem:afterItem:] + 105 4 GPVideoPlayer 0x000000010e87b8f2 $s13GPVideoPlayerAAC18playerEndedPlaying33F7ACE76A20A76005164E7A02EC6F14DDLLyy10Foundation12NotificationVFyycfU + 1250 5 GPVideoPlayer 0x000000010e8752cd $sIeg_IeyB_TR + 45 6 libdispatch.dylib 0x000000010fafcdf8 _dispatch_call_block_and_release + 12 7 libdispatch.dylib 0x000000010fafdd6c _dispatch_client_callout + 8 8 libdispatch.dylib 0x000000010fb0be24 _dispatch_main_queue_callback_4CF + 1500 9 CoreFoundation 0x00007fff23b0ce49 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 10 CoreFoundation 0x00007fff23b07aa9 __CFRunLoopRun + 2329 11 CoreFoundation 0x00007fff23b06e66 CFRunLoopRunSpecific + 438 12 GraphicsServices 0x00007fff38346bb0 GSEventRunModal + 65 13 UIKitCore 0x00007fff47578dd0 UIApplicationMain + 1621 14 onNet 0x000000010dc4b82b main + 75 15 libdyld.dylib 0x00007fff516ecd29 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException
Same for me any answers regarding about this issue?
Same here! The video is inside a UICollectionViewCell. When the cell disappears, the app crashes and this error shows up.
Crash when a video is about to end
my use case is to play one video stream
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'An AVPlayerItem cannot be associated with more than one instance of AVPlayer' First throw call stack: ( 0 CoreFoundation 0x00007fff23baa1ee exceptionPreprocess + 350 1 libobjc.A.dylib 0x00007fff50864b20 objc_exception_throw + 48 2 AVFoundation 0x00007fff208c0460 32-[AVPlayerItem _attachToPlayer:]_block_invoke + 0 3 AVFoundation 0x00007fff208a3f22 -[AVPlayer _insertItem:afterItem:] + 105 4 GPVideoPlayer 0x000000010e87b8f2 $s13GPVideoPlayerAAC18playerEndedPlaying33F7ACE76A20A76005164E7A02EC6F14DDLLyy10Foundation12NotificationVFyycfU + 1250 5 GPVideoPlayer 0x000000010e8752cd $sIeg_IeyB_TR + 45 6 libdispatch.dylib 0x000000010fafcdf8 _dispatch_call_block_and_release + 12 7 libdispatch.dylib 0x000000010fafdd6c _dispatch_client_callout + 8 8 libdispatch.dylib 0x000000010fb0be24 _dispatch_main_queue_callback_4CF + 1500 9 CoreFoundation 0x00007fff23b0ce49 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 10 CoreFoundation 0x00007fff23b07aa9 __CFRunLoopRun + 2329 11 CoreFoundation 0x00007fff23b06e66 CFRunLoopRunSpecific + 438 12 GraphicsServices 0x00007fff38346bb0 GSEventRunModal + 65 13 UIKitCore 0x00007fff47578dd0 UIApplicationMain + 1621 14 onNet 0x000000010dc4b82b main + 75 15 libdyld.dylib 0x00007fff516ecd29 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException