-
Notifications
You must be signed in to change notification settings - Fork 934
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
Ios crash when click textbox #85
Comments
Same issue experienced for me - tap on a input field; when you'd expect the OSK to show, causes a crash on iOS. |
I'm not seeing this. iPhone 5s, iOS 12.2, Plugin 0.3.3 |
+1 - Same issue |
Hi, I wanted to add some more information to this, since I still seem to be experiencing it but only in a simulator, on a real device the plugin works as expected with the same app and code. Pretty sure issue #193, #281, and #397 are all the same issue. Devices tested:
Versions: Full error log:
Code: @override
Widget build(BuildContext context) {
return WebviewScaffold(
url: "https://google.com",
withZoom: false,
withJavascript: false,
withLocalStorage: false,
displayZoomControls: true,
resizeToAvoidBottomInset: true,
appBar: AppBar(
title: Text(
"App bar",
style: TextStyle(
color: Colors.white,
fontSize: 24,
fontFamily: 'Augustus',
fontWeight: FontWeight.w700,
),
),
automaticallyImplyLeading: false,
centerTitle: true,
backgroundColor: Color(0xFF151846),
elevation: 0,
),
);
} |
@hcaz thanks for report, I'm not sure how to tackle this bug tbh. Maybe it's simulator bug? I was able to throw exception (it didnt crash just, was thrown) on iOS Simulator (iPhone 11 pro max, iOS 13.0) as you wrote but when I used Xr it was working as expected. |
@charafau I will clarafy what I mean by crash, the app doesnt close, it throws the exepction into debug and then the app is unresponsive to me, but it wont actually cause the app to close. I will do some more testing later in different simulators to see if there is anything related beetween them, but it does look like it may be a simulator issue and not pysical (I have ran out of pysical devices to test on though, so if anybody else can test that may help pin point this) |
@hcaz great, thank you for help 🙇 |
Any solution for this? |
any help on this? |
Hello, I have a page that has textbox.
when i try to edit textbox, app craashing with below error.
can you help me please?
(
"<NSAutoresizingMaskLayoutConstraint:0x604000281220 h=-&- v=-&- _UIToolbarContentView:0x7f857b74a620.width == UIToolbar:0x7f857b5474a0.width (active)>",
"<NSLayoutConstraint:0x6000000963f0 H:|-(0)-[_UIButtonBarStackView:0x7f857b74bbf0] (active, names: '|':_UIToolbarContentView:0x7f857b74a620 )>",
"<NSLayoutConstraint:0x6000000966c0 _UIButtonBarStackView:0x7f857b74bbf0.trailing == _UIToolbarContentView:0x7f857b74a620.trailing + 8 (active)>",
"<NSLayoutConstraint:0x600000280550 H:|-(0)-[_UIModernBarButton:0x7f857b603a50] (active, names: '|':_UIButtonBarButton:0x7f857b762b20 )>",
"<NSLayoutConstraint:0x6000002805a0 H:[_UIModernBarButton:0x7f857b603a50]-(>=8)-| (active, names: '|':_UIButtonBarButton:0x7f857b762b20 )>",
"<NSLayoutConstraint:0x600000280e10 H:|-(>=5)-[_UIModernBarButton:0x7f857b763f40] (active, names: '|':_UIButtonBarButton:0x7f857b7638d0 )>",
"<NSLayoutConstraint:0x600000280e60 H:[_UIModernBarButton:0x7f857b763f40]-(>=5)-| (active, names: '|':_UIButtonBarButton:0x7f857b7638d0 )>",
"<NSLayoutConstraint:0x60400008ad70 H:|-(8)-[_UIModernBarButton:0x7f857b56cea0'Done'] (active, names: '|':_UIButtonBarButton:0x7f857b764980 )>",
"<NSLayoutConstraint:0x604000280b90 H:[_UIModernBarButton:0x7f857b56cea0'Done']-(0)-| (active, names: '|':_UIButtonBarButton:0x7f857b764980 )>",
"<NSLayoutConstraint:0x604000280f50 'UISV-canvas-connection' UILayoutGuide:0x6040003af340'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x7f857b762b20.leading (active)>",
"<NSLayoutConstraint:0x604000281860 'UISV-canvas-connection' UILayoutGuide:0x6040003af340'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x7f857b764980.trailing (active)>",
"<NSLayoutConstraint:0x604000281720 'UISV-spacing' H:[_UIButtonBarButton:0x7f857b762b20]-(0)-[UIView:0x7f857b7636e0] (active)>",
"<NSLayoutConstraint:0x6040002819a0 'UISV-spacing' H:[UIView:0x7f857b7636e0]-(0)-[_UIButtonBarButton:0x7f857b7638d0] (active)>",
"<NSLayoutConstraint:0x604000281a40 'UISV-spacing' H:[_UIButtonBarButton:0x7f857b7638d0]-(0)-[UIView:0x7f857b764790] (active)>",
"<NSLayoutConstraint:0x604000281ae0 'UISV-spacing' H:[UIView:0x7f857b764790]-(0)-[_UIButtonBarButton:0x7f857b764980] (active)>",
"<NSLayoutConstraint:0x604000281ef0 'UIView-Encapsulated-Layout-Width' UIToolbar:0x7f857b5474a0.width == 0 (active)>",
"<NSLayoutConstraint:0x604000094e60 'UIView-leftMargin-guide-constraint' H:|-(0)-UILayoutGuide:0x6040003af340'UIViewLayoutMarginsGuide' (active, names: '|':_UIButtonBarStackView:0x7f857b74bbf0 )>",
"<NSLayoutConstraint:0x604000096300 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x6040003af340'UIViewLayoutMarginsGuide']-(0)-|(LTR) (active, names: '|':_UIButtonBarStackView:0x7f857b74bbf0 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x6000002805a0 H:[_UIModernBarButton:0x7f857b603a50]-(>=8)-| (active, names: '|':_UIButtonBarButton:0x7f857b762b20 )>
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.
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)
(
"<NSAutoresizingMaskLayoutConstraint:0x604000281220 h=-&- v=-&- _UIToolbarContentView:0x7f857b74a620.width == UIToolbar:0x7f857b5474a0.width (active)>",
"<NSLayoutConstraint:0x6000000963f0 H:|-(0)-[_UIButtonBarStackView:0x7f857b74bbf0] (active, names: '|':_UIToolbarContentView:0x7f857b74a620 )>",
"<NSLayoutConstraint:0x6000000966c0 _UIButtonBarStackView:0x7f857b74bbf0.trailing == _UIToolbarContentView:0x7f857b74a620.trailing + 8 (active)>",
"<NSLayoutConstraint:0x600000280e10 H:|-(>=5)-[_UIModernBarButton:0x7f857b763f40] (active, names: '|':_UIButtonBarButton:0x7f857b7638d0 )>",
"<NSLayoutConstraint:0x600000280e60 H:[_UIModernBarButton:0x7f857b763f40]-(>=5)-| (active, names: '|':_UIButtonBarButton:0x7f857b7638d0 )>",
"<NSLayoutConstraint:0x60400008ad70 H:|-(8)-[_UIModernBarButton:0x7f857b56cea0'Done'] (active, names: '|':_UIButtonBarButton:0x7f857b764980 )>",
"<NSLayoutConstraint:0x604000280b90 H:[_UIModernBarButton:0x7f857b56cea0'Done']-(0)-| (active, names: '|':_UIButtonBarButton:0x7f857b764980 )>",
"<NSLayoutConstraint:0x604000280f50 'UISV-canvas-connection' UILayoutGuide:0x6040003af340'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x7f857b762b20.leading (active)>",
"<NSLayoutConstraint:0x604000281860 'UISV-canvas-connection' UILayoutGuide:0x6040003af340'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x7f857b764980.trailing (active)>",
"<NSLayoutConstraint:0x604000281720 'UISV-spacing' H:[_UIButtonBarButton:0x7f857b762b20]-(0)-[UIView:0x7f857b7636e0] (active)>",
"<NSLayoutConstraint:0x6040002819a0 'UISV-spacing' H:[UIView:0x7f857b7636e0]-(0)-[_UIButtonBarButton:0x7f857b7638d0] (active)>",
"<NSLayoutConstraint:0x604000281a40 'UISV-spacing' H:[_UIButtonBarButton:0x7f857b7638d0]-(0)-[UIView:0x7f857b764790] (active)>",
"<NSLayoutConstraint:0x604000281ae0 'UISV-spacing' H:[UIView:0x7f857b764790]-(0)-[_UIButtonBarButton:0x7f857b764980] (active)>",
"<NSLayoutConstraint:0x604000281ef0 'UIView-Encapsulated-Layout-Width' UIToolbar:0x7f857b5474a0.width == 0 (active)>",
"<NSLayoutConstraint:0x604000094e60 'UIView-leftMargin-guide-constraint' H:|-(0)-UILayoutGuide:0x6040003af340'UIViewLayoutMarginsGuide' (active, names: '|':_UIButtonBarStackView:0x7f857b74bbf0 )>",
"<NSLayoutConstraint:0x604000096300 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x6040003af340'UIViewLayoutMarginsGuide']-(0)-|(LTR) (active, names: '|':_UIButtonBarStackView:0x7f857b74bbf0 )>"
)
The text was updated successfully, but these errors were encountered: