{ "id": "103066", "key": "TIMOB-11358", "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": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14165", "description": "2012 Sprint 21 API", "name": "2012 Sprint 21 API", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "14273", "description": "2012 Sprint 21", "name": "2012 Sprint 21", "archived": true, "released": true, "releaseDate": "2012-10-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-14T22:37:13.000+0000", "created": "2012-10-10T19:10:31.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_filesystem", "qe-manualtest", "qe-port", "triage" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-08-14T22:37:13.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": "Many calls to getFile with the application data directory causes the local reference table overflow error. It works fine on android 2.3.4 and 3.1, but on android 4.0.1 and 4.1 it stops after the 504 calls. \r\nh4. Repo Steps\r\n1. Run the below code in your app.js\r\n2. Open the DDMS and you can see that it stops at 504 call and gives the above error.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : \"red\"\r\n})\r\nfor (var i = 0; i < 512; i++) {\r\n\r\n\tTi.API.info(i);\r\n\tvar dir = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, \"test\");\r\n\r\n};\r\nwin.open();\r\n{code}", "attachment": [ { "id": "32510", "filename": "crash_log.rtf", "author": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-10T22:01:43.000+0000", "size": 12675, "mimeType": "text/rtf" } ], "flagged": false, "summary": "Android: Many calls to getFIle causes local reference table overflow", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Motorola Xoom\r\nandroid 4.0.1\r\nTi SDK 2.1.3.GA", "closedSprints": [ { "id": 3, "state": "closed", "name": "Release 3.0.0", "startDate": "2012-09-27T05:26:46.636Z", "endDate": "2012-10-08T20:05:00.000Z", "completeDate": "2012-12-20T17:03:19.403Z" } ], "comment": { "comments": [ { "id": "223438", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Created [PR #3221|https://github.com/appcelerator/titanium_mobile/pull/3221] to resolve issue in master.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-13T23:07:08.000+0000", "updated": "2012-10-13T23:07:08.000+0000" }, { "id": "223467", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Need to backport to 2_1_X branch.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-14T13:01:01.000+0000", "updated": "2012-10-14T13:01:01.000+0000" }, { "id": "223504", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Created [PR #3230|https://github.com/appcelerator/titanium_mobile/pull/3230] to back port fix into 3.0 release.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-14T23:51:14.000+0000", "updated": "2012-10-14T23:51:14.000+0000" }, { "id": "224169", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I don't believe we have a 2.1.X backport PR yet. Could you please generate that?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-18T13:09:13.000+0000", "updated": "2012-10-18T13:09:13.000+0000" }, { "id": "224817", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "2.1.X PR: https://github.com/appcelerator/titanium_mobile/pull/3316", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-24T17:43:58.000+0000", "updated": "2012-10-24T17:43:58.000+0000" }, { "id": "225858", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 2.1.4.v20121030173408 on Droid 3 2.3.4", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-01T20:50:57.000+0000", "updated": "2012-11-01T20:50:57.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }