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

kCGErrorIllegalArgument: CGSUnionRegionWithRect


  • Subject: kCGErrorIllegalArgument: CGSUnionRegionWithRect
  • From: Jon Nall <email@hidden>
  • Date: Thu, 22 Oct 2009 12:42:04 -0700

Hi.
I'm getting the message below printed to the console from my application and hope someone knows what might be going on.


When this happens I have a view with an NSProgressIndicator which is updating. In my view's drawRect:, I modify the frame of the progress indicator and draw an NSBezierPath and an NSString.

There seems to be no actual adverse effect from this message. The progress bar keeps on doing its thing, but I worry there's something bad happening under the hood.

This happens fairly often, but isn't 100% reproducible.

Thanks for any help.

nall.

<Error>: kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region
<Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.


So I set the breakpoint and see the stack trace below. In gdb, I looked at the arguments to some of the functions.

The NSView in question is the NSThemeFrame for the NSWindow.

In frame 3:
self: NSRegion {{{61, 298}, {372, 21}}}
arg: NSRegion {{{61, 298}, {372, 21}}}

In frame 2:
arg1: 0x0
arg2: The address looks like an NSObject-type address, but trying to print it in gdb yields: EXC_BAD_ACCESS



#0 0x94bee5f2 in CGErrorBreakpoint ()
#1 0x94c831d8 in CGSGlobalErrorv ()
#2 0x94a64b61 in CGSUnionRegionWithRect ()
#3 0x912a2a70 in -[NSRegion addRegion:] ()
#4 0x912a28c1 in -[NSWindow _setNeedsDisplayInRegion:] ()
#5 0x911f3548 in -[NSWindow _absorbDeferredNeedsDisplayRegion] ()
#6 0x911f2113 in -[NSView _sendViewWillDrawInRect:clipRootView:suppressRecursion:] ()
#7 0x91154ee9 in -[NSView displayIfNeeded] ()
#8 0x9111e292 in -[NSWindow displayIfNeeded] ()
#9 0x9114f764 in _handleWindowNeedsDisplay ()
#10 0x9408eb02 in __CFRunLoopDoObservers ()
#11 0x9404b65d in __CFRunLoopRun ()
#12 0x9404ad34 in CFRunLoopRunSpecific ()
#13 0x9404ab61 in CFRunLoopRunInMode ()
#14 0x97984fec in RunCurrentEventLoopInMode ()
#15 0x97984da3 in ReceiveNextEventCommon ()
#16 0x97984c28 in BlockUntilNextEventMatchingListInMode ()
#17 0x91125c95 in _DPSNextEvent ()
#18 0x9112550a in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#19 0x910e769b in -[NSApplication run] ()
#20 0x910df735 in NSApplicationMain ()
_______________________________________________


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


  • Prev by Date: IKImageBrowserView Dragging outside
  • Next by Date: Viewing a UIImageJPEGRepresentation image on the desktop
  • Previous by thread: Re: IKImageBrowserView Dragging outside
  • Next by thread: Viewing a UIImageJPEGRepresentation image on the desktop
  • Index(es):
    • Date
    • Thread