{ "id": "151585", "key": "AC-402", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-11-21T18:53:08.000+0000", "created": "2015-09-29T18:26:33.000+0000", "labels": [ "ios9", "sdk-5.0.0", "selectedproperty", "showcontacts" ], "versions": [], "issuelinks": [ { "id": "49964", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "153438", "key": "TIMOB-20063", "fields": { "summary": "iOS: Ti.Contacts.showContacts crashes in iOS 9", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "updated": "2015-11-25T09:00:17.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "*App crash when selecting phone number from contacts*\r\n{code}\r\n_var imageContacts = Ti.UI.createImageView({\r\n left: dynamicSize(260),\r\n image: '/images/contacts.png', \r\n width: dynamicSize(30),\r\n});\r\nviewRecipient.add(imageContacts);\r\n\r\nimageContacts.addEventListener('click',function(e){\r\n Titanium.Contacts.showContacts({ \r\n selectedProperty: function(e){\r\n Ti.API.info(\"Selected phone #: \" + e.value);\r\n Ti.API.info(\"Type of phone #: \"+ e.label);\r\n \r\n },\r\n fields: ['phone']\r\n });\r\n});_\r\n{code}\r\n*With following Error: *\r\n\r\n[ERROR] : The application has crashed with an uncaught exception 'CNPropertyNotFetchedException'.\r\n[ERROR] : Reason:\r\n[ERROR] : A property was not requested when contact was fetched.\r\n[ERROR] : Stack trace:\r\n[ERROR] : \r\n[ERROR] : 0 CoreFoundation 0x000000011084df4d __exceptionPreprocess + 141\r\n[ERROR] : 1 libobjc.A.dylib 0x0000000110220deb objc_exception_throw + 48\r\n[ERROR] : 2 CoreFoundation 0x000000011084de9d +[NSException raise:format:] + 205\r\n[ERROR] : 3 Contacts 0x000000010bb0c205 -[CNContact emailAddresses] + 160\r\n[ERROR] : 4 * 0x000000010af783a8 -[TiContactsPerson getiOS9ContactProperties:] + 568\r\n[ERROR] : 5 * 0x000000010af780a2 -[TiContactsPerson _initWithPageContext:contactId:module:] + 162\r\n[ERROR] : 6 * 0x000000010afd5c94 -[ContactsModule contactPicker:didSelectContactProperty:] + 196\r\n[ERROR] : 7 ContactsUI 0x000000010bc182d2 -[CNContactPickerViewController pickerDidSelectContact:property:] + 297\r\n[ERROR] : 8 ContactsUI 0x000000010bc99f4a -[CNContactPickerHostViewController pickerDidSelectContact:property:] + 95\r\n[ERROR] : 9 ContactsUI 0x000000010bc9a6e2 __71-[CNContactPickerExtensionHostContext pickerDidSelectContact:property:]_block_invoke + 66\r\n[ERROR] : 10 libdispatch.dylib 0x0000000111181df5 _dispatch_call_block_and_release + 12\r\n[ERROR] : 11 libdispatch.dylib 0x000000011119d4a7 _dispatch_client_callout + 8\r\n[ERROR] : 12 libdispatch.dylib 0x0000000111187fc9 _dispatch_main_queue_callback_4CF + 714\r\n[ERROR] : 13 CoreFoundation 0x00000001107ae3e9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9\r\n[ERROR] : 14 CoreFoundation 0x000000011076f939 __CFRunLoopRun + 2073\r\n[ERROR] : 15 CoreFoundation 0x000000011076ee98 CFRunLoopRunSpecific + 488\r\n[ERROR] : 16 GraphicsServices 0x0000000112424ad2 GSEventRunModal + 161\r\n[ERROR] : 17 UIKit 0x000000010ce4e676 UIApplicationMain + 171\r\n[ERROR] : 18 * 0x000000010ae86416 main + 310\r\n[ERROR] : 19 libdyld.dylib 0x00000001111cc92d start + 1\r\n[ERROR] : \r\n[ERROR] : 2015-09-29 20:14:03.886 *[66957:3428295] *** Terminating app due to uncaught exception 'CNPropertyNotFetchedException', reason: 'A property was not requested when contact was fetched.'\r\n[ERROR] : *** First throw call stack:\r\n[ERROR] : (\r\n[ERROR] : \t0 CoreFoundation 0x000000011084df65 __exceptionPreprocess + 165\r\n[ERROR] : \t1 libobjc.A.dylib 0x0000000110220deb objc_exception_throw + 48\r\n[ERROR] : \t2 CoreFoundation 0x000000011084de9d +[NSException raise:format:] + 205\r\n[ERROR] : \t3 Contacts 0x000000010bb0c205 -[CNContact emailAddresses] + 160\r\n[ERROR] : \t4 * 0x000000010af783a8 -[TiContactsPerson getiOS9ContactProperties:] + 568\r\n[ERROR] : \t5 * 0x000000010af780a2 -[TiContactsPerson _initWithPageContext:contactId:module:] + 162\r\n[ERROR] : \t6 * 0x000000010afd5c94 -[ContactsModule contactPicker:didSelectContactProperty:] + 196\r\n[ERROR] : \t7 ContactsUI 0x000000010bc182d2 -[CNContactPickerViewController pickerDidSelectContact:property:] + 297\r\n[ERROR] : \t8 ContactsUI 0x000000010bc99f4a -[CNContactPickerHostViewController pickerDidSelectContact:property:] + 95\r\n[ERROR] : \t9 ContactsUI 0x000000010bc9a6e2 __71-[CNContactPickerExtensionHostContext pickerDidSelectContact:property:]_block_invoke + 66\r\n[ERROR] : \t10 libdispatch.dylib 0x0000000111181df5 _dispatch_call_block_and_release + 12\r\n[ERROR] : \t11 libdispatch.dylib 0x000000011119d4a7 _dispatch_client_callout + 8\r\n[ERROR] : \t12 libdispatch.dylib 0x0000000111187fc9 _dispatch_main_queue_callback_4CF + 714\r\n[ERROR] : \t13 CoreFoundation 0x00000001107ae3e9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9\r\n[ERROR] : \t14 CoreFoundation 0x000000011076f939 __CFRunLoopRun + 2073\r\n[ERROR] : \t15 CoreFoundation 0x000000011076ee98 CFRunLoopRunSpecific + 488\r\n[ERROR] : \t16 GraphicsServices 0x0000000112424ad2 GSEventRunModal + 161\r\n[ERROR] : \t17 UIKit 0x000000010ce4e676 UIApplicationMain + 171\r\n[ERROR] : \t18 * 0x000000010ae86416 main + 310\r\n[ERROR] : \t19 libdyld.dylib 0x00000001111cc92d start + 1\r\n[ERROR] : )\r\n[ERROR] : libc++abi.dylib: terminating with uncaught exception of type NSException\r\n\r\n", "attachment": [ { "id": "57455", "filename": "screenshot-1.png", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2015-11-16T08:53:02.000+0000", "size": 303519, "mimeType": "image/png" } ], "flagged": false, "summary": "Titanium.Contacts.showContacts Error", "creator": { "name": "geekme", "key": "geekme", "displayName": "Fab", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "geekme", "key": "geekme", "displayName": "Fab", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio, build: 4.3.0.201509151348\r\nTi SDK 5.1.0.v20150929021233\r\nMacOS X Yosemite 10.10.5\r\niOS 9\r\n", "comment": { "comments": [ { "id": "365651", "author": { "name": "geekme", "key": "geekme", "displayName": "Fab", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello Amimul Hossain,\r\n\r\ni tested the exact same Code from you within a new project and got the same error.\r\nI tested it in iphone6-Simulator\r\n\r\n[INFO] : Finished building the application in 37s 277ms\r\n[INFO] : Launching iOS Simulator\r\n[INFO] : Application started\r\n[INFO] : test/1.0 (5.1.0.abe048b)\r\n[INFO] : You clicked the button\r\n[ERROR] : The application has crashed with an uncaught exception 'CNPropertyNotFetchedException'.\r\n[ERROR] : Reason:\r\n[ERROR] : A property was not requested when contact was fetched.\r\n[ERROR] : Stack trace:\r\n[ERROR] : \r\n[ERROR] : 0 CoreFoundation 0x0000000113e0ff4d __exceptionPreprocess + 141\r\n[ERROR] : 1 libobjc.A.dylib 0x00000001137e2deb objc_exception_throw + 48\r\n[ERROR] : 2 CoreFoundation 0x0000000113e0fe9d +[NSException raise:format:] + 205\r\n[ERROR] : 3 Contacts 0x000000010efd6205 -[CNContact emailAddresses] + 160\r\n[ERROR] : 4 test 0x000000010e611368 -[TiContactsPerson getiOS9ContactProperties:] + 568\r\n[ERROR] : 5 test 0x000000010e611062 -[TiContactsPerson _initWithPageContext:contactId:module:] + 162\r\n[ERROR] : 6 test 0x000000010e66ddf4 -[ContactsModule contactPicker:didSelectContactProperty:] + 196\r\n[ERROR] : 7 ContactsUI 0x000000010f0e22d2 -[CNContactPickerViewController pickerDidSelectContact:property:] + 297\r\n[ERROR] : 8 ContactsUI 0x000000010f163f4a -[CNContactPickerHostViewController pickerDidSelectContact:property:] + 95\r\n[ERROR] : 9 ContactsUI 0x000000010f1646e2 __71-[CNContactPickerExtensionHostContext pickerDidSelectContact:property:]_block_invoke + 66\r\n[ERROR] : 10 libdispatch.dylib 0x0000000114a0adf5 _dispatch_call_block_and_release + 12\r\n[ERROR] : 11 libdispatch.dylib 0x0000000114a264a7 _dispatch_client_callout + 8\r\n[ERROR] : 12 libdispatch.dylib 0x0000000114a10fc9 _dispatch_main_queue_callback_4CF + 714\r\n[ERROR] : 13 CoreFoundation 0x0000000113d703e9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9\r\n[ERROR] : 14 CoreFoundation 0x0000000113d31939 __CFRunLoopRun + 2073\r\n[ERROR] : 15 CoreFoundation 0x0000000113d30e98 CFRunLoopRunSpecific + 488\r\n[ERROR] : 16 GraphicsServices 0x0000000115141ad2 GSEventRunModal + 161\r\n[ERROR] : 17 UIKit 0x00000001103d8676 UIApplicationMain + 171\r\n[ERROR] : 18 test 0x000000010e51fef6 main + 310\r\n[ERROR] : 19 libdyld.dylib 0x0000000114a5592d start + 1\r\n[ERROR] : 20 ??? 0x0000000000000001 0x0 + 1\r\n[ERROR] : \r\n[ERROR] : 2015-10-02 13:51:58.872 test[13025:844123] *** Terminating app due to uncaught exception 'CNPropertyNotFetchedException', reason: 'A property was not requested when contact was fetched.'\r\n[ERROR] : *** First throw call stack:\r\n[ERROR] : (\r\n[ERROR] : \t0 CoreFoundation 0x0000000113e0ff65 __exceptionPreprocess + 165\r\n[ERROR] : \t1 libobjc.A.dylib 0x00000001137e2deb objc_exception_throw + 48\r\n[ERROR] : \t2 CoreFoundation 0x0000000113e0fe9d +[NSException raise:format:] + 205\r\n[ERROR] : \t3 Contacts 0x000000010efd6205 -[CNContact emailAddresses] + 160\r\n[ERROR] : \t4 test 0x000000010e611368 -[TiContactsPerson getiOS9ContactProperties:] + 568\r\n[ERROR] : \t5 test 0x000000010e611062 -[TiContactsPerson _initWithPageContext:contactId:module:] + 162\r\n[ERROR] : \t6 test 0x000000010e66ddf4 -[ContactsModule contactPicker:didSelectContactProperty:] + 196\r\n[ERROR] : \t7 ContactsUI 0x000000010f0e22d2 -[CNContactPickerViewController pickerDidSelectContact:property:] + 297\r\n[ERROR] : \t8 ContactsUI 0x000000010f163f4a -[CNContactPickerHostViewController pickerDidSelectContact:property:] + 95\r\n[ERROR] : \t9 ContactsUI 0x000000010f1646e2 __71-[CNContactPickerExtensionHostContext pickerDidSelectContact:property:]_block_invoke + 66\r\n[ERROR] : \t10 libdispatch.dylib 0x0000000114a0adf5 _dispatch_call_block_and_release + 12\r\n[ERROR] : \t11 libdispatch.dylib 0x0000000114a264a7 _dispatch_client_callout + 8\r\n[ERROR] : \t12 libdispatch.dylib 0x0000000114a10fc9 _dispatch_main_queue_callback_4CF + 714\r\n[ERROR] : \t13 CoreFoundation 0x0000000113d703e9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9\r\n[ERROR] : \t14 CoreFoundation 0x0000000113d31939 __CFRunLoopRun + 2073\r\n[ERROR] : \t15 CoreFoundation 0x0000000113d30e98 CFRunLoopRunSpecific + 488\r\n[ERROR] : \t16 GraphicsServices 0x0000000115141ad2 GSEventRunModal + 161\r\n[ERROR] : \t17 UIKit 0x00000001103d8676 UIApplicationMain + 171\r\n[ERROR] : \t18 test 0x000000010e51fef6 main + 310\r\n[ERROR] : \t19 libdyld.dylib 0x0000000114a5592d start + 1\r\n[ERROR] : \t20 ??? 0x0000000000000001 0x0 + 1\r\n[ERROR] : )\r\n[ERROR] : libc++abi.dylib: terminating with uncaught exception of type NSException\r\n\r\nI also tested it it with SDK 5.0.0GA and SDK 5.1.0.v20150929021233\r\nAnd also with several Simulators and a real iPhone6-device with the same error.\r\n\r\nAny suggestions?\r\n\r\nFab\r\n", "updateAuthor": { "name": "geekme", "key": "geekme", "displayName": "Fab", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-02T12:10:49.000+0000", "updated": "2015-10-02T12:10:49.000+0000" }, { "id": "370333", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "This is working as expected in iPhone6s Plus simulator (9.1) and iPad (8.4) device. I have tested with SDK 5.0.2.GA, 5.1.0.v20151023172822. I have attached a screenshot of the output in iPhone6s Plus simulator (9.1). My Appcelerator studio build is 4.3.3.201510212245. Thanks.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-16T08:56:38.000+0000", "updated": "2015-11-21T18:52:30.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }