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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章