【发布时间】:2013-09-26 17:38:29
【问题描述】:
我有一个 UIWebView 子类,用于播放 youtube 和本地视频。在 iOS6 下完美运行。在升级到 iOS7 时,我遇到了一个我真的不知道从哪里开始的问题。虽然子类似乎仍然可以在 iOS7 模拟器上播放 youtube 和本地视频,但当我在设备上播放 youtube 时,我会记录以下消息:
Sep 26 10:17:27 JRR-IPad SVOx[558] <Error>: 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.
Sep 26 10:17:27 JRR-IPad SVOx[558] <Error>: CGContextSetBlendMode: 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.
Sep 26 10:17:27 JRR-IPad SVOx[558] <Error>: CGContextSetAlpha: 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.
Sep 26 10:17:27 JRR-IPad SVOx[558] <Error>: CGContextTranslateCTM: 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.
Sep 26 10:17:27 JRR-IPad SVOx[558] <Error>: CGContextScaleCTM: 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.
Sep 26 10:17:27 JRR-IPad SVOx[558] <Error>: CGContextGetCTM: 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.
Sep 26 10:17:27 JRR-IPad SVOx[558] <Error>: CGContextDrawImage: 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.
Sep 26 10:17:27 JRR-IPad SVOx[558] <Error>: CGContextGetCTM: 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.
===
这种情况只发生在设备上,不会发生在模拟器上,iOS6下也不会发生。我在这里看到一些帖子讨论了 beta 上各种类的类似问题,但我还没有看到关于 iOS7 发布版本的 cmets。
我没有在我的代码中使用任何这些方法,因此这些消息来自库。
有人吗? TIA。
【问题讨论】:
-
我也面临这个问题。你提交了错误吗?
-
我刚刚提交了错误报告 #15106115。
-
你找到解决办法了吗。如果你这样做了,请分享。谢谢
-
不,没有解决方案。虽然,我正在继续前进。除了消息(似乎是无害的)之外,我还有两个担忧:(1)内存消耗似乎相当高,因为即使加载很短的 youtube 也会导致内存使用量从大约 10MB 猛增到大约 40MB,以及(2)之后单击 youtube 上的播放按钮,然后您必须单击 webview TWICE 上的播放按钮。我在其他地方也看到过这个问题。还没有在这些问题上花费太多时间。
-
我提交了一份错误报告,并附上了一个示例 xCode 项目。 #15423020