2013-10-04

At the end of this post you will see what an "invalid context 0x0" courtesy notice looks like in the debugger console (Xcode 5.0, targeting iOS 7). This notice is just that--a notice. An exception is not thrown and the app continues to function.

I know others have discussed a similar error when adding a UIPickerView to a UIActionSheet (Invalid context error on iOS 7 when adding a UIPickerView inside a UIActionSheet?). However, I'm not adding a picker view to an action sheet. I'm also not doing any custom drawing or using a graphics context directly.

There are many posts related to this notice on the Apple Developer Forums; however, the cause seems to vary between posts.

I can re-generate this notice in a demo app without a single line of code, all I have to do is the following:

create a single view Xcode 5.0 project

drag a UITextField from the objects library and drop it anywhere on the view controller's canvas

run the app

tap the text field and wait for the keyboard to appear

tap the text field a second time... for me, this generates the "invalid courtesy 0x0" notice every time

There was a post on the Apple Developer Forums that outlined nearly the exact same procedure. But there was one important difference. The Apple Developer Forum post described using a "custom keypad". I was able to generate the notice by the using the standard iOS keyboard (English).

Can anyone else confirm this issue, or do I have a borked installation of Xcode 5.0 on my hands?

Oct 3 21:13:44 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:44 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:44 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:44 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:44 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:44 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:44 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : CGContextFillRects: 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : CGContextFillRects: 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : CGContextFillRects: 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.
Oct 3 21:13:45 Andrews-MacBook-Pro.local context error demo[1915] : 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.

Show more