views:

180

answers:

1

Coco gives error:

Thu Jun 10 19:13:56 myComputer.local myApp[####] <Error>: doClip: empty path.

But I don't have this function anywhere in my code (can't find by searching in frameworks / project)... Seems a lot of people complain about this because it goes into the console logs, but couldn't find any reason given as to what causes it on a progmatic level.

Any thoughts as to what the problem is?

+1  A: 

Poking around with class-dump and nm, I found that it's a function in CoreGraphics (Quartz 2D). It's not declared in the headers, so it's a private function.

Break on doClip in the debugger, then move down the stack and see whether any of your code is drawing at that time. If so, you're probably trying to clip to an empty path. If a third-party framework you're using is involved, you should file a bug with its authors.

If you're not calling it (and you shouldn't), and a third-party framework is not implicated, it's probably a bug in one of the Apple frameworks. You should report it to Apple.

Peter Hosey
Not breaking on doClip... am I typing it wrong? http://i259.photobucket.com/albums/hh299/PirateOrion/Screenshot2010-06-11at122913PM.png
BadPirate
You're doing it right, but look at the checkbox: The breakpoint isn't bound. Try linking against ApplicationServices; if that doesn't help, my guess would be that the function is `static` and so can't be named in a breakpoint.
Peter Hosey