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