{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/915","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/915/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/915/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/915/events","html_url":"https://github.com/couchbase/couchbase-lite-ios/issues/915","id":107219630,"number":915,"title":"Pull replication does not work because of memory leak","user":{"login":"roundandround","id":14348939,"avatar_url":"https://avatars.githubusercontent.com/u/14348939?v=3","gravatar_id":"","url":"https://api.github.com/users/roundandround","html_url":"https://github.com/roundandround","followers_url":"https://api.github.com/users/roundandround/followers","following_url":"https://api.github.com/users/roundandround/following{/other_user}","gists_url":"https://api.github.com/users/roundandround/gists{/gist_id}","starred_url":"https://api.github.com/users/roundandround/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roundandround/subscriptions","organizations_url":"https://api.github.com/users/roundandround/orgs","repos_url":"https://api.github.com/users/roundandround/repos","events_url":"https://api.github.com/users/roundandround/events{/privacy}","received_events_url":"https://api.github.com/users/roundandround/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/labels/needsmoreinfo","name":"needsmoreinfo","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-18T15:02:24Z","updated_at":"2015-09-23T08:35:33Z","closed_at":null,"body":"Hi, \r\n\r\nI'm trying to debug the issue with memory use while setting up the pull replication. The app crashes with out of memory error while syncing 16,000 documents with a few fields from CouchDB.\r\n\r\nHere is what I see when I try to profile it with Instruments:\r\n\r\n```\r\nGraph\t Category\t# Persistent\tPersistent Bytes\r\n1\tAll Heap & Anonymous VM\t4865\t25.82 MB\r\n0\tAll Heap Allocations\t4816\t611.45 KB\r\n0\tAll Anonymous VM\t49\t25.22 MB\t32\t28.80 MB\r\n0\tVM: Performance tool data\t47\t24.97 MB\r\n0\tVM: SQLite page cache\t2\t256.00 KB\r\n0\tMalloc 4.00 KB\t52\t208.00 KB\r\n0\tCFString (immutable)\t2184\t123.25 KB\r\n0\tMalloc 272 Bytes\t188\t49.94 KB\r\n```\r\n\r\nVM: Performance tool data is growing all the time.\r\n\r\n```\r\n#\tAddress\tCategory\tTimestamp\tLive\tSize\tResponsible Library\tResponsible Caller\r\n0\t0x10f05c000\tVM: Performance tool data\t00:02.125.818\t•\t544.00 KB\tlibBacktraceRecording.dylib\t0x100785def\r\n1\t0x10f414000\tVM: Performance tool data\t00:02.682.811\t•\t544.00 KB\tlibBacktraceRecording.dylib\t0x100785def\r\n2\t0x10f49c000\tVM: Performance tool data\t00:03.030.327\t•\t544.00 KB\tlibBacktraceRecording.dylib\t0x100785def\r\n3\t0x10f524000\tVM: Performance tool data\t00:03.781.106\t•\t544.00 KB\tlibBacktraceRecording.dylib\t0x100785def\r\n4\t0x10f5ac000\tVM: Performance tool data\t00:04.306.877\t•\t544.00 KB\tlibBacktraceRecording.dylib\t0x100785def\r\n```\r\n\r\nI honestly don't know what should be my next steps. Do you have any pointers what this could be related to? Could not find any info on libBacktraceRecording.dylib\r\n\r\nHave you seen this before? If not I can make an example that reproduces this problem.\r\n\r\nCouchbaseLite/1.1.0 (iOS)\r\nApache CouchDB 1.6.1\r\n\r\n![screen shot 2015-09-18 at 17 00 54](https://cloud.githubusercontent.com/assets/14348939/9962619/ef1de326-5e26-11e5-9c29-80f984416e77.png)\r\n"},"comment":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/comments/142529804","html_url":"https://github.com/couchbase/couchbase-lite-ios/issues/915#issuecomment-142529804","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/915","id":142529804,"user":{"login":"roundandround","id":14348939,"avatar_url":"https://avatars.githubusercontent.com/u/14348939?v=3","gravatar_id":"","url":"https://api.github.com/users/roundandround","html_url":"https://github.com/roundandround","followers_url":"https://api.github.com/users/roundandround/followers","following_url":"https://api.github.com/users/roundandround/following{/other_user}","gists_url":"https://api.github.com/users/roundandround/gists{/gist_id}","starred_url":"https://api.github.com/users/roundandround/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roundandround/subscriptions","organizations_url":"https://api.github.com/users/roundandround/orgs","repos_url":"https://api.github.com/users/roundandround/repos","events_url":"https://api.github.com/users/roundandround/events{/privacy}","received_events_url":"https://api.github.com/users/roundandround/received_events","type":"User","site_admin":false},"created_at":"2015-09-23T08:35:33Z","updated_at":"2015-09-23T08:35:33Z","body":"These are default project settings, nothing custom."}}