Post

Replies

Boosts

Views

Activity

how to solve enumerating subviews crash?
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
0
0
686
Sep ’20
How to solve the subview tree crash? Is the max subviews count 63?
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 + 101 libsystemkernel.dylib 0x00007fff644d04eb abortwithpayloadwrapperinternal + 802 libsystemkernel.dylib 0x00007fff644d051d abortwithpayload + 93 libsystemc.dylib 0x00007fff6443ca1b oscrashfmt.cold.1 + 554 libsystemc.dylib 0x00007fff643cf8ef oscrashfmt + 1545 com.apple.AppKit 0x00007fff2a18982e -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 40916 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 11177 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 11178 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 11179 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 111710 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 111711 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 111712 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 111713 com.apple.AppKit 0x00007fff2a188c90 -[NSView buildLayerTreeWithOwnLayerRequirement:someAncestorWantsLayer:] + 111714 com.apple.AppKit 0x00007fff2a1887df -[NSView buildLayerTree] + 46615 com.apple.AppKit 0x00007fff2a18841d NSViewBuildLayerTreeForDisplay + 4716 com.apple.AppKit 0x00007fff2a188355 -[NSWindow displayIfNeeded] + 19117 com.apple.AppKit 0x00007fff2a1881ef NSWindowGetDisplayCycleObserverForDisplayblockinvoke + 64618 com.apple.AppKit 0x00007fff2a183cc8 NSDisplayCycleObserverInvoke + 15519 com.apple.AppKit 0x00007fff2a18388f NSDisplayCycleFlush + 97720 com.apple.QuartzCore 0x00007fff386d4c6e CA::Transaction::runcommithandlers(CATransactionPhase) + 10021 com.apple.QuartzCore 0x00007fff386d45c0 CA::Transaction::commit() + 224
0
1
576
Sep ’20