Re: Triggering an NSTextStorage Bug
Re: Triggering an NSTextStorage Bug
- Subject: Re: Triggering an NSTextStorage Bug
- From: Seth Willits <email@hidden>
- Date: Wed, 20 Mar 2013 11:48:41 -0700
Long story short, it seems this may be caused by the retainCount value on the paragraph style object wrapping around because there are so many references to it. According to the header, it only allows for 2^19 retains (524,288), which you can see in NSParagraphStyle.h (unsigned int refCount:19;) My logging confirms that a wrap around is occurring, so I think that may be to blame.
So now I have to spend a few hours starting back in my production code, and par it down again to figure out where all of these zillion references are coming from, since in this example it's obvious but in my production code it's not.
Either way though, it seems in a huge document with a zillion little ranges it could easily and legitimately hit this retainCount limit. Seems kinda odd that it's limited to 19 bits.
--
Seth Willits
_______________________________________________
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