I have meeted an odd crash just in macOS 10.15, when I'm developing a video player using NSView.What's more, I use OpenGL and Metal and have the same crash stack.I developed the app by qt but I'm not familiar with NSView,so I need someone give me advice to sovle the crash.
assertion failure: "(self)->enumeratingSubviewsCount < ((1 << 6) - 1)"
0 libsystemkernel.dylib 0x00007fff644ceada abortwithpayload + 10
1 libsystemkernel.dylib 0x00007fff644d04eb abortwithpayloadwrapperinternal + 80
2 libsystemkernel.dylib 0x00007fff644d051d abortwithpayload + 9
3 libsystemc.dylib 0x00007fff6443ca1b oscrashfmt.cold.1 + 55
4 libsystemc.dylib 0x00007fff643cf8ef oscrashfmt + 154
5 com.apple.AppKit 0x00007fff2a18982e -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 4091
6 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 1117
7 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 1117
8 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 1117
9 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 1117
10 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 1117
11 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 1117
12 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 1117
13 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 1117
14 com.apple.AppKit 0x00007fff2a1887df -[NSView buildLayerTree] + 466
15 com.apple.AppKit 0x00007fff2a18841d NSViewBuildLayerTreeForDisplay + 47
16 com.apple.AppKit 0x00007fff2a188355 -[NSWindow displayIfNeeded] + 191
17 com.apple.AppKit 0x00007fff2a1881ef NSWindowGetDisplayCycleObserverForDisplayblockinvoke + 646
18 com.apple.AppKit 0x00007fff2a183cc8 NSDisplayCycleObserverInvoke + 155
19 com.apple.AppKit 0x00007fff2a18388f NSDisplayCycleFlush + 977
20 com.apple.QuartzCore 0x00007fff386d4c6e CA::Transaction::runcommithandlers(CATransactionPhase) + 100
21 com.apple.QuartzCore 0x00007fff386d45c0 CA::Transaction::commit() + 224
assertion failure: "(self)->enumeratingSubviewsCount < ((1 << 6) - 1)"
0 libsystemkernel.dylib 0x00007fff644ceada abortwithpayload + 10
1 libsystemkernel.dylib 0x00007fff644d04eb abortwithpayloadwrapperinternal + 80
2 libsystemkernel.dylib 0x00007fff644d051d abortwithpayload + 9
3 libsystemc.dylib 0x00007fff6443ca1b oscrashfmt.cold.1 + 55
4 libsystemc.dylib 0x00007fff643cf8ef oscrashfmt + 154
5 com.apple.AppKit 0x00007fff2a18982e -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 4091
6 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 1117
7 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 1117
8 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 1117
9 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 1117
10 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 1117
11 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 1117
12 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 1117
13 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 1117
14 com.apple.AppKit 0x00007fff2a1887df -[NSView buildLayerTree] + 466
15 com.apple.AppKit 0x00007fff2a18841d NSViewBuildLayerTreeForDisplay + 47
16 com.apple.AppKit 0x00007fff2a188355 -[NSWindow displayIfNeeded] + 191
17 com.apple.AppKit 0x00007fff2a1881ef NSWindowGetDisplayCycleObserverForDisplayblockinvoke + 646
18 com.apple.AppKit 0x00007fff2a183cc8 NSDisplayCycleObserverInvoke + 155
19 com.apple.AppKit 0x00007fff2a18388f NSDisplayCycleFlush + 977
20 com.apple.QuartzCore 0x00007fff386d4c6e CA::Transaction::runcommithandlers(CATransactionPhase) + 100
21 com.apple.QuartzCore 0x00007fff386d45c0 CA::Transaction::commit() + 224