Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Lots of Constraint Warnings #1826

Closed
jhreis opened this issue Oct 30, 2019 · 3 comments
Closed

Lots of Constraint Warnings #1826

jhreis opened this issue Oct 30, 2019 · 3 comments
Labels
bug Epic: Cleanup Epic for cleaning up internals of the project, primary refactoring or removing dead code. QA Pass - iPad QA Pass - iPhone X QA Pass - iPhone QA/Yes release-notes/exclude
Milestone

Comments

@jhreis
Copy link
Contributor

jhreis commented Oct 30, 2019

Description:

Currently there are a lot of warning logs revolving around constraint breakage / issues.

e.g.

"<NSAutoresizingMaskLayoutConstraint:0x6000007bd9a0 h=--& v=--& UIView:0x7f929100f170.midY == 0   (active)>",
"<NSAutoresizingMaskLayoutConstraint:0x6000007bd9f0 h=--& v=--& UIView:0x7f929100f170.height == 0   (active)>",
"<SnapKit.LayoutConstraint:[email protected]#587 UIStackView:0x7f92910109b0.top == UILayoutGuide:0x600001d72300.top>",
"<SnapKit.LayoutConstraint:[email protected]#861 UIView:0x7f9291000110.top == UIStackView:0x7f92910109b0.bottom>",
"<SnapKit.LayoutConstraint:[email protected]#864 UIView:0x7f9291000110.bottom == UIView:0x7f929100f170.top>",
"<NSLayoutConstraint:0x600000737890 'UIViewSafeAreaLayoutGuide-top' V:|-(44)-[UILayoutGuide:0x600001d72300'UIViewSafeAreaLayoutGuide']   (active, names: '|':UIView:0x7f9291009ac0 )>"

This ticket should remain open and referenced in PRs that fix specific issues. This can be closed once all known launch constraints issues are solved.
(e.g. Ref #1826: Fixed constraint caused by bottom toolbar.)

Steps to Reproduce

  1. Launch Brave via Xcode
  2. Observe logs

Test Plan

Since this is an ongoing ticket to a degree (although hopefully short-lived), I added QA/yes, not because there are super specific test to be done, but to make aware of potential layout regressions.

Given a quick glance at the logs most of the changes will revolve around the primary UI:

  • Bottom toolbar
  • Top toolbar
  • Favorites
  • Shields Panel
  • Showing up keyboard on website's text fields

It would be good to run tests on a couple extra devices and test specifically to see if any of these break. Here is an example of a test run:

iPad:

  • open Brave, verify all main menus are shown / not shown (iPad should not have bottom toolbar, but top toolbar, stats, favorites, should all be visible)
  • rotate device to landscape, re-check
  • rotate device to portrait, re-check
  • close app, re-open
  • quit app, re-open
  • test app in side-by-side mode

etc...

Again, no super specific things. Each PR should relate to specific UI areas, which will be given for QA to verify against (e.g. "I adjusted the constraints on the bottom toolbar, so please pay attention to see if this causes any issues).

Actual result:

UI looks correct, but lots of breaking taking place. These should be isolated and dealt with as this can lead to unpredictable behaviors.

Expected result:

No warnings.

Reproduces how often: [Easily reproduced, Intermittent Issue]

100%

Brave Version:

1.12.1+

Device details:

Website problems only:

  • did you check with Brave Shields down?
  • did you check in Safari/Firefox (WkWebView-based browsers)?

Additional Information

@jhreis jhreis added bug QA/Yes release-notes/exclude Epic: Cleanup Epic for cleaning up internals of the project, primary refactoring or removing dead code. labels Oct 30, 2019
@iccub
Copy link
Contributor

iccub commented Oct 30, 2019

Dupe of #1803 :D

I have a PR open that fixes most things here #1736

I'll close my ticket as this one has better description and test plan

@anthonypkeane anthonypkeane added this to the 1.14 milestone Nov 6, 2019
@kylehickinson
Copy link
Collaborator

Fixed in #1736

@srirambv
Copy link
Contributor

  • Verification passed on iPhone XR with iOS 13.4 running 1.15(20.02.20.19)
  • Verification passed on iPhone 7+ with iOS 13.3.1 running 1.15(20.02.20.19)
  • Verification passed on iPhone 6 with iOS 12.4.5 running 1.15(20.02.20.19)
  • Verification passed on iPad Pro with iOS 13.3.1 running 1.15(20.02.20.19)
  • Verification passed on iPad Pro with iOS 12.4.4 running 1.15(20.02.20.19)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Epic: Cleanup Epic for cleaning up internals of the project, primary refactoring or removing dead code. QA Pass - iPad QA Pass - iPhone X QA Pass - iPhone QA/Yes release-notes/exclude
Projects
None yet
Development

No branches or pull requests

5 participants