NSButtonBezelView views causing crashes

An NSCollectionView that contains checkboxes as the individual items crashes in macOS 10.14 beta 2 The crash appears to be related to a change in the view hierarchy for buttons and specifically related to NSButtonBezelView (I think that is the class). Here AppKit is copying connections from the template views defined for the collection view item; however, the visible views have a different hierarchy causing the crash (traceback below if it helps anyone).


Questions:


- Any way to work around the crash perhaps by manipulating the views associated with the collection item template before -[NSCollectionViewItem _copyConnectionsOfObject:prototypeItem:toObject:item:] starts trying to copy connections?

- Any information on the new hierarcy of for NSButtons views?


FWIW I have opened a bug report with Apple in hopes that this gets fixed for the release.


0 CoreFoundation 0x00007fff2b913484 __exceptionPreprocess + 197

1 libobjc.A.dylib 0x00007fff57a3ad08 objc_exception_throw + 48

2 CoreFoundation 0x00007fff2b94a3b4 _CFThrowFormattedException + 202

3 CoreFoundation 0x00007fff2b859dc7 -[__NSArrayM objectAtIndex:] + 151

4 AppKit 0x00007fff2914c3a0 -[NSCollectionViewItem _copyConnectionsOfObject:prototypeItem:toObject:item:] + 784

5 AppKit 0x00007fff2914c07c -[NSCollectionViewItem _copyConnectionsToItem:] + 95

6 AppKit 0x00007fff2914a1de -[NSCollectionViewItem copyWithZone:] + 521

7 AppKit 0x00007fff29149f40 -[NSCollectionView newItemForRepresentedObject:] + 208

8 AppKit 0x00007fff29149a21 -[NSCollectionView _getItemsToDisplay] + 1291

9 AppKit 0x00007fff29149420 -[NSCollectionView setContent:] + 295

10 AppKit 0x00007fff291492be -[NSCollectionViewBinder _updateContent] + 93

11 AppKit 0x00007fff291491ea -[NSCollectionViewBinder _observeValueForKeyPath:ofObject:context:] + 84

12 Foundation 0x00007fff2dc9c592 NSKeyValueNotifyObserver + 346

13 Foundation 0x00007fff2dd0e744 -[NSObject(NSKeyValueObservingPrivate) _notifyObserversForKeyPath:change:] + 1128

14 AppKit 0x00007fff28fba755 -[NSController _notifyObserversForKeyPath:change:] + 193

15 AppKit 0x00007fff290010a6 -[NSArrayController didChangeValuesForArrangedKeys:objectKeys:indexKeys:] + 53

16 AppKit 0x00007fff29002b7c -[NSArrayController setContent:] + 747

17 AppKit 0x00007fff29002580 -[NSArrayDetailBinder _refreshDetailContentInBackground:] + 1053

18 Foundation 0x00007fff2dd288aa -[NSKeyValueObservance observeValueForKeyPath:ofObject:change:context:] + 422

19 Foundation 0x00007fff2dc9c592 NSKeyValueNotifyObserver + 346

20 Foundation 0x00007fff2dc9beb5 NSKeyValueDidChange + 476

21 Foundation 0x00007fff2ddda177 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:usingBlock:] + 779

22 Foundation 0x00007fff2dc67f1b -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] + 61

23 Foundation 0x00007fff2dcc5c34 _NSSetObjectValueAndNotify + 255

24 MacVector 0x00000001016b3f0a __39-[RestrictionEnzymePaletteModel update]_block_invoke + 1098

25 Foundation 0x00007fff2dc9d0e3 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 7

26 Foundation 0x00007fff2dc9cf45 -[NSBlockOperation main] + 68

27 Foundation 0x00007fff2dc9b4eb -[__NSOperationInternal _start:] + 763

28 Foundation 0x00007fff2dc97703 __NSOQSchedule_f + 227

29 libdispatch.dylib 0x0000000103eedcdf _dispatch_block_async_invoke2 + 83

30 libdispatch.dylib 0x0000000103ed153f _dispatch_client_callout + 8

31 libdispatch.dylib 0x0000000103eded70 _dispatch_main_queue_callback_4CF + 1915

32 CoreFoundation 0x00007fff2b8d9fbb __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9

33 CoreFoundation 0x00007fff2b8a4be9 __CFRunLoopRun + 2341

34 CoreFoundation 0x00007fff2b8a40a7 CFRunLoopRunSpecific + 463

35 HIToolbox 0x00007fff2ab3614b RunCurrentEventLoopInMode + 293

36 HIToolbox 0x00007fff2ab35e85 ReceiveNextEventCommon + 618

37 HIToolbox 0x00007fff2ab35c02 _BlockUntilNextEventMatchingListInModeWithFilter + 64

38 AppKit 0x00007fff28e2219e _DPSNextEvent + 1000

39 AppKit 0x00007fff2956daa6 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1356

40 AppKit 0x00007fff28e1788e -[NSApplication run] + 699

41 AppKit 0x00007fff28de72b2 NSApplicationMain + 782

42 MacVector 0x000000010111c5df main + 351

43 libdyld.dylib 0x00007fff589bdb11 start + 1