在某些时候,我得到这些错误警告.我不知道他们来自哪里,甚至在哪里看.该应用程序似乎工作正常.
什么是CGSUpdateManager,为什么抱怨?
voID CGSUpdateManager::log() const: conn 0xdbbb token 0x2ffffffffffdc78 Backtrace (at 5543.57):voID CGSUpdateManager::log() const: 0 CoreGraphics 0x00007fff85db9215 CGSBacktraceCreate + 59voID CGSUpdateManager::log() const: 1 CoreGraphics 0x00007fff85dd8688 _ZN16CGSUpdateManager14disable_updateEv + 84voID CGSUpdateManager::log() const: 2 AppKit 0x00007fff897f3de5 -[NSWindow disableScreenUpdatesUntilFlush] + 127voID CGSUpdateManager::log() const: 3 AppKit 0x00007fff897b3250 -[NSVIEw _gainedLayerTreeHostAncestor] + 385voID CGSUpdateManager::log() const: 4 AppKit 0x00007fff897b30ae -[NSVIEw _recursiveGainedLayerTreeHostAncestor] + 27voID CGSUpdateManager::log() const: 5 AppKit 0x00007fff897b767a -[NSScroller _recursiveGainedLayerTreeHostAncestor] + 103voID CGSUpdateManager::log() const: 6 AppKit 0x00007fff89a1ea56 -[NSScroller _setSurfaceBacked:] + 213voID CGSUpdateManager::log() const: 7 AppKit 0x00007fff8998424f -[NSScrollVIEw setScrollerStyle:] + 304voID CGSUpdateManager::log() const: 8 AppKit 0x00007fff8a01bf27 +[NSScrollerImpPair _updateallScrollerImpPairsForNewRecommendedScrollerStyle:] + 426voID CGSUpdateManager::log() const: 9 CoreFoundation 0x00007fff914b5cbc __CFNOTIFICATIONCENTER_IS_CALliNG_OUT_TO_AN_OBSERVER__ + 12voID CGSUpdateManager::log() const: 10 CoreFoundation 0x00007fff913a71b4 _CFXNotificationPost + 3140voID CGSUpdateManager::log() const: 11 Foundation 0x00007fff917feea1 -[NSNotificationCenter postNotificationname:object:userInfo:] + 66voID CGSUpdateManager::log() const: 12 CoreFoundation 0x00007fff9141754c __CFRUNLOOP_IS_CALliNG_OUT_TO_A_BLOCK__ + 12voID CGSUpdateManager::log() const: 13 CoreFoundation 0x00007fff91409655 __CFRunLoopdoblocks + 341voID CGSUpdateManager::log() const: 14 CoreFoundation 0x00007fff91409196 __CFRunLoopRun + 1814voID CGSUpdateManager::log() const: 15 CoreFoundation 0x00007fff91408838 CFRunLoopRunspecific + 296voID CGSUpdateManager::log() const: 16 HIToolBox 0x00007fff8f30743f runcurrentEventLoopInMode + 235voID CGSUpdateManager::log() const: 17 HIToolBox 0x00007fff8f3071ba ReceiveNextEventCommon + 431voID CGSUpdateManager::log() const: 18 HIToolBox 0x00007fff8f306ffb _BlockUntilNextEventMatchingListInModeWithFilter + 71voID CGSUpdateManager::log() const: 19 AppKit 0x00007fff897376d1 _DPSNextEvent + 964voID CGSUpdateManager::log() const: 20 AppKit 0x00007fff89736e80 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 194voID CGSUpdateManager::log() const: 21 AppKit 0x00007fff8972ae23 -[NSApplication run] + 594voID CGSUpdateManager::log() const: 22 AppKit 0x00007fff897162d4 NSApplicationMain + 1832voID CGSUpdateManager::log() const: 23 Well 0x0000000100019422 top_level_code + 34voID CGSUpdateManager::log() const: 24 Well 0x000000010001945a main + 42voID CGSUpdateManager::log() const: 25 libdyld.dylib 0x00007fff85b7b5c9 start + 1当我升级到El CAPItan时,我开始看到同样的问题.
我最终将它追溯到我的代码库中的某个深层,之前没有引起任何问题……我有一个流浪的电话:
[NSGraphicsContext restoreCurrentContext];
这之前一直是个问题…确保平衡这些调用…特别是在早期返回的函数中!
[NSGraphicsContext saveCurrentContext];[NSGraphicsContext restoreCurrentContext];
类似的CGContextSaveGState(ctx); CGContextRestoreGState()
总结以上是内存溢出为你收集整理的cocoa – 什么是CGSUpdateManager,为什么抱怨?全部内容,希望文章能够帮你解决cocoa – 什么是CGSUpdateManager,为什么抱怨?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)