Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using WebviewScaffold throws debug error #193

Open
alsocalledchris opened this issue Sep 22, 2018 · 3 comments
Open

Using WebviewScaffold throws debug error #193

alsocalledchris opened this issue Sep 22, 2018 · 3 comments

Comments

@alsocalledchris
Copy link

Using an iPhone X emulator, with WebviewScaffold when it tries to show the keyboard when clicking on a form shown in the webpage. Error does not cause a functional issue but would be good for it not to happen.

Reproduce:

  • Using iPhone X emulator
  • Use WebviewScafold in a Container widget on a route (similar to example)
  • Show a webpage with a form field
  • Click form field, bottom webview controls are shown on screen slightly off the screen (next field arrow navigation and Done button), flutter debug window has error

Error thrown:

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.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)

....

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x604000290360 H:[_UIModernBarButton:0x7faa86552ce0]-(>=5)-| (active, names: '|':_UIButtonBarButton:0x7faa86552670 )>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
flutter: Another exception was thrown: A RenderFlex overflowed by 37 pixels on the bottom.

@slightfoot
Copy link
Member

Should be fixed as of v0.3.0+2. Please retest.

@alexelisenko
Copy link

alexelisenko commented Feb 8, 2019

I'm having the same issue on v0.3.0+2, although I'm not using the WebviewScaffold, but just WebView in a SizedBox. The parent view has a BottomNavigationBar, and the errors in my log as well as OP mentions _UIButtonBarButton, I'm assuming these are related.

