我有一个带有源列表和表格视图的拆分视图。所有数据都被加载并显示在屏幕上。
我确实启用了Xcode:如何设置 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
我不知道如何调试这个问题。