我有非常大的图形Mac应用程序,现在在控制台上10.9 GM上收到很多以下消息。如何检测NaN在Mac OS X上传递到CoreGraphics API的位置10.9
<Error>: Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API. This is a serious error and contributes to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
我注意到,这些消息出现在调试器调用后[NSApp表示nextEventMatchingMask:untilDate inMode:离队]但我认为原因在其他一些地方。但是我有太多的地方使用Cocoa Graphics。 10.9之前我没有收到这种消息。
如何检测NaN传递到CoreGraphics API的位置?
你需要扩展你的堆栈轨迹多一点。事件派发机制是运行循环的顶层函数,而不是图形堆栈。 – CodaFi
这些消息在nextEventMatchingMask之后立即出现在控制台中:看起来,错误事件在某个地方累积,然后一起显示。如何扩展图形堆栈? – Igor
堆栈跟踪窗格底部有一个滑块。将它滑到最右边,然后看到哪个函数出现在轨迹的顶部。 – CodaFi