SRGSSR / srgletterbox-apple

The official SRG SSR media playback experience
https://srgssr.github.io/marketing/letterbox/
MIT License
14 stars 7 forks source link

Constraint warnings #210

Closed defagos closed 4 years ago

defagos commented 4 years ago

I noticed the following warnings when opening the player in Play:

2020-03-05 17:31:03.445515+0100 Play RTS[417:9659752] [LayoutConstraints] Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. 
    Try this: 
        (1) look at each constraint and try to figure out which you don't expect; 
        (2) find the code that added the unwanted constraint or constraints and fix it. 
(
    "<NSLayoutConstraint:0x600001135680 UIView:0x7fd79e52e480.trailing == UIStackView:0x7fd79a154a70.trailing + 6>",
    "<NSLayoutConstraint:0x6000011366c0 UIStackView:0x7fd79a154a70.leading == UIView:0x7fd79e52e480.leading + 6>",
    "<NSLayoutConstraint:0x60000124bf20 SRGLetterboxSubdivisionCell:0x7fd79e52dcf0.leading == UIView:0x7fd79e52e480.leading>",
    "<NSLayoutConstraint:0x60000124eb20 SRGLetterboxSubdivisionCell:0x7fd79e52dcf0.trailing == UIView:0x7fd79e52e480.trailing>",
    "<NSLayoutConstraint:0x600001213d90 UIStackView:0x7fd79a154a70.leading == UILabel:0x7fd79a154db0.leading>",
    "<NSLayoutConstraint:0x6000012139d0 UIStackView:0x7fd79a154a70.trailing == UILabel:0x7fd79a154db0.trailing>",
    "<NSLayoutConstraint:0x600001211c70 SRGLetterboxSubdivisionCell:0x7fd79e52dcf0.width == 0>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x600001213d90 UIStackView:0x7fd79a154a70.leading == UILabel:0x7fd79a154db0.leading>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
2020-03-05 17:31:03.446715+0100 Play RTS[417:9659752] [LayoutConstraints] Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. 
    Try this: 
        (1) look at each constraint and try to figure out which you don't expect; 
        (2) find the code that added the unwanted constraint or constraints and fix it. 
(
    "<NSLayoutConstraint:0x600001135680 UIView:0x7fd79e52e480.trailing == UIStackView:0x7fd79a154a70.trailing + 6>",
    "<NSLayoutConstraint:0x6000011366c0 UIStackView:0x7fd79a154a70.leading == UIView:0x7fd79e52e480.leading + 6>",
    "<NSLayoutConstraint:0x60000124bf20 SRGLetterboxSubdivisionCell:0x7fd79e52dcf0.leading == UIView:0x7fd79e52e480.leading>",
    "<NSLayoutConstraint:0x60000124eb20 SRGLetterboxSubdivisionCell:0x7fd79e52dcf0.trailing == UIView:0x7fd79e52e480.trailing>",
    "<NSLayoutConstraint:0x600001211c70 SRGLetterboxSubdivisionCell:0x7fd79e52dcf0.width == 0>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x600001135680 UIView:0x7fd79e52e480.trailing == UIStackView:0x7fd79a154a70.trailing + 6>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
2020-03-05 17:31:03.447612+0100 Play RTS[417:9659752] [LayoutConstraints] Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. 
    Try this: 
        (1) look at each constraint and try to figure out which you don't expect; 
        (2) find the code that added the unwanted constraint or constraints and fix it. 
(
    "<NSLayoutConstraint:0x60000124e850 UIImageView:0x7fd79e52e5f0.width == UIImageView:0x7fd79e52e5f0.height * 1.77778>",
    "<NSLayoutConstraint:0x600001136bc0 UIImageView:0x7fd79e52e5f0.leading == UIView:0x7fd79e52e480.leading>",
    "<NSLayoutConstraint:0x600001136b70 UIView:0x7fd79e52e480.trailing == UIImageView:0x7fd79e52e5f0.trailing>",
    "<NSLayoutConstraint:0x600001136b20 UIImageView:0x7fd79e52e5f0.top == UIView:0x7fd79e52e480.top>",
    "<NSLayoutConstraint:0x600001135860 UIProgressView:0x7fd79a153440.bottom == UIImageView:0x7fd79e52e5f0.bottom>",
    "<NSLayoutConstraint:0x600001136530 UIView:0x7fd79e52e480.bottom == UIStackView:0x7fd79a154a70.bottom + 5>",
    "<NSLayoutConstraint:0x600001136670 UIStackView:0x7fd79a154a70.top == UIProgressView:0x7fd79a153440.bottom + 4>",
    "<NSLayoutConstraint:0x60000124bf20 SRGLetterboxSubdivisionCell:0x7fd79e52dcf0.leading == UIView:0x7fd79e52e480.leading>",
    "<NSLayoutConstraint:0x60000124eb20 SRGLetterboxSubdivisionCell:0x7fd79e52dcf0.trailing == UIView:0x7fd79e52e480.trailing>",
    "<NSLayoutConstraint:0x600001251400 SRGLetterboxSubdivisionCell:0x7fd79e52dcf0.top == UIView:0x7fd79e52e480.top>",
    "<NSLayoutConstraint:0x6000012500a0 SRGLetterboxSubdivisionCell:0x7fd79e52dcf0.bottom == UIView:0x7fd79e52e480.bottom>",
    "<NSLayoutConstraint:0x600001213e80 UIStackView:0x7fd79a154a70.top == UILabel:0x7fd79a154db0.top>",
    "<NSLayoutConstraint:0x600001210190 UIStackView:0x7fd79a154a70.bottom == UIView:0x7fd79a153920.bottom>",
    "<NSLayoutConstraint:0x6000012121c0 UIView:0x7fd79a153920.top == UILabel:0x7fd79a154db0.bottom>",
    "<NSLayoutConstraint:0x600001212080 SRGLetterboxSubdivisionCell:0x7fd79e52dcf0.height == 0>",
    "<NSLayoutConstraint:0x600001211c70 SRGLetterboxSubdivisionCell:0x7fd79e52dcf0.width == 0>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x6000012121c0 UIView:0x7fd79a153920.top == UILabel:0x7fd79a154db0.bottom>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
2020-03-05 17:31:03.448574+0100 Play RTS[417:9659752] [LayoutConstraints] Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. 
    Try this: 
        (1) look at each constraint and try to figure out which you don't expect; 
        (2) find the code that added the unwanted constraint or constraints and fix it. 
(
    "<NSLayoutConstraint:0x60000124e850 UIImageView:0x7fd79e52e5f0.width == UIImageView:0x7fd79e52e5f0.height * 1.77778>",
    "<NSLayoutConstraint:0x600001136bc0 UIImageView:0x7fd79e52e5f0.leading == UIView:0x7fd79e52e480.leading>",
    "<NSLayoutConstraint:0x600001136b70 UIView:0x7fd79e52e480.trailing == UIImageView:0x7fd79e52e5f0.trailing>",
    "<NSLayoutConstraint:0x600001136b20 UIImageView:0x7fd79e52e5f0.top == UIView:0x7fd79e52e480.top>",
    "<NSLayoutConstraint:0x600001135860 UIProgressView:0x7fd79a153440.bottom == UIImageView:0x7fd79e52e5f0.bottom>",
    "<NSLayoutConstraint:0x600001136530 UIView:0x7fd79e52e480.bottom == UIStackView:0x7fd79a154a70.bottom + 5>",
    "<NSLayoutConstraint:0x600001136670 UIStackView:0x7fd79a154a70.top == UIProgressView:0x7fd79a153440.bottom + 4>",
    "<NSLayoutConstraint:0x60000124bf20 SRGLetterboxSubdivisionCell:0x7fd79e52dcf0.leading == UIView:0x7fd79e52e480.leading>",
    "<NSLayoutConstraint:0x60000124eb20 SRGLetterboxSubdivisionCell:0x7fd79e52dcf0.trailing == UIView:0x7fd79e52e480.trailing>",
    "<NSLayoutConstraint:0x600001251400 SRGLetterboxSubdivisionCell:0x7fd79e52dcf0.top == UIView:0x7fd79e52e480.top>",
    "<NSLayoutConstraint:0x6000012500a0 SRGLetterboxSubdivisionCell:0x7fd79e52dcf0.bottom == UIView:0x7fd79e52e480.bottom>",
    "<NSLayoutConstraint:0x600001212080 SRGLetterboxSubdivisionCell:0x7fd79e52dcf0.height == 0>",
    "<NSLayoutConstraint:0x600001211c70 SRGLetterboxSubdivisionCell:0x7fd79e52dcf0.width == 0>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x60000124e850 UIImageView:0x7fd79e52e5f0.width == UIImageView:0x7fd79e52e5f0.height * 1.77778>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
2020-03-05 17:31:03.449667+0100 Play RTS[417:9659752] [LayoutConstraints] Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. 
    Try this: 
        (1) look at each constraint and try to figure out which you don't expect; 
        (2) find the code that added the unwanted constraint or constraints and fix it. 
(
    "<NSLayoutConstraint:0x600001136b20 UIImageView:0x7fd79e52e5f0.top == UIView:0x7fd79e52e480.top>",
    "<NSLayoutConstraint:0x600001135860 UIProgressView:0x7fd79a153440.bottom == UIImageView:0x7fd79e52e5f0.bottom>",
    "<NSLayoutConstraint:0x600001136530 UIView:0x7fd79e52e480.bottom == UIStackView:0x7fd79a154a70.bottom + 5>",
    "<NSLayoutConstraint:0x600001136670 UIStackView:0x7fd79a154a70.top == UIProgressView:0x7fd79a153440.bottom + 4>",
    "<NSLayoutConstraint:0x600001251400 SRGLetterboxSubdivisionCell:0x7fd79e52dcf0.top == UIView:0x7fd79e52e480.top>",
    "<NSLayoutConstraint:0x6000012500a0 SRGLetterboxSubdivisionCell:0x7fd79e52dcf0.bottom == UIView:0x7fd79e52e480.bottom>",
    "<NSLayoutConstraint:0x600001212080 SRGLetterboxSubdivisionCell:0x7fd79e52dcf0.height == 0>"
)

Nothing seems broken from a result perspective, but we should investigate.

defagos commented 4 years ago

Fixed on the feature/timeline-improvements branch.