• 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: Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region


  • Subject: Re: Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region
  • From: Graham Cox <email@hidden>
  • Date: Fri, 06 Sep 2013 09:22:43 +0200

On 05/09/2013, at 1:52 PM, Jonathan Taylor <email@hidden> wrote:

> That suggestion for a breakpoint is a great one. Sadly the condition you quoted doesn't seem to be parsed correctly by the debugger, even with casting. Even just "po (NSThread*)[NSThread currentThread]" fails on my machine.

Hmm, works OK for me.

> Fortunately, though, there were only a couple of dozen hits on the breakpoint per iteration of the code, and sure enough it immediately pinpointed a case where I was erroneously calling willChangeValueForKey from a secondary thread, which was causing a GUI update as a side-effect.


Glad you found the problem ;-)

--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: 
 >Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region (From: Jonathan Taylor <email@hidden>)
 >Re: Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region (From: Graham Cox <email@hidden>)
 >Re: Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region (From: Jonathan Taylor <email@hidden>)
 >Re: Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region (From: Graham Cox <email@hidden>)
 >Re: Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region (From: Jonathan Taylor <email@hidden>)

  • Prev by Date: Re: NSSavePanel problem with sandboxing
  • Next by Date: Re: NSSavePanel problem with sandboxing
  • Previous by thread: Re: Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region
  • Next by thread: UITextField access from outside the main thread
  • Index(es):
    • Date
    • Thread