iOS 7.0下的无效上下文0x0和系统性能下降 - invalid context 0x0 under iOS 7.0 and system degradation

问题:

I've read as many search results I could find on this dreaded problem, unfortunatelly, each one seems to focus on a specific function call. 我已经阅读了很多关于这个可怕问题的搜索结果,不幸的是,每个人似乎都专注于特定的函数调用。

My problem is that I get the same error from multiple functions, which I am guessing are being called back from functions that I use. 我的问题是我从多个函数中得到了相同的错误,我猜这些错误是从我使用的函数中调用的。

To make matters worse, the actual code is within a custom private framework which is being imported in another project, and as such, debugging isn't as simple? 更糟糕的是,实际代码是在另一个项目中导入的自定义私有框架内,因此调试并不那么简单?

Can anyone point me to the right direction? 有人能指出我正确的方向吗? I have a feeling I'm calling certain methods wrongly or with bad context, but the output from xcode is not very helpful at this point. 我有一种感觉我错误地调用某些方法或者上下文不好,但xcode的输出在这一点上并没有多大帮助。

: CGContextSetFillColorWithColor: invalid context 0x0. :CGContextSetFillColorWithColor:无效的上下文0x0。 This is a serious error. 这是一个严重的错误。 This application, or a library it uses, is using an invalid context and is thereby contributing 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. 它将成为即将到来的更新中的致命错误。

: CGContextSetStrokeColorWithColor: invalid context 0x0. :CGContextSetStrokeColorWithColor:无效的上下文0x0。 This is a serious error. 这是一个严重的错误。 This application, or a library it uses, is using an invalid context and is thereby contributing 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. 它将成为即将到来的更新中的致命错误。

CGContextSaveGState: invalid context 0x0. CGContextSaveGState:无效的上下文0x0。 This is a serious error. 这是一个严重的错误。 This application, or a library it uses, is using an invalid context and is thereby contributing 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. 它将成为即将到来的更新中的致命错误。

: CGContextSetFlatness: invalid context 0x0. :CGContextSetFlatness:无效的上下文0x0。 This is a serious error. 这是一个严重的错误。 This application, or a library it uses, is using an invalid context and is thereby contributing 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. 它将成为即将到来的更新中的致命错误。

: CGContextAddPath: invalid context 0x0. :CGContextAddPath:无效的上下文0x0。 This is a serious error. 这是一个严重的错误。 This application, or a library it uses, is using an invalid context and is thereby contributing 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. 它将成为即将到来的更新中的致命错误。

: CGContextDrawPath: invalid context 0x0. :CGContextDrawPath:无效的上下文0x0。 This is a serious error. 这是一个严重的错误。 This application, or a library it uses, is using an invalid context and is thereby contributing 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. 它将成为即将到来的更新中的致命错误。

: CGContextRestoreGState: invalid context 0x0. :CGContextRestoreGState:无效的上下文0x0。 This is a serious error. 这是一个严重的错误。 This application, or a library it uses, is using an invalid context and is thereby contributing 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. 它将成为即将到来的更新中的致命错误。

: CGContextGetBlendMode: invalid context 0x0. :CGContextGetBlendMode:无效的上下文0x0。 This is a serious error. 这是一个严重的错误。 This application, or a library it uses, is using an invalid context and is thereby contributing 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. 它将成为即将到来的更新中的致命错误。

Those errors may occur when a custom view is presented, or one of its inherited classes. 当呈现自定义视图或其继承的类之一时,可能会发生这些错误。 At which point they spawn multiple times, until the keyboard won't provide any input. 此时它们会多次生成,直到键盘不提供任何输入。 Touch events are still registered, but system slows down, and eventually may lead to unallocated object errors. 触摸事件仍然已注册,但系统速度变慢,最终可能导致未分配的对象错误。

EDIT #1: I do have access to the framework being imported, but I do not see anything weird in the classes which causing the issue. 编辑#1:我确实可以访问正在导入的框架,但我没有看到导致问题的类中有任何奇怪的东西。

EDIT #2: I just received an email that iOS 7.1 has been released for developers. 编辑#2:我刚刚收到一封发送给iOS 7.1的电子邮件。 I'm curious to see if this goes away, or become worse, or can be solved. 我很想知道这是否会消失,或者变得更糟,还是可以解决。


解决方案:

参考一: https://stackoom.com/question/1KEfC
参考二: invalid context 0x0 under iOS 7.0 and system degradation
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章