{ "id": "160431", "key": "AC-3649", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2016-06-07T19:26:42.000+0000", "created": "2016-05-23T15:45:50.000+0000", "labels": [ "ios" ], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-06-07T19:26:42.000+0000", "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" } }, "components": [ { "id": "14552", "name": "Appcelerator CLI", "description": "Please enter tickets related to Tooling and the CLI here" }, { "id": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "The Error below occurs for certain contacts in the contact list . This throw a red error screen on the device. But no error in the simulator. The app runs fine in the simulator but with warnings. But it breaks on the device. I have not seen this error on a device running iOS8, but any device running iOS 9 and above is breaking. \r\n------------------------------------------------------------------\r\n{code:java}\r\nvar singleValue = [ 'firstName', 'middleName', 'lastName', 'fullName', 'prefix', 'suffix', \r\n 'nickname', 'firstPhonetic', 'middlePhonetic', 'lastPhonetic', 'organization', \r\n 'jobTitle', 'department', 'note', \r\n 'birthday', \r\n 'created', \r\n 'modified', \r\n 'kind'\r\n ];\r\nvar multiValue = [\r\n 'email', 'address', 'phone', 'instantMessage', 'relatedNames', 'date', 'url'\r\n ];\r\nfunction getAllContacts(){\r\n var people = Ti.Contacts.getAllPeople();\r\nvar rawCollection = [];\r\n\tfor (var i=0, ilen=people.length; i + 116\r\n[ERROR] : \t1 CoreFoundation 0x00000001836b14dc + 76\r\n[ERROR] : \t2 MiabeApp 0x0000000100148b54 MiabeApp + 691028\r\n[ERROR] : \t3 MiabeApp 0x00000001001493fc MiabeApp + 693244\r\n[ERROR] : \t4 MiabeApp 0x000000010015ffb0 MiabeApp + 786352\r\n[ERROR] : \t5 MiabeApp 0x00000001001603b4 MiabeApp + 787380\r\n[ERROR] : \t6 MiabeApp 0x00000001001601bc MiabeApp + 786876\r\n[ERROR] : \t7 libdispatch.dylib 0x00000001831c54bc + 24\r\n[ERROR] : \t8 libdispatch.dylib 0x00000001831c547c + 16\r\n[ERROR] : \t9 libdispatch.dylib 0x00000001831cab84 _dispatch_main_queue_callback_4CF + 1844\r\n[ERROR] : \t10 CoreFoundation 0x0000000183730d50 + 12\r\n[ERROR] : \t11 CoreFoundation 0x000000018372ebb8 + 1628\r\n[ERROR] : \t12 CoreFoundation 0x0000000183658c50 CFRunLoopRunSpecific + 384\r\n[ERROR] : \t13 GraphicsServices 0x0000000184f40088 GSEventRunModal + 180\r\n[ERROR] : \t14 UIKit 0x0000000188942088 UIApplicationMain + 204\r\n[ERROR] : \t15 MiabeApp 0x00000001000a84b4 MiabeApp + 33972\r\n[ERROR] : \t16 libdyld.dylib 0x00000001831f68b8 + 4\r\n[ERROR] : ){color}\r\n\r\n{color:#d04437}[ERROR] : Script Error {\r\n[ERROR] : column = 759;\r\n[ERROR] : line = 1;\r\n[ERROR] : message = \"*** -[NSPlaceholderString initWithString:]: nil argument\";\r\n[ERROR] : sourceURL = \"file:///var/containers/Bundle/Application/76E58298-EFAD-4F5E-A4BC-3E70E2BF6611/MiabeApp.app/alloy/controllers/mycode/index.js\";\r\n[ERROR] : stack = \"t@file:///var/containers/Bundle/Application/76E58298-EFAD-4F5E-A4BC-3E70E2BF6611/MiabeApp.app/alloy/controllers/mycode/index.js:1:759\\nselectedPerson@file:///var/containers/Bundle/Application/76E58298-EFAD-4F5E-A4BC-3E70E2BF6611/MiabeApp.app/alloy/controllers/mycode/index.js:1:2665\";\r\n[ERROR] : }{color}", "attachment": [ { "id": "59361", "filename": "IMG_4620.PNG", "author": { "name": "yaovik", "key": "yaovik", "displayName": "Yaovi Kwasi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-23T15:45:18.000+0000", "size": 78779, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Getting Custom fields for phone, address and email from Ti.Contacts.getAllPeople() throws error screen ", "creator": { "name": "yaovik", "key": "yaovik", "displayName": "Yaovi Kwasi", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "yaovik", "key": "yaovik", "displayName": "Yaovi Kwasi", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "CLI : 5.2.0, 5.2.2\r\nSDK: 5.2.0.GA, 5.2.2.GA\r\niOS 9 and above \r\n", "comment": { "comments": [ { "id": "387083", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~cng] That looks very familiar to earlier contacts issues we had.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-05-28T18:59:37.000+0000", "updated": "2016-05-28T18:59:37.000+0000" }, { "id": "387093", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-30T01:54:15.000+0000", "updated": "2016-05-30T01:54:15.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }