{ "id": "154535", "key": "TIMOB-20279", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" }, { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-07-21T03:21:05.000+0000", "created": "2016-01-27T18:39:42.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "17532", "name": "Release 5.1.1", "archived": false, "released": true, "releaseDate": "2015-11-24" } ], "issuelinks": [ { "id": "51832", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "122203", "key": "TIMOB-15765", "fields": { "summary": "Android: TableView - JNI ERROR (app bug): local reference table overflow (max=512)", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "51536", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "159944", "key": "AC-3585", "fields": { "summary": "Android: Ti.Contacts.getAllPeople() has noticeably slow performance", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "51695", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "160260", "key": "TIMOB-23390", "fields": { "summary": "TIAPI: Cannot paginate Ti.Contacts.getAllPeople()", "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": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2016-07-26T16:54:16.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "I am getting the “[ERROR] dalvikvm: JNI ERROR (app bug): local reference table overflow (max=512)” issue when simply calling Ti.Contacts.getAllPeople(). Literally, that ONE line of code is causing the error.\r\n\r\n* I have 2900 contacts (and I know plenty of people with more), so I am not an abnormal use case.\r\n* I know it is this one line because I have removed any other code around it (after the permissions of course), and the call works on Android 6.0+, but does not work on versions prior to Android 6.0.\r\n* It works perfectly fine when I run it against an emulator with 0 contacts, or even 5 contacts. I suspect that it is not releasing the memory when it iterates over the contacts that it is retrieving.\r\n\r\nThe environments that I tested this on were:\r\n1. Multiple Android emulators, but they all follow the same specs (besides the screen size) as the attached image shows\r\n2. On a Galaxy S4 running Android 4.4.2\r\n\r\nHere is a snippet of the code:\r\n\r\n{code:javascript}\r\n// Get permission to access the user's contacts\r\nvar contactsAuthorizationValue = Ti.Contacts.getContactsAuthorization();\r\n\r\nif (contactsAuthorizationValue === Ti.Contacts.AUTHORIZATION_AUTHORIZED) {\r\nvar rawContacts = Ti.Contacts.getAllPeople(); // This is where the crash occurs\r\n\r\n// Do more things down here\r\n}\r\n{code}", "attachment": [ { "id": "58079", "filename": "AVD Configuration.png", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-01-27T19:35:21.000+0000", "size": 192991, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Ti.Contacts.getAllPeople() crashes with overflow on Android < 6", "creator": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "subtasks": [], "reporter": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "environment": "SDK 5.1.1.GA\r\nWorks in 5.1.2.GA and 5.2.0.GA", "closedSprints": [ { "id": 682, "state": "closed", "name": "2016 Sprint 15 SDK", "startDate": "2016-07-16T00:19:20.819Z", "endDate": "2016-07-30T00:19:00.000Z", "completeDate": "2016-08-01T04:40:11.421Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "375369", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I've heard other users who had the same thing with only 1 person in the address book so for sure this is a bug.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2016-01-27T23:51:56.000+0000", "updated": "2016-01-27T23:51:56.000+0000" }, { "id": "375379", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "Great, let me know if you need any more information provided. You guys are quick!", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-01-28T03:05:52.000+0000", "updated": "2016-01-28T03:05:52.000+0000" }, { "id": "377018", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "@Fokke / @Radamantis, this is getting to a point where it is starting to block us. Is there any update on this? Thanks guys! =)", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-02-16T21:55:51.000+0000", "updated": "2016-02-16T21:55:51.000+0000" }, { "id": "377080", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~Yrkh8trnoy] could you make sure this is still a bug using the 5.2.0 nightly?\r\n\r\n{{[appc] ti sdk install -b 5_2_X}}", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2016-02-17T08:11:49.000+0000", "updated": "2016-02-17T08:11:49.000+0000" }, { "id": "377182", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "@Fokke it seems to be working on the latest nightly build. Thank you! I will let you know if we encounter this any more.\r\n\r\nWould you be able to shed some light on the final investigation discovery, and what the fix ended up being? I'd like to be able to identify this issue a lot quicker if it happens again elsewhere.", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-02-18T07:04:10.000+0000", "updated": "2016-02-18T07:05:04.000+0000" }, { "id": "377188", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "That's good news. What SDK version did you use before? Because since 5.1.2 nothing changed on the contacts front AFAIK:\r\nhttps://github.com/appcelerator/titanium_mobile/search?l=java&q=contacts", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2016-02-18T07:44:25.000+0000", "updated": "2016-02-18T07:44:25.000+0000" }, { "id": "377351", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "We were on 5.1.1.GA! and prior to that, 5.0.2.GA. When using an earlier build of 5.2, we encountered some issues which made us retreat to 5.1.1. Thanks for checking back in!", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-02-19T09:16:45.000+0000", "updated": "2016-02-19T09:16:45.000+0000" }, { "id": "377357", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~Yrkh8trnoy] could you check if 5.1.2 also fixes it for you?", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2016-02-19T09:59:53.000+0000", "updated": "2016-02-19T09:59:53.000+0000" }, { "id": "377451", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "Sure, I will check that today. I'll check back soon.", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-02-20T18:52:44.000+0000", "updated": "2016-02-20T18:52:44.000+0000" }, { "id": "377558", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "@Fokke, it works fine on 5.1.2. Thank you!", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-02-22T22:05:58.000+0000", "updated": "2016-02-22T22:05:58.000+0000" }, { "id": "377562", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "@Fokke, belay that last message. We looked at the wrong version for that test. I'll let you know as soon as we ACTUALLY test on 5.1.2 whether it works on there or not. Sorry for jumping the gun on that.", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-02-22T22:21:39.000+0000", "updated": "2016-02-22T22:21:39.000+0000" }, { "id": "377577", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "Hi Fokke, we've verified this time that we are actually on 5.1.2.GA, and Ti.Contacts.getAllPeople() works well with ~3,000 contacts. (y)(y)", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-02-23T02:25:56.000+0000", "updated": "2016-02-23T02:25:56.000+0000" }, { "id": "384417", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "Hi Fokke,\r\n\r\nThis issue has resurfaced as of 5.2.2.GA. This is a major issue for us, any idea if the previous fixes were undone?\r\n\r\nThanks.", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-05-01T20:51:12.000+0000", "updated": "2016-05-01T20:51:12.000+0000" }, { "id": "384441", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Reopening as it appears to be a problem again in 5.2.2", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2016-05-02T10:02:34.000+0000", "updated": "2016-05-02T10:02:34.000+0000" }, { "id": "384480", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "Thanks.\r\n\r\n@Ashraf, I tested back to 5.2.0.GA, and it's still an issue. Maybe whatever fix was in the nightly build somehow was reverted prior to the GA? I don't remember what nightly build I had installed when it worked. But it seems that the only time it was truly working fine was with that nightly build.", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-05-02T17:54:23.000+0000", "updated": "2016-05-02T17:54:23.000+0000" }, { "id": "384513", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~Yrkh8trnoy] Very odd. Will line this up to get this investigated.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-05-03T01:58:17.000+0000", "updated": "2016-05-03T01:58:17.000+0000" }, { "id": "384684", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "Thanks Ashraf! Hugely important because so many people still use Android < 6, unfortunately!", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-05-04T08:41:04.000+0000", "updated": "2016-05-04T08:41:04.000+0000" }, { "id": "384702", "author": { "name": "nbannister85", "key": "nbannister85", "displayName": "Nicholas Bannister", "active": true, "timeZone": "America/Los_Angeles" }, "body": "+1 vote", "updateAuthor": { "name": "nbannister85", "key": "nbannister85", "displayName": "Nicholas Bannister", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-04T11:33:26.000+0000", "updated": "2016-05-04T11:33:26.000+0000" }, { "id": "385182", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "Is there a workaround that is suggested for this? According to the documentation (http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Contacts-method-getAllPeople) a \"limit\" that can be set on the number of contacts that I want to be retrieved, but it doesn't seem that I can page through that limit.\r\n\r\nYou see, what I was thinking could be the workaround would be to retrieve 500 contacts on each pull. Say the user has 2,000 contacts, it would take four calls to `Ti.Contacts.getAllPeople(500, )` to get all 2,000 of those contacts. That's fine by me, as a workaround for now, but it seems that I cannot currently perform such an operation.", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-05-09T20:30:21.000+0000", "updated": "2016-05-09T20:30:21.000+0000" }, { "id": "385396", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~Yrkh8trnoy] there seems to be no way to paginate indeed:\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/blob/415bd6c66dcc55b1a59a59574f3babd3c3a84ede/android/modules/contacts/src/java/ti/modules/titanium/contacts/ContactsApiLevel5.java#L224-L235\r\n\r\nCould you create a JIRA ticket to request this to be added?", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2016-05-11T10:31:15.000+0000", "updated": "2016-05-11T10:31:15.000+0000" }, { "id": "385724", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "Sure, you can see it at AC-3628", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-05-14T18:58:00.000+0000", "updated": "2016-05-14T18:58:00.000+0000" }, { "id": "386413", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "Hi folks. Any updates on this? Thanks!", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-05-22T22:28:54.000+0000", "updated": "2016-05-22T22:28:54.000+0000" }, { "id": "388209", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~cng] [~hpham] how is this issue a duplicate of TIMOB-15765? I don't see how.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2016-06-13T14:17:28.000+0000", "updated": "2016-06-13T14:17:28.000+0000" }, { "id": "389419", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "Hi folks, it's been about two weeks since Fokke commented and we still do not know why this was marked as \"Resolve\" as a duplicate of TIMOB-15765. I'm not sure what to do here as this blocks our ability to reliably retrieve contacts in our application, which is a blocker for us releasing our application to the public.\r\n\r\nFurthermore, there has been absolutely no movement since June 8 on TIMOB-15765, so that one seems to be stagnant as well.\r\n\r\nCan you PLEASE provide an update as your investigation into this, and when you can have this fixed?", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-06-29T18:23:22.000+0000", "updated": "2016-06-29T18:23:22.000+0000" }, { "id": "389511", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "You are right, not sure how this is a duplicate of this. Reopening this ticket.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-06-30T01:56:35.000+0000", "updated": "2016-06-30T01:56:35.000+0000" }, { "id": "389994", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "Thanks Ashraf. What are your targeted plans on getting this resolved?\r\n\r\nCan you share some of the underlying issues that you have found that may be causing this?\r\n\r\nAre there any PRs that we could look at that may have tried to resolve this?", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-07-06T20:42:18.000+0000", "updated": "2016-07-06T20:42:18.000+0000" }, { "id": "390023", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~Yrkh8trnoy]\r\nI'm trying this out but not able to reproduce the crash.\r\n\r\nThe test code that I've been using is:-\r\n{code}\r\nTi.UI.backgroundColor = 'white'; \r\nvar win = Ti.UI.createWindow({ \r\n exitOnClose : true, \r\n layout : 'vertical' \r\n}); \r\n\r\nvar button = Titanium.UI.createButton({\r\n title: 'Get Contacts Here',\r\n top: 60\r\n});\r\n\r\nwin.add(button);\r\n\r\nwin.open(); \r\n\r\nvar performAddressBookFunction = function(){\r\n\tvar singleValue = [\r\n\t 'recordId', 'firstName', 'middleName', 'lastName', 'fullName', 'prefix', 'suffix', \r\n\t 'nickname', 'firstPhonetic', 'middlePhonetic', 'lastPhonetic', 'organization', \r\n\t 'jobTitle', 'department', 'note', 'birthday', 'created', 'modified', 'kind'\r\n\t];\r\n\tvar multiValue = [\r\n\t 'email', 'address', 'phone', 'instantMessage', 'relatedNames', 'date', 'url'\r\n\t];\r\n\tvar people = Ti.Contacts.getAllPeople();\r\n\tTi.API.info('Total contacts: ' + people.length);\r\n\t\r\n\t\r\n\tfor (var i=0, ilen=people.length; i>> com.titanium.test <<<\r\nI/DEBUG ( 928): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------\r\nD/dalvikvm( 1559): GC_FOR_ALLOC freed 253K, 27% free 3897K/5308K, paused 14ms, total 14ms\r\nE/NativeCrashListener( 1268): Exception dealing with report\r\nE/NativeCrashListener( 1268): libcore.io.ErrnoException: read failed: EAGAIN (Try again)\r\nE/NativeCrashListener( 1268): \tat libcore.io.Posix.readBytes(Native Method)\r\nE/NativeCrashListener( 1268): \tat libcore.io.Posix.read(Posix.java:128)\r\nE/NativeCrashListener( 1268): \tat libcore.io.BlockGuardOs.read(BlockGuardOs.java:149)\r\nE/NativeCrashListener( 1268): \tat com.android.server.am.NativeCrashListener.consumeNativeCrashData(NativeCrashListener.java:240)\r\nE/NativeCrashListener( 1268): \tat com.android.server.am.NativeCrashListener.run(NativeCrashListener.java:138)\r\nI/DEBUG ( 928): eax 00000000 ebx 00000c07 ecx 00000c16 edx 00000006\r\nI/DEBUG ( 928): AM write failure (32 / Broken pipe)\r\nI/DEBUG ( 928): esi 00000c16 edi 00000002\r\nI/DEBUG ( 928): xcs 00000073 xds 0000007b xes 0000007b xfs 00000000 xss 0000007b\r\nI/DEBUG ( 928): eip b766ac96 ebp b76cfce0 esp 8b8eefc0 flags 00200207\r\nI/DEBUG ( 928): \r\nI/DEBUG ( 928): backtrace:\r\nI/DEBUG ( 928): #00 pc 0003bc96 /system/lib/libc.so (tgkill+22)\r\nI/DEBUG ( 928): #01 pc 00000005 \r\nI/DEBUG ( 928): \r\nI/DEBUG ( 928): stack:\r\nI/DEBUG ( 928): 8b8eef80 00000000 \r\nI/DEBUG ( 928): 8b8eef84 b76cb268 /system/lib/libc.so\r\nI/DEBUG ( 928): 8b8eef88 00000000 \r\nI/DEBUG ( 928): 8b8eef8c b763cef9 /system/lib/libc.so (pthread_mutex_unlock+25)\r\nI/DEBUG ( 928): 8b8eef90 b76cb18c /system/lib/libc.so\r\nI/DEBUG ( 928): 8b8eef94 b92b0660 [heap]\r\nI/DEBUG ( 928): 8b8eef98 00000015 \r\nI/DEBUG ( 928): 8b8eef9c b763cef9 /system/lib/libc.so (pthread_mutex_unlock+25)\r\nI/DEBUG ( 928): 8b8eefa0 00000000 \r\nI/DEBUG ( 928): 8b8eefa4 b7689656 /system/lib/libc.so (funlockfile+6)\r\nI/DEBUG ( 928): 8b8eefa8 b76cafcc /system/lib/libc.so\r\nI/DEBUG ( 928): 8b8eefac b7674c76 /system/lib/libc.so (__sflush_locked+150)\r\nI/DEBUG ( 928): 8b8eefb0 00000000 \r\nI/DEBUG ( 928): 8b8eefb4 00000000 \r\nI/DEBUG ( 928): 8b8eefb8 b763cd29 /system/lib/libc.so (pthread_mutex_lock+9)\r\nI/DEBUG ( 928): 8b8eefbc b76cafcc /system/lib/libc.so\r\nI/DEBUG ( 928): #00 8b8eefc0 00000006 \r\nI/DEBUG ( 928): 8b8eefc4 00000c16 \r\nI/DEBUG ( 928): 8b8eefc8 b76cafcc /system/lib/libc.so\r\nI/DEBUG ( 928): 8b8eefcc b7647436 /system/lib/libc.so (pthread_kill+102)\r\nI/DEBUG ( 928): 8b8eefd0 00000c07 \r\nI/DEBUG ( 928): 8b8eefd4 00000c16 \r\nI/DEBUG ( 928): 8b8eefd8 00000006 \r\nI/DEBUG ( 928): 8b8eefdc 00000000 \r\nI/DEBUG ( 928): 8b8eefe0 b76cb268 /system/lib/libc.so\r\nI/DEBUG ( 928): 8b8eefe4 b4e16e41 /system/lib/libdvm.so\r\nI/DEBUG ( 928): 8b8eefe8 b76473d9 /system/lib/libc.so (pthread_kill+9)\r\nI/DEBUG ( 928): 8b8eefec b76cafcc /system/lib/libc.so\r\nI/DEBUG ( 928): 8b8eeff0 8b8ef03c [stack:3094]\r\nI/DEBUG ( 928): 8b8eeff4 8b8ef27c [stack:3094]\r\nI/DEBUG ( 928): 8b8eeff8 b93aaf38 [heap]\r\nI/DEBUG ( 928): 8b8eeffc b76477fc /system/lib/libc.so (raise+44)\r\nD/Zygote ( 931): Process 3079 terminated by signal (6)\r\n{code}", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-07-07T07:39:13.000+0000", "updated": "2016-07-07T07:39:13.000+0000" }, { "id": "390026", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Will probably carry out the solution/workaround for pagination.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-07-07T07:53:30.000+0000", "updated": "2016-07-07T07:53:30.000+0000" }, { "id": "390044", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "Yep, that's the exact crash that we have experienced as well.", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-07-07T15:26:00.000+0000", "updated": "2016-07-07T15:26:00.000+0000" }, { "id": "390918", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "@ashraf, is there a hyperloop workaround for this, possibly?", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-07-18T16:52:34.000+0000", "updated": "2016-07-18T16:52:34.000+0000" }, { "id": "390968", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~Yrkh8trnoy] There's no hyperloop workaround for this at the moment.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-07-19T01:51:26.000+0000", "updated": "2016-07-19T01:51:26.000+0000" }, { "id": "391160", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "This was fixed by TIMOB-15765", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-07-21T03:21:39.000+0000", "updated": "2016-07-21T03:21:39.000+0000" }, { "id": "391304", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Hi [~Yrkh8trnoy] ,\r\n\r\nI've been investigating this issue in an attempt to verify that the fix is valid, however I am unable to reproduce the crash that you are experiencing using a 4.4.2 Android device, and SDK version 5.2.2.GA. Additionally, I created ~4,000 contacts on the device to see if that would cause the crash, but still could not reproduce.\r\n\r\nIf it is not inconvenient for you, could you please try the latest 5.4.0 version and let me know if you are still experiencing the crashes? This can be obtained by using: {{appc ti sdk install -b 5_4_X)}}\r\n\r\nThanks in advance,\r\n\r\n_Harry Bryant - Quality Engineering_", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-07-22T17:17:06.000+0000", "updated": "2016-07-22T17:20:04.000+0000" }, { "id": "391397", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Ran {{appc ti sdk install -b 5_4_X}} that installed {{5.4.0.v20160724194540}}\r\n\r\nNo Errors. Everything works correctly as mentioned in TIMOB-15765 using Android 4.4.2\r\n\r\nAdding the test code that was used for testing here:\r\n{code}\r\n\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow({\r\n exitOnClose : true,\r\n layout : 'vertical'\r\n});\r\n\r\nvar button = Titanium.UI.createButton({\r\n title : 'Get Contacts Here',\r\n top : 60\r\n});\r\n\r\nwin.add(button);\r\n\r\nwin.open();\r\n\r\nvar performAddressBookFunction = function() {\r\n var singleValue = ['recordId', 'firstName', 'middleName', 'lastName', 'fullName', 'prefix', 'suffix', 'nickname', 'firstPhonetic', 'middlePhonetic', 'lastPhonetic', 'organization', 'jobTitle', 'department', 'note', 'birthday', 'created', 'modified', 'kind'];\r\n var multiValue = ['email', 'address', 'phone', 'instantMessage', 'relatedNames', 'date', 'url'];\r\n var people = Ti.Contacts.getAllPeople();\r\n Ti.API.info('Total contacts: ' + people.length);\r\n\r\n for (var i = 0,\r\n ilen = people.length; i < ilen; i++) {\r\n Ti.API.info('---------------------' + i);\r\n\r\n var person = people[i];\r\n if (person != null) {\r\n var firstname = person.firstName || \"Null\";\r\n var lastname = person.lastName || \"Null\";\r\n Ti.API.info(firstname + \"-\" + lastname);\r\n } else {\r\n Ti.API.info(\"Person is null at\" + i);\r\n }\r\n }\r\n\r\n};\r\nvar addressBookDisallowed = function() {\r\n alert(\"Not Allowed\");\r\n};\r\n\r\nbutton.addEventListener('click', function(e) {\r\n if (Ti.Contacts.hasContactsPermissions()) {\r\n performAddressBookFunction();\r\n } else {\r\n Ti.Contacts.requestContactsPermissions(function(e) {\r\n if (e.success) {\r\n performAddressBookFunction();\r\n } else {\r\n addressBookDisallowed();\r\n }\r\n });\r\n }\r\n});\r\n{code}", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-07-25T07:47:36.000+0000", "updated": "2016-07-25T07:48:32.000+0000" }, { "id": "391470", "author": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "body": "Thanks Ashraf.\r\n\r\nHarry, it was fixed in the latest 5.4.X build that we tried thanks to the ticket (and embedded PR) that Ashraf mentioned.\r\n\r\nThe underlying issue itself was fixed by Chris Williams, so I don't believe it will pop up again in the future (fingers crossed!!!!)", "updateAuthor": { "name": "Yrkh8trnoy", "key": "yrkh8trnoy", "displayName": "Kiley Williams", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-07-26T00:50:44.000+0000", "updated": "2016-07-26T00:50:44.000+0000" }, { "id": "391520", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Thank you for your feedback [~Yrkh8trnoy], glad to know that your issue has been resolved.\r\n\r\nTested On:\r\nAndroid Samsung Galaxy S5 (4.4.2) Device\r\nMac OSX El Capitan 10.11.5 \r\nTi SDK: 5.4.0.v20160725003348\r\nAppc Studio: 4.7.0.201607111053\r\nAppc NPM: 4.2.7\t\r\nApp CLI: 5.4.0-34\r\nXcode 7.3\r\nNode v4.4.7\r\n\r\n*Closing ticket.*\r\n", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-07-26T16:54:04.000+0000", "updated": "2016-07-26T16:54:04.000+0000" } ], "maxResults": 42, "total": 42, "startAt": 0 } } }