{ "id": "115361", "key": "TIMOB-14082", "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": "15499", "description": "2013 Sprint 13 API", "name": "2013 Sprint 13 API", "archived": true, "released": true, "releaseDate": "2013-07-01" }, { "id": "15111", "description": "2013 Sprint 13", "name": "2013 Sprint 13", "archived": true, "released": true, "releaseDate": "2013-07-01" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-07-01T21:05:28.000+0000", "created": "2013-06-03T11:06:08.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T17:51:45.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": "h2. Problem description\r\n\r\nTrying to get from an HttpClient call a big anmount of XML data fails with Out of Memory error.\r\n\r\nh2. Steps to reproduce\r\nUsing an xhr request, get a big xml file (tested on Emulator with ~6MB). The following code will show the problem:\r\n\r\n{code}\r\nvar xhrDocument = Ti.Network.createHTTPClient({\r\n\tonload: function() {\r\n\t\tvar ResponseXML = xhrDocument.getResponseXML();\r\n\t\tvar ResponseData = ResponseXML.getElementsByTagName('GetDocResult').item(0).text;\r\n\t\tvar decodeData = Ti.Utils.base64decode(ResponseData);\r\n\t\t\r\n\t\talert('Done');\r\n\t}\r\n});\r\n\r\nxhrDocument.open('GET', 'test.xml');\r\nxhrDocument.send();\r\n{code}", "attachment": [ { "id": "40000", "filename": "test.xml.zip", "author": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-19T13:45:30.000+0000", "size": 2018737, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: cannot parse big XML data - getting \"out of memory\" error", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android\r\nSDK 3.1.0\r\nSamsung Galaxy S2 and S3", "comment": { "comments": [ { "id": "260486", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Workaround provided", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-07-01T21:05:28.000+0000", "updated": "2013-07-01T21:05:28.000+0000" }, { "id": "414814", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix and with reference to the above comments. A workaround is provided above.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T17:51:45.000+0000", "updated": "2017-03-22T17:51:45.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }