macosx: (4.0) Playing next media item after current one causes crash
2024-06-15 16:11:32.568 vlc-osx-static[2257:11474783] *** Assertion failure in -[_NSCollectionViewCore _endItemAnimationsWithInvalidationContext:tentativelyForReordering:animator:], UICollectionView.m:4230
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of items in section 0 (section 0 before update). The number of items contained in an existing section after the update (20) must be equal to the number of items contained in that section before the update (20), plus or minus the number of items inserted or deleted from that section (1 inserted, 0 deleted) and plus or minus the number of items moved into or out of that section (0 moved in, 0 moved out). 1 inserts and 0 deletes came from client insert and delete calls. 0 rows in this section were reloaded. Before update: 2 sections. After: 2 sections.'
*** First throw call stack:
(
0 CoreFoundation 0x000000018364f2ec __exceptionPreprocess + 176
1 libobjc.A.dylib 0x0000000183136788 objc_exception_throw + 60
2 Foundation 0x00000001847c242c -[NSCalendarDate initWithCoder:] + 0
3 AppKit 0x00000001878c49ac __101-[_NSCollectionViewCore _endItemAnimationsWithInvalidationContext:tentativelyForReordering:animator:]_block_invoke + 160
4 AppKit 0x00000001878c420c -[_NSCollectionViewCore _endItemAnimationsWithInvalidationContext:tentativelyForReordering:animator:] + 8384
5 AppKit 0x00000001878c1f70 -[_NSCollectionViewCore _updateRowsAtIndexPaths:updateAction:] + 244
6 AppKit 0x00000001879eacb4 -[NSCollectionView insertItemsAtIndexPaths:] + 196
7 libmacosx_plugin.dylib 0x00000001035f2e7c __65-[VLCLibraryVideoDataSource reloadDataForMediaItem:inVideoGroup:]_block_invoke.33 + 144
8 libmacosx_plugin.dylib 0x00000001035f2b8c -[VLCLibraryVideoDataSource changeDataForSpecificMediaItem:inVideoGroup:arrayOperation:completionHandler:] + 516
9 libmacosx_plugin.dylib 0x00000001035f2d44 -[VLCLibraryVideoDataSource reloadDataForMediaItem:inVideoGroup:] + 292
10 libmacosx_plugin.dylib 0x00000001035f24ac -[VLCLibraryVideoDataSource libraryModelRecentsItemUpdated:] + 356
11 CoreFoundation 0x00000001835cf144 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 148
12 CoreFoundation 0x00000001836633d8 ___CFXRegistrationPost_block_invoke + 88
13 CoreFoundation 0x0000000183663320 _CFXRegistrationPost + 440
14 CoreFoundation 0x000000018359d678 _CFXNotificationPost + 768
15 Foundation 0x00000001846ba4e4 -[NSNotificationCenter postNotificationName:object:userInfo:] + 88
16 libmacosx_plugin.dylib 0x00000001035ce014 -[VLCLibraryModelChangeDelegate notifyChange:withObject:] + 188
17 libmacosx_plugin.dylib 0x00000001035cbec8 __46-[VLCLibraryModel handleMediaItemUpdateEvent:]_block_invoke + 396
18 libmacosx_plugin.dylib 0x00000001035cb92c __58-[VLCLibraryModel performActionOnMediaItemInCache:action:]_block_invoke.85 + 72
19 libdispatch.dylib 0x000000018334a3e8 _dispatch_client_callout + 20
20 libdispatch.dylib 0x00000001833599b0 _dispatch_async_and_wait_invoke + 92
21 libdispatch.dylib 0x000000018334a3e8 _dispatch_client_callout + 20
22 libdispatch.dylib 0x0000000183358bb8 _dispatch_main_queue_drain + 988
23 libdispatch.dylib 0x00000001833587cc _dispatch_main_queue_callback_4CF + 44
24 CoreFoundation 0x000000018361bad4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
25 CoreFoundation 0x00000001835d9258 __CFRunLoopRun + 1996
26 CoreFoundation 0x00000001835d8434 CFRunLoopRunSpecific + 608
27 HIToolbox 0x000000018dd7c19c RunCurrentEventLoopInMode + 292
28 HIToolbox 0x000000018dd7bfd8 ReceiveNextEventCommon + 648
29 HIToolbox 0x000000018dd7bd30 _BlockUntilNextEventMatchingListInModeWithFilter + 76
30 AppKit 0x0000000186e37d68 _DPSNextEvent + 660
31 AppKit 0x000000018762d808 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 700
32 AppKit 0x0000000186e2b09c -[NSApplication run] + 476
33 vlc-osx-static 0x00000001028632d4 main + 1780
34 dyld 0x00000001831720e0 start + 2360
)