13:39:31.517 2 info flutter.tools 	Try this: 
13:39:31.517 3 info flutter.tools 		(1) look at each constraint and try to figure out which you don't expect; 
13:39:31.517 4 info flutter.tools 		(2) find the code that added the unwanted constraint or constraints and fix it. 
13:39:31.517 5 info flutter.tools 	(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
13:39:31.517 6 info flutter.tools (
13:39:31.517 7 info flutter.tools     "<NSAutoresizingMaskLayoutConstraint:0x6000029be260 h=-&- v=-&- _UIToolbarContentView:0x7fd0c011bdc0.width == UIToolbar:0x7fd0c011bb80.width   (active)>",
13:39:31.517 8 info flutter.tools     "<NSLayoutConstraint:0x6000029a88c0 H:|-(0)-[_UIButtonBarStackView:0x7fd0c011c2f0]   (active, names: '|':_UIToolbarContentView:0x7fd0c011bdc0 )>",
13:39:31.517 9 info flutter.tools     "<NSLayoutConstraint:0x6000029a9130 _UIButtonBarStackView:0x7fd0c011c2f0.trailing == _UIToolbarContentView:0x7fd0c011bdc0.trailing   (active)>",
13:39:31.517 10 info flutter.tools     "<NSLayoutConstraint:0x600002993ac0 H:|-(20)-[_UIModernBarButton:0x7fd0bcc08aa0]   (active, names: '|':_UIButtonBarButton:0x7fd0bcc2a6d0 )>",
13:39:31.517 11 info flutter.tools     "<NSLayoutConstraint:0x600002993ca0 H:[_UIModernBarButton:0x7fd0bcc08aa0]-(>=8)-|   (active, names: '|':_UIButtonBarButton:0x7fd0bcc2a6d0 )>",
13:39:31.517 12 info flutter.tools     "<NSLayoutConstraint:0x600002992030 H:|-(>=5)-[_UIModernBarButton:0x7fd0bcc00b20]   (active, names: '|':_UIButtonBarButton:0x7fd0bcc30890 )>",
13:39:31.517 13 info flutter.tools     "<NSLayoutConstraint:0x6000029916d0 H:[_UIModernBarButton:0x7fd0bcc00b20]-(>=5)-|   (active, names: '|':_UIButtonBarButton:0x7fd0bcc30890 )>",
13:39:31.517 14 info flutter.tools     "<NSLayoutConstraint:0x6000029944b0 H:|-(8)-[_UIModernBarButton:0x7fd0bcc0e4f0'Done']   (active, names: '|':_UIButtonBarButton:0x7fd0bcc2c3c0 )>",
13:39:31.517 15 info flutter.tools     "<NSLayoutConstraint:0x600002997930 H:[_UIModernBarButton:0x7fd0bcc0e4f0'Done']-(20)-|   (active, names: '|':_UIButtonBarButton:0x7fd0bcc2c3c0 )>",
13:39:31.517 16 info flutter.tools     "<NSLayoutConstraint:0x600002997480 'UISV-canvas-connection' UILayoutGuide:0x6000033c5dc0'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x7fd0bcc2a6d0.leading   (active)>",
13:39:31.517 17 info flutter.tools     "<NSLayoutConstraint:0x6000029962b0 'UISV-canvas-connection' UILayoutGuide:0x6000033c5dc0'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x7fd0bcc2c3c0.trailing   (active)>",
13:39:31.517 18 info flutter.tools     "<NSLayoutConstraint:0x600002996210 'UISV-spacing' H:[_UIButtonBarButton:0x7fd0bcc2a6d0]-(0)-[UIView:0x7fd0bcc15f20]   (active)>",
13:39:31.517 19 info flutter.tools     "<NSLayoutConstraint:0x600002997660 'UISV-spacing' H:[UIView:0x7fd0bcc15f20]-(0)-[_UIButtonBarButton:0x7fd0bcc30890]   (active)>",
13:39:31.517 20 info flutter.tools     "<NSLayoutConstraint:0x600002994b90 'UISV-spacing' H:[_UIButtonBarButton:0x7fd0bcc30890]-(0)-[UIView:0x7fd0bcc16c30]   (active)>",
13:39:31.517 21 info flutter.tools     "<NSLayoutConstraint:0x6000029960d0 'UISV-spacing' H:[UIView:0x7fd0bcc16c30]-(0)-[_UIButtonBarButton:0x7fd0bcc2c3c0]   (active)>",
13:39:31.517 22 info flutter.tools     "<NSLayoutConstraint:0x600002998cd0 'UIView-Encapsulated-Layout-Width' UIToolbar:0x7fd0c011bb80.width == 0   (active)>",
13:39:31.517 23 info flutter.tools     "<NSLayoutConstraint:0x6000029a90e0 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x6000033c5dc0'UIViewLayoutMarginsGuide'](LTR)   (active, names: '|':_UIButtonBarStackView:0x7fd0c011c2f0 )>",
13:39:31.517 24 info flutter.tools     "<NSLayoutConstraint:0x6000029aa3a0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x6000033c5dc0'UIViewLayoutMarginsGuide']-(0)-|(LTR)   (active, names: '|':_UIButtonBarStackView:0x7fd0c011c2f0 )>"
13:39:31.518 25 info flutter.tools )
13:39:31.518 26 info flutter.tools 
13:39:31.518 27 info flutter.tools Will attempt to recover by breaking constraint 
13:39:31.518 28 info flutter.tools <NSLayoutConstraint:0x600002993ca0 H:[_UIModernBarButton:0x7fd0bcc08aa0]-(>=8)-|   (active, names: '|':_UIButtonBarButton:0x7fd0bcc2a6d0 )>
13:39:31.518 29 info flutter.tools 
13:39:31.518 30 info flutter.tools Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
13:39:31.518 31 info flutter.tools The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
13:39:31.519 32 info flutter.tools 	Probably at least one of the constraints in the following list is one you don't want. 
13:39:31.519 33 info flutter.tools 	Try this: 
13:39:31.519 34 info flutter.tools 		(1) look at each constraint and try to figure out which you don't expect; 
13:39:31.519 35 info flutter.tools 		(2) find the code that added the unwanted constraint or constraints and fix it. 
13:39:31.519 36 info flutter.tools 	(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
13:39:31.519 37 info flutter.tools (
13:39:31.519 38 info flutter.tools     "<NSAutoresizingMaskLayoutConstraint:0x6000029be260 h=-&- v=-&- _UIToolbarContentView:0x7fd0c011bdc0.width == UIToolbar:0x7fd0c011bb80.width   (active)>",
13:39:31.519 39 info flutter.tools     "<NSLayoutConstraint:0x6000029a88c0 H:|-(0)-[_UIButtonBarStackView:0x7fd0c011c2f0]   (active, names: '|':_UIToolbarContentView:0x7fd0c011bdc0 )>",
13:39:31.519 40 info flutter.tools     "<NSLayoutConstraint:0x6000029a9130 _UIButtonBarStackView:0x7fd0c011c2f0.trailing == _UIToolbarContentView:0x7fd0c011bdc0.trailing   (active)>",
13:39:31.519 41 info flutter.tools     "<NSLayoutConstraint:0x600002992030 H:|-(>=5)-[_UIModernBarButton:0x7fd0bcc00b20]   (active, names: '|':_UIButtonBarButton:0x7fd0bcc30890 )>",
13:39:31.519 42 info flutter.tools     "<NSLayoutConstraint:0x6000029916d0 H:[_UIModernBarButton:0x7fd0bcc00b20]-(>=5)-|   (active, names: '|':_UIButtonBarButton:0x7fd0bcc30890 )>",
13:39:31.519 43 info flutter.tools     "<NSLayoutConstraint:0x6000029944b0 H:|-(8)-[_UIModernBarButton:0x7fd0bcc0e4f0'Done']   (active, names: '|':_UIButtonBarButton:0x7fd0bcc2c3c0 )>",
13:39:31.519 44 info flutter.tools     "<NSLayoutConstraint:0x600002997930 H:[_UIModernBarButton:0x7fd0bcc0e4f0'Done']-(20)-|   (active, names: '|':_UIButtonBarButton:0x7fd0bcc2c3c0 )>",
13:39:31.519 45 info flutter.tools     "<NSLayoutConstraint:0x600002997480 'UISV-canvas-connection' UILayoutGuide:0x6000033c5dc0'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x7fd0bcc2a6d0.leading   (active)>",
13:39:31.519 46 info flutter.tools     "<NSLayoutConstraint:0x6000029962b0 'UISV-canvas-connection' UILayoutGuide:0x6000033c5dc0'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x7fd0bcc2c3c0.trailing   (active)>",
13:39:31.519 47 info flutter.tools     "<NSLayoutConstraint:0x600002996210 'UISV-spacing' H:[_UIButtonBarButton:0x7fd0bcc2a6d0]-(0)-[UIView:0x7fd0bcc15f20]   (active)>",
13:39:31.519 48 info flutter.tools     "<NSLayoutConstraint:0x600002997660 'UISV-spacing' H:[UIView:0x7fd0bcc15f20]-(0)-[_UIButtonBarButton:0x7fd0bcc30890]   (active)>",
13:39:31.520 49 info flutter.tools     "<NSLayoutConstraint:0x600002994b90 'UISV-spacing' H:[_UIButtonBarButton:0x7fd0bcc30890]-(0)-[UIView:0x7fd0bcc16c30]   (active)>",
13:39:31.520 50 info flutter.tools     "<NSLayoutConstraint:0x6000029960d0 'UISV-spacing' H:[UIView:0x7fd0bcc16c30]-(0)-[_UIButtonBarButton:0x7fd0bcc2c3c0]   (active)>",
13:39:31.520 51 info flutter.tools     "<NSLayoutConstraint:0x600002998cd0 'UIView-Encapsulated-Layout-Width' UIToolbar:0x7fd0c011bb80.width == 0   (active)>",
13:39:31.520 52 info flutter.tools     "<NSLayoutConstraint:0x6000029a90e0 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x6000033c5dc0'UIViewLayoutMarginsGuide'](LTR)   (active, names: '|':_UIButtonBarStackView:0x7fd0c011c2f0 )>",
13:39:31.520 53 info flutter.tools     "<NSLayoutConstraint:0x6000029aa3a0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x6000033c5dc0'UIViewLayoutMarginsGuide']-(0)-|(LTR)   (active, names: '|':_UIButtonBarStackView:0x7fd0c011c2f0 )>"
13:39:31.520 54 info flutter.tools )
13:39:31.520 55 info flutter.tools 
13:39:31.520 56 info flutter.tools Will attempt to recover by breaking constraint 
13:39:31.520 57 info flutter.tools <NSLayoutConstraint:0x6000029916d0 H:[_UIModernBarButton:0x7fd0bcc00b20]-(>=5)-|   (active, names: '|':_UIButtonBarButton:0x7fd0bcc30890 )>
13:39:31.520 58 info flutter.tools 
13:39:31.520 59 info flutter.tools Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
13:39:31.520 60 info flutter.tools The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
13:39:31.520 61 info flutter.tools 	Probably at least one of the constraints in the following list is one you don't want. 
13:39:31.520 62 info flutter.tools 	Try this: 
13:39:31.520 63 info flutter.tools 		(1) look at each constraint and try to figure out which you don't expect; 
13:39:31.520 64 info flutter.tools 		(2) find the code that added the unwanted constraint or constraints and fix it. 
13:39:31.520 65 info flutter.tools 	(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
13:39:31.520 66 info flutter.tools (
13:39:31.521 67 info flutter.tools     "<NSAutoresizingMaskLayoutConstraint:0x6000029be260 h=-&- v=-&- _UIToolbarContentView:0x7fd0c011bdc0.width == UIToolbar:0x7fd0c011bb80.width   (active)>",
13:39:31.521 68 info flutter.tools     "<NSLayoutConstraint:0x6000029a88c0 H:|-(0)-[_UIButtonBarStackView:0x7fd0c011c2f0]   (active, names: '|':_UIToolbarContentView:0x7fd0c011bdc0 )>",
13:39:31.522 69 info flutter.tools     "<NSLayoutConstraint:0x6000029a9130 _UIButtonBarStackView:0x7fd0c011c2f0.trailing == _UIToolbarContentView:0x7fd0c011bdc0.trailing   (active)>",
13:39:31.522 70 info flutter.tools     "<NSLayoutConstraint:0x6000029944b0 H:|-(8)-[_UIModernBarButton:0x7fd0bcc0e4f0'Done']   (active, names: '|':_UIButtonBarButton:0x7fd0bcc2c3c0 )>",
13:39:31.522 71 info flutter.tools     "<NSLayoutConstraint:0x600002997930 H:[_UIModernBarButton:0x7fd0bcc0e4f0'Done']-(20)-|   (active, names: '|':_UIButtonBarButton:0x7fd0bcc2c3c0 )>",
13:39:31.522 72 info flutter.tools     "<NSLayoutConstraint:0x600002997480 'UISV-canvas-connection' UILayoutGuide:0x6000033c5dc0'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x7fd0bcc2a6d0.leading   (active)>",
13:39:31.522 73 info flutter.tools     "<NSLayoutConstraint:0x6000029962b0 'UISV-canvas-connection' UILayoutGuide:0x6000033c5dc0'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x7fd0bcc2c3c0.trailing   (active)>",
13:39:31.522 74 info flutter.tools     "<NSLayoutConstraint:0x600002996210 'UISV-spacing' H:[_UIButtonBarButton:0x7fd0bcc2a6d0]-(0)-[UIView:0x7fd0bcc15f20]   (active)>",
13:39:31.522 75 info flutter.tools     "<NSLayoutConstraint:0x600002997660 'UISV-spacing' H:[UIView:0x7fd0bcc15f20]-(0)-[_UIButtonBarButton:0x7fd0bcc30890]   (active)>",
13:39:31.522 76 info flutter.tools     "<NSLayoutConstraint:0x600002994b90 'UISV-spacing' H:[_UIButtonBarButton:0x7fd0bcc30890]-(0)-[UIView:0x7fd0bcc16c30]   (active)>",
13:39:31.522 77 info flutter.tools     "<NSLayoutConstraint:0x6000029960d0 'UISV-spacing' H:[UIView:0x7fd0bcc16c30]-(0)-[_UIButtonBarButton:0x7fd0bcc2c3c0]   (active)>",
13:39:31.522 78 info flutter.tools     "<NSLayoutConstraint:0x600002998cd0 'UIView-Encapsulated-Layout-Width' UIToolbar:0x7fd0c011bb80.width == 0   (active)>",
13:39:31.522 79 info flutter.tools     "<NSLayoutConstraint:0x6000029a90e0 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x6000033c5dc0'UIViewLayoutMarginsGuide'](LTR)   (active, names: '|':_UIButtonBarStackView:0x7fd0c011c2f0 )>",
13:39:31.522 80 info flutter.tools     "<NSLayoutConstraint:0x6000029aa3a0 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x6000033c5dc0'UIViewLayoutMarginsGuide']-(0)-|(LTR)   (active, names: '|':_UIButtonBarStackView:0x7fd0c011c2f0 )>"
13:39:31.522 81 info flutter.tools )
13:39:31.522 82 info flutter.tools 
13:39:31.522 83 info flutter.tools Will attempt to recover by breaking constraint 
13:39:31.522 84 info flutter.tools <NSLayoutConstraint:0x600002997930 H:[_UIModernBarButton:0x7fd0bcc0e4f0'Done']-(20)-|   (active, names: '|':_UIButtonBarButton:0x7fd0bcc2c3c0 )>
13:39:31.522 85 info flutter.tools 
13:39:31.522 86 info flutter.tools Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
13:39:31.522 87 info flutter.tools The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.

@ghost
Copy link

ghost commented Oct 20, 2019

How did you solve it? I have the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants