iOS 7.0 下的无效上下文 0x0 和系统降级 [英] invalid context 0x0 under iOS 7.0 and system degradation

查看:26
本文介绍了iOS 7.0 下的无效上下文 0x0 和系统降级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了尽可能多的关于这个可怕问题的搜索结果,不幸的是,每个搜索结果似乎都集中在一个特定的函数调用上.

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?

谁能指出我正确的方向?我有一种感觉,我错误地调用了某些方法或上下文不好,但此时 xcode 的输出并不是很有帮助.

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.

: CGContextSetFillColorWithColor: 无效的上下文 0x0.这是一个严重的错误.此应用程序或其使用的库正在使用无效的上下文,从而导致整体退化系统的稳定性和可靠性.本通知是礼貌:请解决这个问题.这将在即将到来的更新中成为致命错误.

: CGContextSetFillColorWithColor: invalid context 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: 无效的上下文 0x0.这个是一个严重的错误.此应用程序或其使用的库正在使用一个无效的上下文,从而有助于整体系统稳定性和可靠性下降.该通知是一个礼貌:请解决这个问题.这将成为一个致命的错误即将更新.

: CGContextSetStrokeColorWithColor: invalid context 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:无效的上下文 0x0.这是一个严重的错误.此应用程序或其使用的库正在使用无效的上下文从而导致系统的整体退化稳定性和可靠性.此通知是一种礼貌:请修复此问题问题.这将在即将到来的更新中成为致命错误.

CGContextSaveGState: invalid context 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: 无效的上下文 0x0.这是一个严重的错误.此应用程序或其使用的库正在使用无效的上下文,从而导致整体退化系统的稳定性和可靠性.本通知是礼貌:请解决这个问题.这将在即将到来的更新中成为致命错误.

: CGContextSetFlatness: invalid context 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: 无效的上下文 0x0.这是一个严重的错误.此应用程序或其使用的库正在使用无效的上下文,从而导致整体退化系统的稳定性和可靠性.本通知是礼貌:请解决这个问题.这将在即将到来的更新中成为致命错误.

: CGContextAddPath: invalid context 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: 无效的上下文 0x0.这是一个严重的错误.此应用程序或其使用的库正在使用无效的上下文,从而导致整体退化系统的稳定性和可靠性.本通知是礼貌:请解决这个问题.这将在即将到来的更新中成为致命错误.

: CGContextDrawPath: invalid context 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: 无效的上下文 0x0.这是一个严重错误.此应用程序或其使用的库正在使用无效的上下文,从而导致整体退化系统的稳定性和可靠性.本通知是礼貌:请解决这个问题.这将在即将到来的更新中成为致命错误.

: CGContextRestoreGState: invalid context 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: 无效的上下文 0x0.这是一个严重的错误.此应用程序或其使用的库正在使用无效的上下文,从而导致整体退化系统的稳定性和可靠性.本通知是礼貌:请解决这个问题.这将在即将到来的更新中成为致命错误.

: CGContextGetBlendMode: invalid context 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.

编辑 #1:我确实可以访问正在导入的框架,但我在导致问题的类中没有看到任何奇怪的东西.

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.

编辑 #2: 我刚刚收到一封电子邮件,称 iOS 7.1 已经发布给开发者.我很想知道这是否会消失,或者变得更糟,或者可以解决.

EDIT #2: I just received an email that iOS 7.1 has been released for developers. I'm curious to see if this goes away, or become worse, or can be solved.

推荐答案

其他人会要求您在访问核心图形上下文的地方发布代码,但我怀疑这就是问题所在.这些无效的上下文 0x0 错误消息在 iOS 7 中很常见并且很容易重现.实际上,我可以使用零代码的 storyboard 重现错误.我将 UITextField 拖到 IB 的画布上,运行应用程序,然后在文本字段内双击.

Others will ask you to post the code where you access a core graphics context, but I doubt that's the issue. These invalid context 0x0 error messages are common and easy to reproduce in iOS 7. In fact, I can reproduce the error using storyboard with zero code. I drag a UITextField onto the canvas in IB, run the app, and double tap inside the text field.

在许多情况下,我很难认真对待无效上下文 0x0 错误消息.我不知道您的情况是否值得更多关注(我同意 Rob Napier 的观点,即值得调查,尤其是在您明确使用图形上下文的情况下).

In many situations, it's hard for me to take the invalid context 0x0 error messages seriously. I don't know if your situation warrants greater concern (I agree with Rob Napier that it's worth investigating, especially if you are explicitly using a graphics context).

在我自己的项目中,我希望有一天这些错误中的许多能神奇地消失(但那一天并没有出现在 7.0.3 中).

In my own projects, I'm hoping that many of these errors magically disappear some day (but that day did not come with 7.0.3).

更新: 安装 Xcode 5.1 并针对 iOS 7.1 后,我无法再通过在空文本字段中双击来重现错误.

Update: After installing Xcode 5.1 and targeting iOS 7.1, I can no longer reproduce the error by double tapping inside an empty text field.

这篇关于iOS 7.0 下的无效上下文 0x0 和系统降级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