• 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: NSLayoutConstraint crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSLayoutConstraint crash


  • Subject: Re: NSLayoutConstraint crash
  • From: David Catmull <email@hidden>
  • Date: Fri, 16 Mar 2018 10:40:30 -0600

I might try it, but it's difficult to do accurately because the views are
assembled programmatically - it's dynamically generated based on the data
read in.

On Fri, Mar 16, 2018 at 10:37 AM, Richard Charles <email@hidden>
wrote:

>
> > On Mar 16, 2018, at 9:03 AM, David Catmull <email@hidden>
> wrote:
> >
> > After I set up a somewhat complex view hierarchy, I'm getting a crash
> with
> > this exception:
> >
> > 2018-03-16 08:59:21.814873-0600 App[31201:13046721] *** Assertion
> failure
> > in -[NSLayoutConstraint setPriority:],
> > /BuildRoot/Library/Caches/com.apple.xbs/Sources/Foundation/
> Foundation-1451/Foundation/Layout.subproj/NSLayoutConstraint.m:222
> >
> > It happens on the main event loop where none of my code is involved; I
> > never set constraint priorities myself. What could be causing this error?
>
> Have you tried manually exercising the constraints? In Interface Builder
> drag the views into random positions and sizes then click "Update Frames”
> to force the constraint system to apply the constraints. This may uncover
> any errors you have in the constraints containted in the view hierarchy.
>
> --Richard Charles
>
>
_______________________________________________

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: NSLayoutConstraint crash
      • From: Jack Brindle <email@hidden>
References: 
 >NSLayoutConstraint crash (From: David Catmull <email@hidden>)
 >Re: NSLayoutConstraint crash (From: Richard Charles <email@hidden>)

  • Prev by Date: Re: NSLayoutConstraint crash
  • Next by Date: Re: NSLayoutConstraint crash
  • Previous by thread: Re: NSLayoutConstraint crash
  • Next by thread: Re: NSLayoutConstraint crash
  • Index(es):
    • Date
    • Thread