material-components-ios
material-components-ios copied to clipboard
Crash in -[MDCTextInputCommonFundament updatePlaceholderToOverlayViewsPosition] MDCTextInputCommonFundament.m, line 931
For usage questions: ask on Stack Overflow.
We are receiving crash-reports from MDCTextInputCommonFundament. -[MDCTextInputCommonFundament updatePlaceholderToOverlayViewsPosition] MDCTextInputCommonFundament.m, line 931 SIGABRT: Unable to activate constraint with anchors <NSLayoutXAxisAnchor:0x283f43340 "UILabel:0x103ab7d80.trailing"> and <NSLayoutXAxisAnchor:0x283f9f140 "UIImageView:0x1036c95f0.leading"> because they have no common ancestor. Does the constraint or its anchors reference items in different view hierarchies? That's illegal.
Reproduction steps
Unfortunately we have no information about how to reproduce this crash. The crash reports we received are anonymised.
Expected behavior
App does not crash
Actual behavior
App crashes
Platform (please complete the following information)
- Device: iPhone X (A1901), iPhone 8 Plus (A1897), iPhone 7 (A1778)
- OS: iOS14.4
Additional context
stacktrace:
CoreFoundation
__exceptionPreprocess
libobjc.A.dylib
objc_exception_throw
CoreAutoLayout
-[NSLayoutConstraint _setActive:mutuallyExclusiveConstraints:]
-[MDCTextInputCommonFundament updatePlaceholderToOverlayViewsPosition] MDCTextInputCommonFundament.m:931
-[MDCTextInputCommonFundament updatePlaceholderPosition] MDCTextInputCommonFundament.m:949
-[MDCTextInputCommonFundament didSetFont:] MDCTextInputCommonFundament.m:1022
-[MDCTextField setFont:] MDCTextField.m:451
-[MDCTextInputControllerBase updateTextInput] MDCTextInputControllerBase.m:416
-[MDCTextInputControllerBase updateLayout] MDCTextInputControllerBase.m:1380
-[MDCTextInputControllerOutlined updateLayout] MDCTextInputControllerOutlined.m:163
-[MDCTextInputControllerBase setErrorText:errorAccessibilityValue:] MDCTextInputControllerBase.m:1653
Hi @awBSH, It hasn't made it to a release yet, but we just deprecated MDCTextField
. I encourage you to switch to our newer text field offerings. See these docs for more info. Thanks!