App crashes on ion-input (input) called


#1

Below is error state-

2017-11-28 02:23:52.268990+0530 WiproInvite[7633:1003882] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/6CA3A172-5F22-49CA-8E10-2672D4DC58E6/Library/Cookies/Cookies.binarycookies
2017-11-28 02:23:52.424055+0530 WiproInvite[7633:1003882] Apache Cordova native platform version 4.5.3 is starting.
2017-11-28 02:23:52.424298+0530 WiproInvite[7633:1003882] Multi-tasking -> Device: YES, App: YES
2017-11-28 02:23:52.486439+0530 WiproInvite[7633:1003882] CDVWKWebViewEngine: trying to inject XHR polyfill
2017-11-28 02:23:52.675601+0530 WiproInvite[7633:1003882] [MC] Lazy loading NSBundle MobileCoreServices.framework
2017-11-28 02:23:52.677819+0530 WiproInvite[7633:1003882] [MC] Loaded MobileCoreServices.framework
2017-11-28 02:23:52.682354+0530 WiproInvite[7633:1003882] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2017-11-28 02:23:52.704230+0530 WiproInvite[7633:1003882] CDVWKWebViewEngine will reload WKWebView if required on resume
2017-11-28 02:23:52.704343+0530 WiproInvite[7633:1003882] Using Ionic WKWebView
2017-11-28 02:23:52.705992+0530 WiproInvite[7633:1003882] [CDVTimer][console] 0.174046ms
2017-11-28 02:23:52.706337+0530 WiproInvite[7633:1003882] [CDVTimer][handleopenurl] 0.225008ms
2017-11-28 02:23:52.711781+0530 WiproInvite[7633:1003882] [CDVTimer][intentandnavigationfilter] 5.371034ms
2017-11-28 02:23:52.712022+0530 WiproInvite[7633:1003882] [CDVTimer][gesturehandler] 0.142992ms
2017-11-28 02:23:52.770144+0530 WiproInvite[7633:1003882] [CDVTimer][splashscreen] 58.058023ms
2017-11-28 02:23:52.779426+0530 WiproInvite[7633:1003882] [CDVTimer][file] 9.112000ms
2017-11-28 02:23:52.779521+0530 WiproInvite[7633:1003882] [CDVTimer][TotalPluginStartup] 74.252009ms
2017-11-28 02:23:53.018215+0530 WiproInvite[7633:1003882] refreshPreferences: HangTracerEnabled: 0
2017-11-28 02:23:53.018309+0530 WiproInvite[7633:1003882] refreshPreferences: HangTracerDuration: 500
2017-11-28 02:23:53.018349+0530 WiproInvite[7633:1003882] refreshPreferences: ActivationLoggingEnabled: 0 ActivationLoggingTaskedOffByDA:0
2017-11-28 02:24:00.033896+0530 WiproInvite[7633:1003882] THREAD WARNING: ['Device'] took '16.936035' ms. Plugin should use a background thread.
2017-11-28 02:24:00.233997+0530 WiproInvite[7633:1003882] deviceready has not fired after 5 seconds.
2017-11-28 02:24:00.234515+0530 WiproInvite[7633:1003882] Channel not fired: onCordovaInfoReady
2017-11-28 02:24:00.234684+0530 WiproInvite[7633:1003882] Channel not fired: onFileSystemPathsReady
2017-11-28 02:24:00.234822+0530 WiproInvite[7633:1003882] Ionic Native: deviceready event fired after 3956 ms
2017-11-28 02:24:00.235082+0530 WiproInvite[7633:1003882] WARN: Native: tried calling StatusBar.styleDefault, but the StatusBar plugin is not installed.
2017-11-28 02:24:00.238668+0530 WiproInvite[7633:1003882] WARN: Install the StatusBar plugin: 'ionic cordova plugin add cordova-plugin-statusbar'
2017-11-28 02:24:06.111697+0530 WiproInvite[7633:1003882] [MC] Reading from public effective user settings.
2017-11-28 02:24:06.240753+0530 WiproInvite[7633:1003882] Can't find keyplane that supports type 5 for keyboard iPhone-PortraitChoco-PhonePad; using 2024220450015396792_PortraitChoco_iPhone-Complex-Pad_Default
2017-11-28 02:24:06.650651+0530 WiproInvite[7633:1003882] [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:0x1c028d930 h=-&- v=-&- UIToolbar:0x101629e50.width == _UIInputViewContent:0x101514e20.width   (active)>",
    "<NSAutoresizingMaskLayoutConstraint:0x1c4289a60 h=--& v=--& _UIInputViewContent:0x101514e20.width == 0   (active)>",
    "<NSLayoutConstraint:0x1c0282fd0 H:|-(0)-[_UIButtonBarStackView:0x101624e90]   (active, names: '|':_UIToolbarContentView:0x101623ab0 )>",
    "<NSLayoutConstraint:0x1c0282f30 _UIButtonBarStackView:0x101624e90.trailing == _UIToolbarContentView:0x101623ab0.trailing + 8   (active)>",
    "<NSLayoutConstraint:0x1c4283430 _UIToolbarContentView:0x101623ab0.trailing == UIToolbar:0x101629e50.trailing   (active)>",
    "<NSLayoutConstraint:0x1c4283520 H:|-(0)-[_UIToolbarContentView:0x101623ab0]   (active, names: '|':UIToolbar:0x101629e50 )>",
    "<NSLayoutConstraint:0x1c4288930 H:|-(0)-[_UIModernBarButton:0x10153b540]   (active, names: '|':_UIButtonBarButton:0x10153b0f0 )>",
    "<NSLayoutConstraint:0x1c4288980 H:[_UIModernBarButton:0x10153b540]-(>=8)-|   (active, names: '|':_UIButtonBarButton:0x10153b0f0 )>",
    "<NSLayoutConstraint:0x1c028c8f0 H:|-(8)-[_UIModernBarButton:0x10153e280'Done']   (active, names: '|':_UIButtonBarButton:0x10153de90 )>",
    "<NSLayoutConstraint:0x1c028c940 H:[_UIModernBarButton:0x10153e280'Done']-(0)-|   (active, names: '|':_UIButtonBarButton:0x10153de90 )>",
    "<NSLayoutConstraint:0x1c028cd00 'UISV-canvas-connection' UILayoutGuide:0x1c41b65e0'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x10153b0f0.leading   (active)>",
    "<NSLayoutConstraint:0x1c028d1b0 'UISV-canvas-connection' UILayoutGuide:0x1c41b65e0'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x10153de90.trailing   (active)>",
    "<NSLayoutConstraint:0x1c028d430 'UISV-spacing' H:[_UIButtonBarButton:0x10153b0f0]-(0)-[UIView:0x10153cb40]   (active)>",
    "<NSLayoutConstraint:0x1c028d570 'UISV-spacing' H:[UIView:0x10153cb40]-(0)-[_UIButtonBarButton:0x10153cd20]   (active)>",
    "<NSLayoutConstraint:0x1c028d610 'UISV-spacing' H:[_UIButtonBarButton:0x10153cd20]-(0)-[UIView:0x10153dcb0]   (active)>",
    "<NSLayoutConstraint:0x1c028d6b0 'UISV-spacing' H:[UIView:0x10153dcb0]-(0)-[_UIButtonBarButton:0x10153de90]   (active)>",
    "<NSLayoutConstraint:0x1c42838e0 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x1c41b65e0'UIViewLayoutMarginsGuide'](LTR)   (active, names: '|':_UIButtonBarStackView:0x101624e90 )>",
    "<NSLayoutConstraint:0x1c4283980 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x1c41b65e0'UIViewLayoutMarginsGuide']-(0)-|(LTR)   (active, names: '|':_UIButtonBarStackView:0x101624e90 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x1c4288980 H:[_UIModernBarButton:0x10153b540]-(>=8)-|   (active, names: '|':_UIButtonBarButton:0x10153b0f0 )>

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.
2017-11-28 02:24:06.668168+0530 WiproInvite[7633:1003882] [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:0x1c028d930 h=-&- v=-&- UIToolbar:0x101629e50.width == _UIInputViewContent:0x101514e20.width   (active)>",
    "<NSAutoresizingMaskLayoutConstraint:0x1c4289a60 h=--& v=--& _UIInputViewContent:0x101514e20.width == 0   (active)>",
    "<NSLayoutConstraint:0x1c0282fd0 H:|-(0)-[_UIButtonBarStackView:0x101624e90]   (active, names: '|':_UIToolbarContentView:0x101623ab0 )>",
    "<NSLayoutConstraint:0x1c0282f30 _UIButtonBarStackView:0x101624e90.trailing == _UIToolbarContentView:0x101623ab0.trailing + 8   (active)>",
    "<NSLayoutConstraint:0x1c4283430 _UIToolbarContentView:0x101623ab0.trailing == UIToolbar:0x101629e50.trailing   (active)>",
    "<NSLayoutConstraint:0x1c4283520 H:|-(0)-[_UIToolbarContentView:0x101623ab0]   (active, names: '|':UIToolbar:0x101629e50 )>",
    "<NSLayoutConstraint:0x1c4288f70 H:|-(>=5)-[_UIModernBarButton:0x10153d370]   (active, names: '|':_UIButtonBarButton:0x10153cd20 )>",
    "<NSLayoutConstraint:0x1c4288fc0 H:[_UIModernBarButton:0x10153d370]-(>=5)-|   (active, names: '|':_UIButtonBarButton:0x10153cd20 )>",
    "<NSLayoutConstraint:0x1c028c8f0 H:|-(8)-[_UIModernBarButton:0x10153e280'Done']   (active, names: '|':_UIButtonBarButton:0x10153de90 )>",
    "<NSLayoutConstraint:0x1c028c940 H:[_UIModernBarButton:0x10153e280'Done']-(0)-|   (active, names: '|':_UIButtonBarButton:0x10153de90 )>",
    "<NSLayoutConstraint:0x1c028cd00 'UISV-canvas-connection' UILayoutGuide:0x1c41b65e0'UIViewLayoutMarginsGuide'.leading == _UIButtonBarButton:0x10153b0f0.leading   (active)>",
    "<NSLayoutConstraint:0x1c028d1b0 'UISV-canvas-connection' UILayoutGuide:0x1c41b65e0'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x10153de90.trailing   (active)>",
    "<NSLayoutConstraint:0x1c028d430 'UISV-spacing' H:[_UIButtonBarButton:0x10153b0f0]-(0)-[UIView:0x10153cb40]   (active)>",
    "<NSLayoutConstraint:0x1c028d570 'UISV-spacing' H:[UIView:0x10153cb40]-(0)-[_UIButtonBarButton:0x10153cd20]   (active)>",
    "<NSLayoutConstraint:0x1c028d610 'UISV-spacing' H:[_UIButtonBarButton:0x10153cd20]-(0)-[UIView:0x10153dcb0]   (active)>",
    "<NSLayoutConstraint:0x1c028d6b0 'UISV-spacing' H:[UIView:0x10153dcb0]-(0)-[_UIButtonBarButton:0x10153de90]   (active)>",
    "<NSLayoutConstraint:0x1c42838e0 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x1c41b65e0'UIViewLayoutMarginsGuide'](LTR)   (active, names: '|':_UIButtonBarStackView:0x101624e90 )>",
    "<NSLayoutConstraint:0x1c4283980 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x1c41b65e0'UIViewLayoutMarginsGuide']-(0)-|(LTR)   (active, names: '|':_UIButtonBarStackView:0x101624e90 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x1c4288fc0 H:[_UIModernBarButton:0x10153d370]-(>=5)-|   (active, names: '|':_UIButtonBarButton:0x10153cd20 )>

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.
2017-11-28 02:24:06.922402+0530 WiproInvite[7633:1003882] [Common] _BSMachError: port bd03; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
2017-11-28 02:24:09.110568+0530 WiproInvite[7633:1003882] THREAD WARNING: ['SpinnerDialog'] took '31.781982' ms. Plugin should use a background thread.
2017-11-28 02:24:11.171563+0530 WiproInvite[7633:1003882] Can't find keyplane that supports type 5 for keyboard iPhone-PortraitChoco-PhonePad; using 2024220450015396792_PortraitChoco_iPhone-Complex-Pad_Default
2017-11-28 02:24:15.164682+0530 WiproInvite[7633:1003882] -[__NSDictionaryM length]: unrecognized selector sent to instance 0x1c423cae0
2017-11-28 02:24:15.167676+0530 WiproInvite[7633:1003882] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryM length]: unrecognized selector sent to instance 0x1c423cae0'
*** First throw call stack:
(0x182fe5d04 0x182234528 0x182ff31c8 0x182feb6b0 0x182ed101c 0x183749328 0x18362d608 0x1835c4eb8 0x100f4a06c 0x1830246a4 0x100f49a2c 0x100f48070 0x100f3f928 0x100f3e7a0 0x100f36b78 0x100f7e8a0 0x100eed294 0x100eed0f8 0x100eeecd8 0x192347ec0 0x1922dc7f8 0x1922de9d8 0x1920ca154 0x1922a7218 0x19208a730 0x19208d124 0x18a241e04 0x18a242034 0x182f8e2e8 0x182f8e268 0x182f8daf0 0x182f8b6c8 0x182eabfb8 0x184d43f84 0x18c4802e8 0x100ee54d4 0x1829ce56c)
libc++abi.dylib: terminating with uncaught exception of type NSException
warning: could not execute support code to read Objective-C class data in the process. This may reduce the quality of type information available.
(lldb) 

as soon - validatePhoneNumber(phoneNo) { this.spinnerDialog.show(null, 'Loding...please wait', true); if (phoneNo.length == 10) { //Something}

my Application crashes, if the input is less than the limit char it works fine.

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

global packages:

    cordova (Cordova CLI) : 7.1.0 

local packages:

    @ionic/app-scripts : 3.1.2
    Cordova Platforms  : ios 4.5.4
    Ionic Framework    : ionic-angular 3.9.2

System:

    ios-deploy : 1.9.2 
    Node       : v8.9.1
    npm        : 5.5.1 
    OS         : macOS Sierra
    Xcode      : Xcode 9.1 Build version 9B55 

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro