【发布时间】:2014-08-13 14:22:02
【问题描述】:
还有很多关于堆栈溢出的其他条目:
CoreAnimation: warning, deleted thread with uncommitted CATransaction 消息并通过启用 CA_DEBUG_TRANSACTIONS 对其进行排序。在我看到的 99% 的其他帖子中,回溯显示了未提交动画的来源(例如,参见 Core Animation Warning: "uncommitted CATransaction",它显示了在 MyApp 中调用的函数)。
就我而言,我已将 CA_DEBUG_TRANSACTIONS 标志设置为 1,然后我得到了回溯,但不幸的是它没有告诉我它来自哪里:
Deallocating
CoreAnimation: warning, deleted thread with uncommitted CATransaction; created by:
0 QuartzCore 0x00007fff95f8c76a _ZN2CA11Transaction4pushEv + 312
1 QuartzCore 0x00007fff95f8c60a _ZN2CA11Transaction15ensure_implicitEv + 276
2 QuartzCore 0x00007fff95f916f5 _ZN2CA5Layer13thread_flags_EPNS_11TransactionE + 37
3 QuartzCore 0x00007fff95f91642 _ZN2CA5Layer4markEPNS_11TransactionEjj + 64
4 QuartzCore 0x00007fff95f931df _ZN2CA5Layer25set_needs_display_in_rectERK6CGRect + 315
5 AppKit 0x00007fff97e7ebdd _NSBackingLayerSetNeedsDisplayInRect + 319
6 QuartzCore 0x00007fff95f93081 -[CALayer setNeedsDisplay] + 62
7 AppKit 0x00007fff97e7ea77 -[NSView(NSInternal) _setLayerNeedsDisplayInViewRect:] + 648
8 AppKit 0x00007fff98505049 NSViewSetNeedsDisplayInRect + 838
9 AppKit 0x00007fff97e13eed -[NSView setNeedsDisplay:] + 81
10 AppKit 0x00007fff97e2ddc0 -[_NSThemeWidget update] + 166
11 AppKit 0x00007fff980aa844 -[NSThemeFrame _updateButtonState] + 41
12 AppKit 0x00007fff98101fff -[NSWindow(NSSheets) _detachSheetWindow:] + 641
13 AppKit 0x00007fff98101a1a -[NSMoveHelper(NSSheets) _closeSheet:andMoveParent:] + 546
14 AppKit 0x00007fff9810178c -[NSWindow(NSSheets) _orderOutRelativeToWindow:] + 105
15 AppKit 0x00007fff97f232d7 -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 2833
不幸的是,代码库非常大,并且没有从我的代码库中看到源点,我不确定如何追踪它。
有什么建议吗?
【问题讨论】:
标签: macos cocoa appkit quartz-core