• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Crash while resizing window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Crash while resizing window
      • From: Andreas Mayer <email@hidden>
References: 
 >Crash while resizing window (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: Crash while resizing window
  • Next by Date: Re: Crash while resizing window
  • Previous by thread: Re: Crash while resizing window
  • Next by thread: Re: Crash while resizing window
  • Index(es):
    • Date
    • Thread