Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10889] iOS: setting remoteBackup to false leads to memory leaks

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2014-03-26T20:23:37.000+0000
Affected Version/sRelease 2.1.2
Fix Version/sn/a
ComponentsiOS
Labelsapi, exalture, supportTeam
ReporterDavide Cassenti
AssigneeIngo Muschenetz
Created2012-09-13T03:05:04.000+0000
Updated2017-03-21T22:06:43.000+0000

Description

Problem description

Setting a database file so that it is not backed up remotely leads to memory leaks in the app.

Steps to reproduce

- Create an app.js with the following code:
(function() {
var db = Ti.Database.open("somedb");
db.file.remoteBackup = false; // comment this line and leaks disappears
db.close();
db = null;
}());
- Run the app using XCode profiling, and open the Instruments tool to check leaks - Wait ~1 minute and the following leaks are shown:
TiFilesystemFileProxy
NSFileManager
NSPathStore2
- Comment the remoteBackup line and leaks won't show up.

Comments

  1. Ingo Muschenetz 2014-03-26

    Resolving as cannot reproduce. Needs confirmation by QE before closing.
  2. Lee Morris 2017-03-21

    Closing ticket as the issue cannot be reproduced and due to the above comments.

JSON Source