{ "id": "100995", "key": "TIMOB-10889", "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": [], "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": "2014-03-26T20:23:37.000+0000", "created": "2012-09-13T03:05:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "exalture", "supportTeam" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T22:06:43.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h2. Problem description\r\nSetting a database file so that it is not backed up remotely leads to memory leaks in the app.\r\n\r\nh2. Steps to reproduce\r\n- Create an app.js with the following code:\r\n\r\n{code}\r\n(function() {\r\nvar db = Ti.Database.open(\"somedb\");\r\ndb.file.remoteBackup = false; // comment this line and leaks disappears\r\ndb.close();\r\ndb = null;\r\n}());\r\n{code}\r\n\r\n- Run the app using XCode profiling, and open the Instruments tool to check leaks\r\n- Wait ~1 minute and the following leaks are shown:\r\n\r\n{code}\r\nTiFilesystemFileProxy\r\nNSFileManager\r\nNSPathStore2\r\n{code}\r\n\r\n- Comment the remoteBackup line and leaks won't show up.\r\n", "attachment": [], "flagged": false, "summary": "iOS: setting remoteBackup to false leads to memory leaks", "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": "SDK 2.1.2\r\niOS 5.1", "comment": { "comments": [ { "id": "298854", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving as cannot reproduce. Needs confirmation by QE before closing.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-26T20:23:37.000+0000", "updated": "2014-03-26T20:23:37.000+0000" }, { "id": "414535", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T22:06:43.000+0000", "updated": "2017-03-21T22:06:43.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }