{ "id": "109717", "key": "AC-2713", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2013-04-05T19:28:42.000+0000", "created": "2013-02-14T16:39:16.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:49.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Some simple backbone code is causing the error \"Failed adding to JNI local ref table (has 512 entries) error\".\r\n\r\nvar Note = Backbone.Model.extend({});\r\nvar NoteCollection = Backbone.Collection.extend({\r\n model: Note\r\n});\r\n \r\nvar noteCollection = new NoteCollection();\r\n \r\nnoteCollection.on('reset', function() {\r\n alert(noteCollection);\r\n});\r\n \r\nsetTimeout(function() {\r\n noteCollection.reset([{foo: 'bar'}]);\r\n}, 5000);\r\n\r\nError occurs with a regular project including backbone.js and also occurs using Alloy", "attachment": [], "flagged": false, "summary": "Android, Backbone and Failed adding to JNI local ref table (has 512 entries) error", "creator": { "name": "btoc007", "key": "btoc007", "displayName": "Brian OConnor", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "btoc007", "key": "btoc007", "displayName": "Brian OConnor", "active": true, "timeZone": "America/New_York" }, "environment": "Android 2.2\r\nSDK 3.0.0.GA", "comment": { "comments": [ { "id": "238593", "author": { "name": "btoc007", "key": "btoc007", "displayName": "Brian OConnor", "active": true, "timeZone": "America/New_York" }, "body": "I have simplified the test case to:\n\n\tvar Note = Backbone.Model.extend({});\n\tvar NoteCollection = Backbone.Collection.extend({\n\t model: Note\n\t});\n\t \n\tvar noteCollection = new NoteCollection();\n\tnoteCollection.add([{foo: 'bar'}]);\n\talert(noteCollection);", "updateAuthor": { "name": "btoc007", "key": "btoc007", "displayName": "Brian OConnor", "active": true, "timeZone": "America/New_York" }, "created": "2013-02-14T19:31:07.000+0000", "updated": "2013-02-14T19:31:07.000+0000" }, { "id": "246020", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Brian,\nWhen reporting bugs please make sure that the test case is reproducible. As in it should be able to be simply copy and pasted into an app.js and run. Also be sure to provide important headers with information like: problem, steps to reproduce, expected behavior, actual behavior and of course, the test case. Please refer to:\nhttps://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report\non how a correct bug report should be written.\nRegards,\nCarter", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-05T19:27:01.000+0000", "updated": "2013-04-05T19:27:01.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }