Out of bounds exceptions when querying names of subtitles and audio tracks
Since the switch to the new tracks API in VLCKit, we trigger out-of-bounds exceptions that are not being caught.
0 CoreFoundation 0x19d954f20 __exceptionPreprocess + 164 (NSException.m:249)
1 libobjc.A.dylib 0x195856018 objc_exception_throw + 60 (objc-exception.mm:356)
2 CoreFoundation 0x19d950ac4 -[__NSArrayI objectAtIndexedSubscript:] + 476 (NSArrayI.m:0)
3 VLC for iOS 0x1048a1764 -[VLCPlaybackService videoSubtitleNameAtIndex:] + 204 (VLCPlaybackService.m:670)
4 VLC for iOS 0x10493b94c TitleSelectionView.tableView(_:cellForRowAt:) + 1552 (TitleSelectionView.swift:309)
5 VLC for iOS 0x10493bc2c @objc TitleSelectionView.tableView(_:cellForRowAt:) + 140 (<compiler-generated>:0)
6 UIKitCore 0x19fdaaee4 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 884 (UITableView.m:16705)
7 UIKitCore 0x1a0bc7784 -[UITableView _prefetchCellAtGlobalRow:aboveVisibleRange:] + 260 (UITableView.m:10824)
8 UIKitCore 0x1a0bc765c __48-[UITableView _configureCellPrefetchingHandlers]_block_invoke + 52 (UITableView.m:10773)
9 UIKitCore 0x19fb6bf8c -[_UITableViewPrefetchContext updateVisibleIndexRange:withContentOffset:] + 1996 (_UITableViewPrefetchContext.m:145)
10 UIKitCore 0x1a0bc7930 -[UITableView _updateCycleIdleUntil:] + 168 (UITableView.m:10910)
11 UIKitCore 0x1a06bba8c ___UIUpdateCycleNotifyIdle_block_invoke + 600 (_UIUpdateCycleIdleScheduler.m:292)
12 libdispatch.dylib 0x1a57f813c _dispatch_call_block_and_release + 32 (init.c:1530)
13 libdispatch.dylib 0x1a57f9dd4 _dispatch_client_callout + 20 (object.m:576)
14 libdispatch.dylib 0x1a58085a4 _dispatch_main_queue_drain + 988 (queue.c:7898)
15 libdispatch.dylib 0x1a58081b8 _dispatch_main_queue_callback_4CF + 44 (queue.c:8058)
16 CoreFoundation 0x19d927710 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (CFRunLoop.c:1780)
17 CoreFoundation 0x19d924914 __CFRunLoopRun + 1996 (CFRunLoop.c:3149)
18 CoreFoundation 0x19d923cd8 CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420)
19 GraphicsServices 0x1e27d41a8 GSEventRunModal + 164 (GSEvent.c:2196)
20 UIKitCore 0x19ff5c90c -[UIApplication _run] + 888 (UIApplication.m:3713)
21 UIKitCore 0x1a00109d0 UIApplicationMain + 340 (UIApplication.m:5303)
22 VLC for iOS 0x104884340 main + 88 (main.m:20)
23 dyld 0x1c0fd5e4c start + 2240 (dyldMain.cpp:1298)
0 CoreFoundation 0x19b934f20 __exceptionPreprocess + 164 (NSException.m:249)
1 libobjc.A.dylib 0x1937ca018 objc_exception_throw + 60 (objc-exception.mm:356)
2 CoreFoundation 0x19b930ac4 -[__NSArrayI objectAtIndexedSubscript:] + 476 (NSArrayI.m:0)
3 VLC for iOS 0x1008c185c -[VLCPlaybackService audioTrackNameAtIndex:] + 204 (VLCPlaybackService.m:681)
4 VLC for iOS 0x10095b81c TitleSelectionView.tableView(_:cellForRowAt:) + 1248 (TitleSelectionView.swift:299)
5 VLC for iOS 0x10095bc2c @objc TitleSelectionView.tableView(_:cellForRowAt:) + 140 (<compiler-generated>:0)
6 UIKitCore 0x19dd8b0b4 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 1348 (UITableView.m:16709)
7 UIKitCore 0x19dd89ed8 -[UITableView _updateVisibleCellsForRanges:createIfNecessary:] + 596 (UITableView.m:3110)
8 UIKitCore 0x19dd89488 -[UITableView _updateVisibleCellsNow:] + 1100 (UITableView.m:3252)
9 UIKitCore 0x19de67830 -[UITableView layoutSubviews] + 148 (UITableView.m:10679)
10 UIKitCore 0x19db42a4c -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1528 (UIView.m:20054)
11 QuartzCore 0x19cfa13b4 CA::Layer::layout_if_needed(CA::Transaction*) + 504 (CALayer.mm:10816)
12 QuartzCore 0x19cfa0f38 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 148 (CALayer.mm:2598)
13 QuartzCore 0x19cffc0e0 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 464 (CAContextInternal.mm:2760)
14 QuartzCore 0x19cf71028 CA::Transaction::commit() + 648 (CATransactionInternal.mm:432)
15 QuartzCore 0x19cfbad7c CA::Transaction::flush_as_runloop_observer(bool) + 88 (CATransactionInternal.mm:942)
16 UIKitCore 0x19dbebff4 _UIApplicationFlushCATransaction + 52 (UIApplication.m:3181)
17 UIKitCore 0x19dbe976c _UIUpdateSequenceRun + 84 (_UIUpdateSequence.mm:119)
18 UIKitCore 0x19dbe93b0 schedulerStepScheduledMainSection + 172 (_UIUpdateScheduler.m:1058)
19 UIKitCore 0x19dbea254 runloopSourceCallback + 92 (_UIUpdateScheduler.m:1221)
20 CoreFoundation 0x19b907834 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1957)
21 CoreFoundation 0x19b9077c8 __CFRunLoopDoSource0 + 176 (CFRunLoop.c:2001)
22 CoreFoundation 0x19b905298 __CFRunLoopDoSources0 + 244 (CFRunLoop.c:2038)
23 CoreFoundation 0x19b904484 __CFRunLoopRun + 828 (CFRunLoop.c:2955)
24 CoreFoundation 0x19b903cd8 CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420)
25 GraphicsServices 0x1e07b41a8 GSEventRunModal + 164 (GSEvent.c:2196)
26 UIKitCore 0x19df3c90c -[UIApplication _run] + 888 (UIApplication.m:3713)
27 UIKitCore 0x19dff09d0 UIApplicationMain + 340 (UIApplication.m:5303)
28 VLC for iOS 0x1008a4340 main + 88 (main.m:20)
29 dyld 0x1befb5e4c start + 2240 (dyldMain.cpp:1298)