我运行的是10.10.5 Yosemite和Xcode 6.4。我收到了CGSReenableUpdate警告。当我在不可预知的时间运行我的程序时,就会出现警告。它看起来像这样
<Warning>: CGSReenableUpdate: unbalanced enable/disable update.
<Warning>: Backtrace (at 62127):
<Warning>: CGSReenableUpdate: 0 CoreGraphics
<Warning>: CGSReenableUpdate: 1 CoreGraphics
<Warning>: CGSReenableUpdate: 2 CoreGraphics
<Warning>: CGSReenableUpdate: 3 CoreGraphics
<Warning>: CGSReenableUpdate: 4 QuickLook
<Warning>: CGSReenableUpdate: 5 libdispatch.dylib
<Warning>: CGSReenableUpdate: 6 libdispatch.dylib
<Warning>: CGSReenableUpdate: 7 libdispatch.dylib
<Warning>: CGSReenableUpdate: 8 libdispatch.dylib
<Warning>: CGSReenableUpdate: 9 libdispatch.dylib
<Warning>: CGSReenableUpdate: 10 libdispatch.dylib
<Warning>: CGSReenableUpdate: 11 libsystem_pthread.dylib
<Warning>: CGSReenableUpdate: 12 libsystem_pthread.dylib有没有办法抑制或摆脱这个警告?
发布于 2015-09-22 04:07:19
我也经历过这个警告。我的测试显示了以下内容。
警告仅在运行OS X 10.10的计算机上出现,且带有ATI或NVIDIA显卡。
只有在打开sqlite或xml文档时才会出现警告。打开二进制文档时不会出现这种情况。
在OS X 10.7、10.8或10.9计算机上不会出现警告。
英特尔显卡不会出现警告。
已提交Apple Bug报告21040416,但尚未响应。
发布于 2016-07-16 09:21:41
我在NSDocument的readFromData方法中做了一些修改后得到了这个错误。经过多次的尝试和错误,我发现这个函数抛出了一个错误,但我已经注释掉了所有的错误。当我在函数中包含一个throw语句时,崩溃,包括这个出于某种原因也引用了QuickLook和dropbox的崩溃,都消失了。
我不能解释因果关系,但这是需要考虑的事情...
https://stackoverflow.com/questions/32474767
复制相似问题