Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4022] 2 Column Picker with integers only as picker row titles outputs uncaught exception 'NSInvalidArgumentException'.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2016-07-11T13:26:49.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterMarkus Schneider
AssigneeHans Knöchel
Created2016-07-10T11:26:45.000+0000
Updated2016-07-11T13:26:49.000+0000

Description

When I add a 2-column picker (credit card month and year) with two integers ("01" and "2016" respectively) as row titles I get the error message below. When I change all of the row titles of 1 column and add a letter for instance to all of the row titles (e.g. , ) there is no error and the rest of the code is also executed properly as well. *CODE:*
	<Picker id="chooseExpirationDate">
			<PickerColumn id="ccExpMonth">
				<PickerRow title="01"/>
				<PickerRow title="02"/>
				<PickerRow title="03"/>
				<PickerRow title="04"/>
				<PickerRow title="05"/>
				<PickerRow title="06"/>
				<PickerRow title="07"/>
				<PickerRow title="08"/>
				<PickerRow title="09"/>
				<PickerRow title="10"/>
				<PickerRow title="11"/>
				<PickerRow title="12"/>
			</PickerColumn>
			
			<PickerColumn id="ccExpYear">
				<PickerRow title="16"/>
				<PickerRow title="17"/>
				<PickerRow title="18"/>
				<PickerRow title="19"/>
				<PickerRow title="20"/>
				<PickerRow title="21"/>
			</PickerColumn>
		</Picker>
*ERROR:* {noformat} [ERROR] : The application has crashed with an uncaught exception 'NSInvalidArgumentException'. [ERROR] : Reason: [ERROR] : -[__NSCFNumber rangeOfCharacterFromSet:]: unrecognized selector sent to instance 0x7fb7eb5ace30 [ERROR] : Stack trace: [ERROR] : [ERROR] : 0 CoreFoundation 0x000000010db34f1d __exceptionPreprocess + 141 [ERROR] : 1 libobjc.A.dylib 0x000000010d70cbb7 objc_exception_throw + 45 [ERROR] : 2 CoreFoundation 0x000000010db3c04d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205 [ERROR] : 3 CoreFoundation 0x000000010da9427c ___forwarding___ + 988 [ERROR] : 4 CoreFoundation 0x000000010da93e18 _CF_forwarding_prep_0 + 120 [ERROR] : 5 UIKit 0x000000010a2e8f8e -[UILabel _contentInsetsFromFonts] + 126 [ERROR] : 6 UIKit 0x000000010a5476e6 -[_UILabelLayer updateContentInsets] + 110 [ERROR] : 7 UIKit 0x000000010a5477bd -[_UILabelLayer updateContentLayerSize] + 47 [ERROR] : 8 UIKit 0x000000010a5478af -[_UILabelLayer layoutSublayers] + 25 [ERROR] : 9 QuartzCore 0x000000010c498a0e _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380 [ERROR] : 10 QuartzCore 0x000000010c49887e _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24 [ERROR] : 11 QuartzCore 0x000000010c40663e _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 242 [ERROR] : 12 QuartzCore 0x000000010c40774a _ZN2CA11Transaction6commitEv + 390 [ERROR] : 13 QuartzCore 0x000000010c407db5 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 89 [ERROR] : 14 CoreFoundation 0x000000010da69dc7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 [ERROR] : 15 CoreFoundation 0x000000010da69d20 __CFRunLoopDoObservers + 368 [ERROR] : 16 CoreFoundation 0x000000010da5fb53 __CFRunLoopRun + 1123 [ERROR] : 17 CoreFoundation 0x000000010da5f486 CFRunLoopRunSpecific + 470 [ERROR] : 18 GraphicsServices 0x000000010e0499f0 GSEventRunModal + 161 [ERROR] : 19 UIKit 0x000000010a122420 UIApplicationMain + 1282 [ERROR] : 20 TabBase 0x00000001085dab79 main + 393 [ERROR] : 21 libdyld.dylib 0x000000010f899145 start + 1 [ERROR] : 22 ??? 0x0000000000000001 0x0 + 1 [ERROR] : [ERROR] : 2016-07-10 13:14:52.706 TabBase[43303:230847] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFNumber rangeOfCharacterFromSet:]: unrecognized selector sent to instance 0x7fb7eb5ace30' [ERROR] : *** First throw call stack: [ERROR] : ( [ERROR] : 0 CoreFoundation 0x000000010db34f35 __exceptionPreprocess + 165 [ERROR] : 1 libobjc.A.dylib 0x000000010d70cbb7 objc_exception_throw + 45 [ERROR] : 2 CoreFoundation 0x000000010db3c04d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205 [ERROR] : 3 CoreFoundation 0x000000010da9427c ___forwarding___ + 988 [ERROR] : 4 CoreFoundation 0x000000010da93e18 _CF_forwarding_prep_0 + 120 [ERROR] : 5 UIKit 0x000000010a2e8f8e -[UILabel _contentInsetsFromFonts] + 126 [ERROR] : 6 UIKit 0x000000010a5476e6 -[_UILabelLayer updateContentInsets] + 110 [ERROR] : 7 UIKit 0x000000010a5477bd -[_UILabelLayer updateContentLayerSize] + 47 [ERROR] : 8 UIKit 0x000000010a5478af -[_UILabelLayer layoutSublayers] + 25 [ERROR] : 9 QuartzCore 0x000000010c498a0e _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380 [ERROR] : 10 QuartzCore 0x000000010c49887e _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24 [ERROR] : 11 QuartzCore 0x000000010c40663e _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 242 [ERROR] : 12 QuartzCore 0x000000010c40774a _ZN2CA11Transaction6commitEv + 390 [ERROR] : 13 QuartzCore 0x000000010c407db5 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 89 [ERROR] : 14 CoreFoundation 0x000000010da69dc7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 [ERROR] : 15 CoreFoundation 0x000000010da69d20 __CFRunLoopDoObservers + 368 [ERROR] : 16 CoreFoundation 0x000000010da5fb53 __CFRunLoopRun + 1123 [ERROR] : 17 CoreFoundation 0x000000010da5f486 CFRunLoopRunSpecific + 470 [ERROR] : 18 GraphicsServices 0x000000010e0499f0 GSEventRunModal + 161 [ERROR] : 19 UIKit 0x000000010a122420 UIApplicationMain + 1282 [ERROR] : 20 TabBase 0x00000001085dab79 main + 393 [ERROR] : 21 libdyld.dylib 0x000000010f899145 start + 1 [ERROR] : 22 ??? 0x0000000000000001 0x0 + 1 [ERROR] : ) [ERROR] : libc++abi.dylib: terminating with uncaught exception of type NSException {noformat}

Comments

  1. Hans Knöchel 2016-07-11

    Closing as duplicate of TIMOB-23191. The fix will be available in Titanium 5.4.0.GA (end of July). Thanks!

JSON Source