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

Issue with createPlatformTextEdit() on iOS #178

Open
rjonkman opened this issue Dec 17, 2020 · 1 comment
Open

Issue with createPlatformTextEdit() on iOS #178

rjonkman opened this issue Dec 17, 2020 · 1 comment
Labels

Comments

@rjonkman
Copy link
Contributor

rjonkman commented Dec 17, 2020

In one of my applications, I just see a warning and everything is fine. In another one, the warning is accompanied by this crash:
Screen Shot 2020-12-17 at 7 05 06 PM

2020-12-17 18:58:36.680164+0800 eDrumIn iOS[617:54854] [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. 
	(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
    "<NSAutoresizingMaskLayoutConstraint:0x283f930c0 h=--& v=--& _UIButtonBarButton:0x121e83be0.height == 0   (active)>",
    "<NSLayoutConstraint:0x283f95b30 V:|-(6)-[_UIUCBKBSelectionBackground:0x121e84500]   (active, names: '|':_UIButtonBarButton:0x121e83be0 )>",
    "<NSLayoutConstraint:0x283f95bd0 _UIUCBKBSelectionBackground:0x121e84500.bottom == _UIButtonBarButton:0x121e83be0.bottom - 6   (active)>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x283f95bd0 _UIUCBKBSelectionBackground:0x121e84500.bottom == _UIButtonBarButton:0x121e83be0.bottom - 6   (active)>

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.
@scheffle
Copy link
Collaborator

scheffle commented Jan 5, 2021

Sorry, I cannot reproduce this issue. Can you provide a sample app with source code?

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

No branches or pull requests

2 participants