Re: Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region

2013-09-06 Thread Graham Cox
On 05/09/2013, at 1:52 PM, Jonathan Taylor jonathan.tay...@glasgow.ac.uk 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

Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region

2013-09-05 Thread Jonathan Taylor
Can anybody help me diagnose an error that I see intermittently? The errors are as follows: Thu Sep 5 10:11:11 Jonathan-Taylors-Mac-Pro.local Spim GUI[34152] Error: kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region Thu Sep 5 10:11:11 Jonathan-Taylors-Mac-Pro.local Spim GUI

Re: Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region

2013-09-05 Thread Graham Cox
On 05/09/2013, at 12:21 PM, Jonathan Taylor jonathan.tay...@glasgow.ac.uk 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

Re: Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region

2013-09-05 Thread Jonathan Taylor
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

Re: Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region

2013-09-05 Thread Graham Cox
On 05/09/2013, at 12:37 PM, Jonathan Taylor jonathan.tay...@glasgow.ac.uk wrote: Yes, I understand that. I am not aware of doing any drawing from secondary threads, although evidently it appears that somewhere in the program this is happening. My question is whether I can do anything to

Re: Debugging kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region

2013-09-05 Thread Jonathan Taylor
Do you have any secondary threads? I assume you do. Indeed! Any code that touches a view, no matter how indirectly, could be the culprit. Bear in mind that sending any message to any view (controls, etc) might invoke -setNeedsDisplay: which in turn could be the trigger for the problem.

Re: kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region

2009-10-26 Thread Matthew Lindfield Seager
It did in fact make it through; a good way to check is to look at Cocoabuilder (http://www.cocoabuilder.com) and the Apple mailing list archives (http://lists.apple.com).  In this case, I found your message here: http://lists.apple.com/archives/cocoa-dev/2009/Oct/msg01683.html In Jon's defence I

kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region

2009-10-25 Thread Jon Nall
. 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

Re: kCGErrorIllegalArgument: CGSUnionRegionWithRect : Invalid region

2009-10-25 Thread Kyle Sluder
On Sun, Oct 25, 2009 at 8:21 PM, Jon Nall jon.n...@gmail.com wrote: Hi. I just joined the mailing list and tried to post this last week, but never saw it show up. I'm trying again. It did in fact make it through; a good way to check is to look at Cocoabuilder (http://www.cocoabuilder.com) and

kCGErrorIllegalArgument: CGSUnionRegionWithRect

2009-10-23 Thread Jon Nall
: 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