macos: NSInternalInconsistencyException / VLCLibraryVideoDataSource
The macOS 4.0 UI (git version: bc0ae475) crashes after a video finishes playing.
What I tried is to:
- Start playing video from video mediathek
- waiting for the video to finish
- Try to switch back to video library by stopping playback (Cmd + .)
2023-12-29 21:22:23.902976+0100 VLC[98619:2906772] *** Assertion failure in -[_NSCollectionViewCore _endItemAnimationsWithInvalidationContext:tentativelyForReordering:animator:], UICollectionView.m:4216
2023-12-29 21:22:23.907200+0100 VLC[98619:2906772] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of items in section 1 (section 1 before update). The number of items contained in an existing section after the update (31) must be equal to the number of items contained in that section before the update (31), 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 0x00000001806a8570 __exceptionPreprocess + 176
1 libobjc.A.dylib 0x0000000180199eb4 objc_exception_throw + 60
2 Foundation 0x00000001817f043c -[NSCalendarDate initWithCoder:] + 0
3 AppKit 0x
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of items in section 1 (section 1 before update). The number of items contained in an existing section after the update (31) must be equal to the number of items contained in that section before the update (31), 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 0x00000001806a8570 __exceptionPreprocess + 176
1 libobjc.A.dylib 0x0000000180199eb4 objc_exception_throw + 60
2 Foundation 0x00000001817f043c -[NSCalendarDate initWithCoder:] + 0
3 AppKit 0x00000001848809fc __101-[_NSCollectionViewCore _endItemAnimationsWithInvalidationContext:tentativelyForReordering:animator:]_block_invoke + 160
4 AppKit 0x000000018488025c -[_NSCollectionViewCore _endItemAnimationsWithInvalidationContext:tentativelyForReordering:animator:] + 8384
5 AppKit 0x000000018487dfc0 -[_NSCollectionViewCore _updateRowsAtIndexPaths:updateAction:] + 244
6 AppKit 0x00000001849a71f8 -[NSCollectionView insertItemsAtIndexPaths:] + 196
7 libmacosx_plugin.dylib 0x0000000100d12fdc __65-[VLCLibraryVideoDataSource reloadDataForMediaItem:inVideoGroup:]_block_invoke.33 + 144
8 libmacosx_plugin.dylib 0x0000000100d12cec -[VLCLibraryVideoDataSource changeDataForSpecificMediaItem:inVideoGroup:arrayOperation:completionHandler:] + 516
9 libmacosx_plugin.dylib 0x0000000100d12ea4 -[VLCLibraryVideoDataSource reloadDataForMediaItem:inVideoGroup:] + 292
10 libmacosx_plugin.dylib 0x0000000100d12438 -[VLCLibraryVideoDataSource libraryModelVideoItemUpdated:] + 356
11 CoreFoundation 0x0000000180628570 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 148
12 CoreFoundation 0x00000001806bc65c ___CFXRegistrationPost_block_invoke + 88
13 CoreFoundation 0x00000001806bc5a4 _CFXRegistrationPost + 440
14 CoreFoundation 0x00000001805f71dc _CFXNotificationPost + 764
15 Foundation 0x00000001816e9ff0 -[NSNotificationCenter postNotificationName:object:userInfo:] + 88
16 libmacosx_plugin.dylib 0x0000000100cf6c6c __46-[VLCLibraryModel handleMediaItemUpdateEvent:]_block_invoke + 412
17 libmacosx_plugin.dylib 0x0000000100cf66e8 __58-[VLCLibraryModel performActionOnMediaItemInCache:action:]_block_invoke.76 + 72
18 libdispatch.dylib 0x00000001803a4910 _dispatch_client_callout + 20
19 libdispatch.dylib 0x00000001803b3d9c _dispatch_async_and_wait_invoke + 92
20 libdispatch.dylib 0x00000001803a4910 _dispatch_client_callout + 20
21 libdispatch.dylib 0x00000001803b2fa8 _dispatch_main_queue_drain + 984
22 libdispatch.dylib 0x00000001803b2bc0 _dispatch_main_queue_callback_4CF + 44
23 CoreFoundation 0x0000000180674ecc __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
24 CoreFoundation 0x00000001806327d0 __CFRunLoopRun + 1996
25 CoreFoundation 0x00000001806319ac CFRunLoopRunSpecific + 608
26 HIToolbox 0x000000018abe0448 RunCurrentEventLoopInMode + 292
27 HIToolbox 0x000000018abe0284 ReceiveNextEventCommon + 648
28 HIToolbox 0x000000018abdffdc _BlockUntilNextEventMatchingListInModeWithFilter + 76
29 AppKit 0x0000000183e0e8a4 _DPSNextEvent + 660
30 AppKit 0x00000001845e8980 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716
31 AppKit 0x0000000183e01d50 -[NSApplication run] + 476
32 VLC 0x0000000100003384 main + 1676
33 dyld 0x00000001801d50e0 start + 2360
)
2023-12-29 21:22:23.907647+0100 VLC[98619:2906772] [General] An uncaught exception was raised
2023-12-29 21:22:23.907713+0100 VLC[98619:2906772] [General] Invalid update: invalid number of items in section 1 (section 1 before update). The number of items contained in an existing section after the update (31) must be equal to the number of items contained in that section before the update (31), 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.
2023-12-29 21:22:23.907854+0100 VLC[98619:2906772] [General] (
0 CoreFoundation 0x00000001806a8570 __exceptionPreprocess + 176
1 libobjc.A.dylib 0x0000000180199eb4 objc_exception_throw + 60
2 Foundation 0x00000001817f043c -[NSCalendarDate initWithCoder:] + 0
3 AppKit 0x00000001848809fc __101-[_NSCollectionViewCore _endItemAnimationsWithInvalidationContext:tentativelyForReordering:animator:]_block_invoke + 160
4 AppKit 0x000000018488025c -[_NSCollectionViewCore _endItemAnimationsWithInvalidationContext:tentativelyForReordering:animator:] + 8384
5 AppKit 0x000000018487dfc0 -[_NSCollectionViewCore _updateRowsAtIndexPaths:updateAction:] + 244
6 AppKit 0x00000001849a71f8 -[NSCollectionView insertItemsAtIndexPaths:] + 196
7 libmacosx_plugin.dylib 0x0000000100d12fdc __65-[VLCLibraryVideoDataSource reloadDataForMediaItem:inVideoGroup:]_block_invoke.33 + 144
8 libmacosx_plugin.dylib 0x0000000100d12cec -[VLCLibraryVideoDataSource changeDataForSpecificMediaItem:inVideoGroup:arrayOperation:completionHandler:] + 516
9 libmacosx_plugin.dylib 0x0000000100d12ea4 -[VLCLibraryVideoDataSource reloadDataForMediaItem:inVideoGroup:] + 292
10 libmacosx_plugin.dylib 0x0000000100d12438 -[VLCLibraryVideoDataSource libraryModelVideoItemUpdated:] + 356
11 CoreFoundation 0x0000000180628570 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 148
12 CoreFoundation 0x00000001806bc65c ___CFXRegistrationPost_block_invoke + 88
13 CoreFoundation 0x00000001806bc5a4 _CFXRegistrationPost + 440
14 CoreFoundation 0x00000001805f71dc _CFXNotificationPost + 764
15 Foundation 0x00000001816e9ff0 -[NSNotificationCenter postNotificationName:object:userInfo:] + 88
16 libmacosx_plugin.dylib 0x0000000100cf6c6c __46-[VLCLibraryModel handleMediaItemUpdateEvent:]_block_invoke + 412
17 libmacosx_plugin.dylib 0x0000000100cf66e8 __58-[VLCLibraryModel performActionOnMediaItemInCache:action:]_block_invoke.76 + 72
18 libdispatch.dylib 0x00000001803a4910 _dispatch_client_callout + 20
19 libdispatch.dylib 0x00000001803b3d9c _dispatch_async_and_wait_invoke + 92
20 libdispatch.dylib 0x00000001803a4910 _dispatch_client_callout + 20
21 libdispatch.dylib 0x00000001803b2fa8 _dispatch_main_queue_drain + 984
22 libdispatch.dylib 0x00000001803b2bc0 _dispatch_main_queue_callback_4CF + 44
23 CoreFoundation 0x0000000180674ecc __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
24 CoreFoundation 0x00000001806327d0 __CFRunLoopRun + 1996
25 CoreFoundation 0x00000001806319ac CFRunLoopRunSpecific + 608
26 HIToolbox 0x000000018abe0448 RunCurrentEventLoopInMode + 292
27 HIToolbox 0x000000018abe0284 ReceiveNextEventCommon + 648
28 HIToolbox 0x000000018abdffdc _BlockUntilNextEventMatchingListInModeWithFilter + 76
29 AppKit 0x0000000183e0e8a4 _DPSNextEvent + 660
30 AppKit 0x00000001845e8980 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716
31 AppKit 0x0000000183e01d50 -[NSApplication run] + 476
32 VLC 0x0000000100003384 main + 1676
33 dyld 0x00000001801d50e0 start + 2360
)
libc++abi: terminating due to uncaught exception of type NSException
Process 98619 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT