Re: Crash while resizing window
Re: Crash while resizing window
- Subject: Re: Crash while resizing window
- From: Graham Cox <email@hidden>
- Date: Mon, 29 Sep 2014 10:22:53 +1000
On 25 Sep 2014, at 2:44 am, Andreas Mayer <email@hidden> wrote:
> So ... something to do with some affine transform? Yes, I'm using affine transforms to rotate the window contents, which is located in a CALayer.
A common cause of CG assertions on transforms is a 'Nan' or 'inf' value ending up in the transform (these may not be discovered until some funciton is called that uses the transform). This is pretty easy to cause, for example dividing by zero, by setting a scale of 0 in a transform. You really want to avoid this by sanitising parameters used to calculate transforms. Even having something apparently innocuous such as view frame rect of NSZeroRect can eventually cause a bad transform to be computed.
That would be the sort of thing I'd be looking for here.
--Graham
_______________________________________________
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