我有一个包含源列表和表视图的拆分视图。所有数据都会加载并显示在屏幕上。
我在当前的计划中启用了Xcode: How to set CA_DEBUG_TRANSACTIONS=1?。
我没有在后台线程中更新任何UI或者根本不做任何事情。只需滚动即可触发错误。
日志:
CoreAnimation: warning, encountered thread with uncommitted CATransaction; created by:
0 QuartzCore 0x00007fff8aabf69a _ZN2CA11Transaction4pushEv + 318
1 QuartzCore 0x00007fff8aabf19a _ZN2CA11Transaction15ensure_implicitEv + 276
2 QuartzCore 0x00007fff8aac5719 _ZN2CA5Layer13thread_flags_EPNS_11TransactionE + 37
3 QuartzCore 0x00007fff8aac5668 _ZN2CA5Layer4markEPNS_11TransactionEjj + 64
4 QuartzCore 0x00007fff8aac712b _ZN2CA5Layer25set_needs_display_in_rectERK6CGRect + 333
5 QuartzCore 0x00007fff8aac6fdc -[CALayer setNeedsDisplayInRect:] + 25
6 AppKit 0x00007fff865759ac -[_NSTiledLayer setNeedsDisplayInRect:] + 210
7 AppKit 0x00007fff8662f4b8 -[_NSBackingLayerContents invalidateRect:] + 94
8 AppKit 0x00007fff8635a249 _NSBackingLayerSetNeedsDisplayInRect + 160
9 AppKit 0x00007fff8635a1a3 -[_NSBackingLayer setNeedsDisplayInRect:] + 61
10 AppKit 0x00007fff8635a98b -[NSView(NSInternal) _setLayerNeedsDisplayInViewRect:] + 606
11 AppKit 0x00007fff8632888e NSViewSetNeedsDisplayInRect + 945
12 AppKit 0x00007fff863284d6 -[NSView setNeedsDisplayInRect:] + 48
13 AppKit 0x00007fff866d20e3 -[_NSMirrorDocumentView documentViewNeedsDisplayInRect:] + 266
14 CoreFoundation 0x00007fff9019fbbc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
15 CoreFoundation 0x00007fff9019fb4f ___CFXRegistrationPost_block_invoke + 63
我对如何调试此问题感到茫然。