Crash when touching two media rapidly
When I touch rapidly twice a media (or two different), it results in a crash :
VLC/VideoPlayerViewController.swift:1017: Fatal error: VideoPlayerViewController: Delegate not assigned.
2021-03-18 00:47:02.743801+0100 VLC for iOS[646:240924] VLC/VideoPlayerViewController.swift:1017: Fatal error: VideoPlayerViewController: Delegate not assigned.
(lldb) bt all
* thread #1, queue = 'com.apple.main-thread', stop reason = Fatal error: VideoPlayerViewController: Delegate not assigned.
frame #0: 0x00000001a517c630 libswiftCore.dylib`_swift_runtime_on_report
frame #1: 0x00000001a51e76b4 libswiftCore.dylib`_swift_stdlib_reportFatalErrorInFile + 188
frame #2: 0x00000001a4eb9950 libswiftCore.dylib`Swift._assertionFailure(_: Swift.StaticString, _: Swift.String, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never + 1112
* frame #3: 0x00000001004a78ec VLC for iOS`VideoPlayerViewController.playerControllerPlaybackDidStop(playerController=0x000000028040c440, self=0x00000001068faa00) at VideoPlayerViewController.swift:1017:13
frame #4: 0x00000001004a7934 VLC for iOS`protocol witness for PlayerControllerDelegate.playerControllerPlaybackDidStop(_:) in conformance VideoPlayerViewController at <compiler-generated>:0
frame #5: 0x00000001003bb930 VLC for iOS`PlayerController.handlePlaybackDidStop(self=0x000000028040c440) at PlayerController.swift:125:19
frame #6: 0x00000001003bb974 VLC for iOS`@objc PlayerController.handlePlaybackDidStop() at <compiler-generated>:0
frame #7: 0x00000001a14a311c CoreFoundation`__CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
frame #8: 0x00000001a14a30dc CoreFoundation`___CFXRegistrationPost_block_invoke + 48
frame #9: 0x00000001a14a26c8 CoreFoundation`_CFXRegistrationPost + 400
frame #10: 0x00000001a14a20c0 CoreFoundation`_CFXNotificationPost + 696
frame #11: 0x00000001a2707c04 Foundation`-[NSNotificationCenter postNotificationName:object:userInfo:] + 60
frame #12: 0x00000001002b6d5c VLC for iOS`-[VLCPlaybackService stopPlayback](self=Failed to get the 'some' field from optional 'self', _cmd="stopPlayback") at VLCPlaybackService.m:358:5
frame #13: 0x00000001002b5b4c VLC for iOS`-[VLCPlaybackService playMediaList:firstIndex:subtitlesFilePath:completion:](self=Failed to get the 'some' field from optional 'self', _cmd="playMediaList:firstIndex:subtitlesFilePath:completion:", mediaList=Failed to get the 'some' field from optional 'mediaList', index=12, subsFilePath=0x0000000000000000, completion=(null)) at VLCPlaybackService.m:169:22
frame #14: 0x00000001002b5a50 VLC for iOS`-[VLCPlaybackService playMediaList:firstIndex:subtitlesFilePath:](self=Failed to get the 'some' field from optional 'self', _cmd="playMediaList:firstIndex:subtitlesFilePath:", mediaList=Failed to get the 'some' field from optional 'mediaList', index=12, subsFilePath=0x0000000000000000) at VLCPlaybackService.m:158:5
frame #15: 0x00000001002d603c VLC for iOS`-[VLCPlaybackService(self=Failed to get the 'some' field from optional 'self', _cmd="configureMediaList:atIndex:", list=Failed to get the 'some' field from optional 'list', index=12) configureMediaList:atIndex:] at VLCPlaybackService+MediaLibrary.m:113:5
frame #16: 0x00000001002d5f88 VLC for iOS`-[VLCPlaybackService(self=Failed to get the 'some' field from optional 'self', _cmd="configureMediaListWithMLMedia:indexToPlay:", mlMedia=0x000000028206fb60, index=12) configureMediaListWithMLMedia:indexToPlay:] at VLCPlaybackService+MediaLibrary.m:108:5
frame #17: 0x00000001002d5428 VLC for iOS`-[VLCPlaybackService(self=Failed to get the 'some' field from optional 'self', _cmd="playMediaAtIndex:fromCollection:", index=12, collection=0x000000028206fb60) playMediaAtIndex:fromCollection:] at VLCPlaybackService+MediaLibrary.m:23:5
frame #18: 0x0000000100434e94 VLC for iOS`MediaCategoryViewController.play(media=0x000000028351d020, indexPath=2 indices, self=0x000000010601ec00) at MediaCategoryViewController.swift:1143:28
frame #19: 0x000000010043406c VLC for iOS`MediaCategoryViewController.selectedItem(indexPath=2 indices, self=0x000000010601ec00) at MediaCategoryViewController.swift:794:13
frame #20: 0x000000010043d1c4 VLC for iOS`MediaCategoryViewController.mediaCollectionViewCellMediaTapped(cell=0x0000000105b8a780, self=0x000000010601ec00) at MediaCategoryViewController.swift:1167:9
frame #21: 0x000000010043d864 VLC for iOS`protocol witness for MediaCollectionViewCellDelegate.mediaCollectionViewCellMediaTapped(in:) in conformance MediaCategoryViewController at <compiler-generated>:0
frame #22: 0x00000001003dda70 VLC for iOS`MediaCollectionViewCell.mediaTapped(self=0x0000000105b8a780) at MediaCollectionViewCell.swift:122:19
frame #23: 0x00000001003ddab4 VLC for iOS`@objc MediaCollectionViewCell.mediaTapped() at <compiler-generated>:0
frame #24: 0x00000001a3956034 UIKitCore`-[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:] + 52
frame #25: 0x00000001a395f570 UIKitCore`_UIGestureRecognizerSendTargetActions + 112
frame #26: 0x00000001a395c1e0 UIKitCore`_UIGestureRecognizerSendActions + 352
frame #27: 0x00000001a395b7a8 UIKitCore`-[UIGestureRecognizer _updateGestureForActiveEvents] + 668
frame #28: 0x00000001a394fe10 UIKitCore`_UIGestureEnvironmentUpdate + 2056
frame #29: 0x00000001a394f1a0 UIKitCore`-[UIGestureEnvironment _updateForEvent:window:] + 744
frame #30: 0x00000001a3e18a14 UIKitCore`-[UIWindow sendEvent:] + 3736
frame #31: 0x00000001a3df4338 UIKitCore`-[UIApplication sendEvent:] + 708
frame #32: 0x00000001a3e77594 UIKitCore`__dispatchPreprocessedEventFromEventQueue + 1024
frame #33: 0x00000001a3e7bdb8 UIKitCore`__processEventQueue + 6452
frame #34: 0x00000001a3e72fdc UIKitCore`__eventQueueSourceCallback + 72
frame #35: 0x00000001a14c0b74 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
frame #36: 0x00000001a14c0a74 CoreFoundation`__CFRunLoopDoSource0 + 204
frame #37: 0x00000001a14bfe2c CoreFoundation`__CFRunLoopDoSources0 + 356
frame #38: 0x00000001a14ba2e4 CoreFoundation`__CFRunLoopRun + 768
frame #39: 0x00000001a14b9a9c CoreFoundation`CFRunLoopRunSpecific + 572
frame #40: 0x00000001b810b570 GraphicsServices`GSEventRunModal + 160
frame #41: 0x00000001a3dd5c30 UIKitCore`-[UIApplication _run] + 1052
frame #42: 0x00000001a3ddb1ac UIKitCore`UIApplicationMain + 164
frame #43: 0x00000001002fb880 VLC for iOS`main(argc=1, argv=0x000000016fb6f720) at main.m:20:16
frame #44: 0x00000001a1198140 libdyld.dylib`start + 4