Re: CGContextClipToRects: invalid context 0x0.
Re: CGContextClipToRects: invalid context 0x0.
- Subject: Re: CGContextClipToRects: invalid context 0x0.
- From: Graham Cox <email@hidden>
- Date: Tue, 22 Dec 2015 10:38:46 +1100
> On 16 Dec 2015, at 10:12 AM, Richard Charles <email@hidden> wrote:
>
> <Error>: CGContextClipToRects: 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.
This has to be the Chicken Little of error messages.
Surely the first thing any CG…() function that takes a context does is to assert that the context isn’t nil, and if not branch to CGPostError and do nothing else. Therefore it’s actually completely harmless. Of course it indicates an error further up, but the outcome is just a no-op. The alarmist tone of the message is to make you do something to investigate this, and to that end it works, but the problem seems to be that the only sources of these errors now are Apple’s own code.
—Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden