• 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: Thu, 05 Sep 2013 12:34:20 +0200

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

> Searching for those terms finds suggestions that this may be associated with updating progress bars from a secondary thread. I still see the error even after removing the only progress bar from my program; I don't know whether the cause is something genuinely associated with progress bars, or whether it's just that it's easy to slip up and update them from a secondary thread, triggering this error.


You can't do any UI-related updates from a secondary thread, you must ask the main thread to do it.

It might not be progress bars but anything at all that's being drawn from a secondary thread. The error itself could indicate that an internal data structure was used or updated by another thread while in an inconsistent state.

--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


  • Follow-Ups:
    • Re: Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region
      • From: Jonathan Taylor <email@hidden>
References: 
 >Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region (From: Jonathan Taylor <email@hidden>)

  • Prev by Date: Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region
  • Next by Date: Re: Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region
  • Previous by thread: Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region
  • Next by thread: Re: Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region
  • Index(es):
    • Date
    • Thread