When my app starts up, I’ve started getting a message in the log:
*** -[NSMutableArray initWithCapacity:]: Request for large capacity 9223372036854775808
I tried setting up a symbolic breakpoint for -[NSMutableArray initWithCapacity:], but it doesn’t trigger. How else can I figure out which call is causing this?
I’m in Xcode 4 on Lion, both updated fully.
Update
I tried also setting a symbolic breakpoint on -[NSArray initWithCapacity:], which doesn’t trigger.
I happened to stumble on the line of code causing this, which was (inadvertantly) setting a frame size with width of infinity. I’m keeping this post open though, because I would have liked a better way to find the line of code that caused this. I can still test suggestions, since I know how to reproduce the message.
Try putting a breakpoint on
CFLog()and see if you can come up with a useful backtrace (that message is spewed by a call toCFLog()). As long as there isn’t much other logging going on, that should work.