可可 – 如何检测NaN在Mac OS X 10.9上传递到CoreGraphics API的位置

可可 – 如何检测NaN在Mac OS X 10.9上传递到CoreGraphics API的位置,第1张

概述我有非常大的图形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 err 我有非常大的图形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]之后出现在调试器中,但我认为原因在其他一些地方。但我有太多地方使用可可图形。我在10.9之前没有收到这样的消息。

如何检测NaN在哪里传递到CoreGraphics API?

解决方法 经过很多的挖掘,我发现你可以在Xcode中的“CGPostError”上设置一个符号断点,这将给你一个堆栈跟踪。 总结

以上是内存溢出为你收集整理的可可 – 如何检测NaN在Mac OS X 10.9上传递到CoreGraphics API的位置全部内容,希望文章能够帮你解决可可 – 如何检测NaN在Mac OS X 10.9上传递到CoreGraphics API的位置所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1039522.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-24
下一篇2022-05-24

发表评论

登录后才能评论

评论列表(0条)

    保存