gpt4 book ai didi

cocoa - 如何在 Mac OS X 10.9 上检测 NaN 传递给 CoreGraphics API 的位置

转载 作者:行者123 更新时间:2023-12-03 16:00:41 24 4
gpt4 key购买 nike

我有非常大的图形 Mac 应用程序,现在我在 10.9 GM 的控制台中收到很多以下消息。

<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:dequeue] 后这些消息出现在调试器中,但我认为原因在其他一些地方。但我使用 Cocoa Graphics 的地方太多了。 10.9之前我没有收到过这样的消息。

如何检测 NaN 传递给 CoreGraphics API 的位置?

Screenshot for this error on console

最佳答案

经过深入研究,我发现您可以在 Xcode 中的“CGPostError”上设置符号断点,这将为您提供堆栈跟踪。

关于cocoa - 如何在 Mac OS X 10.9 上检测 NaN 传递给 CoreGraphics API 的位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19187344/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com