• 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: CG related warnings when loading Nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CG related warnings when loading Nib


  • Subject: Re: CG related warnings when loading Nib
  • From: David Duncan <email@hidden>
  • Date: Thu, 19 Apr 2007 10:38:59 -0700

On Apr 19, 2007, at 4:11 AM, Diederik Hoogenboom wrote:

When launching my app I get the following warnings in the console:

CGContextSetFillColorSpace: invalid context
CGContextSetFillPattern: invalid context
CGContextSetStrokeColorSpace: invalid context
CGContextSetStrokePattern: invalid context

As you can imagine, these are due to either a NULL or bad context, likely an issue with the current NSGraphicsContext.


CGImageSourceCreateWithData data parameter is nil
CGImageSourceCreateWithData data parameter is nil

These are early bail warnings, so some image that you (or Appkit) is trying to load is failing.


They come really early in the loading process and my suspicion is they come from loading the main nib.

If you have any custom code during the early stages of your app launch, I would try commenting it out (-awakeFromNib, - applicationWillFinishedLaunching, -applicationDidFinishLaunching, etc). This sounds like it could also be a memory stomper type issue, or one where your trying to do something too early in your application's launching (i.e. before Appkit has setup a graphics context and other things you'll need).


But aside from the general things, I'm gonna have to call not enough information =/.
--
David Duncan
Apple DTS Quartz and Printing
email@hidden



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: CG related warnings when loading Nib
      • From: Diederik Hoogenboom <email@hidden>
References: 
 >CG related warnings when loading Nib (From: Diederik Hoogenboom <email@hidden>)

  • Prev by Date: Re: Bindings Issue
  • Next by Date: Re: Migration Path for NSArchiver data?
  • Previous by thread: CG related warnings when loading Nib
  • Next by thread: Re: CG related warnings when loading Nib
  • Index(es):
    • Date
    • Thread