• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CGContextClipToRects: invalid context 0x0.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >CGContextClipToRects: invalid context 0x0. (From: Richard Charles <email@hidden>)

  • Prev by Date: Re: CGContextClipToRects: invalid context 0x0.
  • Next by Date: Re: applicationSupportDirectory access for admin and standard users
  • Previous by thread: Re: CGContextClipToRects: invalid context 0x0.
  • Next by thread: Environment woes executing scripts from my OS X app
  • Index(es):
    • Date
    • Thread