{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/1694","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1694/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1694/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1694/events","html_url":"https://github.com/realm/realm-cocoa/pull/1694","id":64652504,"number":1694,"title":"Forcibly deallocate leaked RLMRealms in Swift tests","user":{"login":"tgoyne","id":408944,"avatar_url":"https://avatars.githubusercontent.com/u/408944?v=3","gravatar_id":"","url":"https://api.github.com/users/tgoyne","html_url":"https://github.com/tgoyne","followers_url":"https://api.github.com/users/tgoyne/followers","following_url":"https://api.github.com/users/tgoyne/following{/other_user}","gists_url":"https://api.github.com/users/tgoyne/gists{/gist_id}","starred_url":"https://api.github.com/users/tgoyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgoyne/subscriptions","organizations_url":"https://api.github.com/users/tgoyne/orgs","repos_url":"https://api.github.com/users/tgoyne/repos","events_url":"https://api.github.com/users/tgoyne/events{/privacy}","received_events_url":"https://api.github.com/users/tgoyne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-26T23:01:04Z","updated_at":"2015-03-26T23:09:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/realm/realm-cocoa/pulls/1694","html_url":"https://github.com/realm/realm-cocoa/pull/1694","diff_url":"https://github.com/realm/realm-cocoa/pull/1694.diff","patch_url":"https://github.com/realm/realm-cocoa/pull/1694.patch"},"body":"Leaking RLMRealms in assertThrows eventually results in us hitting GCD's thread limit, and then dispatch_async() stops actually doing anything and we don't get any change notifications for newly opened Realms, resulting in the tests added in https://github.com/realm/realm-cocoa/pull/1686 hanging.\r\n\r\nWe also were somewhat close to hitting the per-process open file limit on iOS (which is 256 by default).\r\n\r\n@alazier @segiddins "},"comment":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/comments/86749989","html_url":"https://github.com/realm/realm-cocoa/pull/1694#issuecomment-86749989","issue_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1694","id":86749989,"user":{"login":"segiddins","id":1946610,"avatar_url":"https://avatars.githubusercontent.com/u/1946610?v=3","gravatar_id":"","url":"https://api.github.com/users/segiddins","html_url":"https://github.com/segiddins","followers_url":"https://api.github.com/users/segiddins/followers","following_url":"https://api.github.com/users/segiddins/following{/other_user}","gists_url":"https://api.github.com/users/segiddins/gists{/gist_id}","starred_url":"https://api.github.com/users/segiddins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segiddins/subscriptions","organizations_url":"https://api.github.com/users/segiddins/orgs","repos_url":"https://api.github.com/users/segiddins/repos","events_url":"https://api.github.com/users/segiddins/events{/privacy}","received_events_url":"https://api.github.com/users/segiddins/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T23:09:59Z","updated_at":"2015-03-26T23:09:59Z","body":":+1: it was only a matter of time before we had a forceable `dealloc` somewhere in the repo :)"}}