{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/1812","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1812/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1812/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1812/events","html_url":"https://github.com/realm/realm-cocoa/issues/1812","id":72166521,"number":1812,"title":"Freeze if you save nil property in not main thread","user":{"login":"ako2009","id":1116051,"avatar_url":"https://avatars.githubusercontent.com/u/1116051?v=3","gravatar_id":"","url":"https://api.github.com/users/ako2009","html_url":"https://github.com/ako2009","followers_url":"https://api.github.com/users/ako2009/followers","following_url":"https://api.github.com/users/ako2009/following{/other_user}","gists_url":"https://api.github.com/users/ako2009/gists{/gist_id}","starred_url":"https://api.github.com/users/ako2009/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ako2009/subscriptions","organizations_url":"https://api.github.com/users/ako2009/orgs","repos_url":"https://api.github.com/users/ako2009/repos","events_url":"https://api.github.com/users/ako2009/events{/privacy}","received_events_url":"https://api.github.com/users/ako2009/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"jpsim","id":474794,"avatar_url":"https://avatars.githubusercontent.com/u/474794?v=3","gravatar_id":"","url":"https://api.github.com/users/jpsim","html_url":"https://github.com/jpsim","followers_url":"https://api.github.com/users/jpsim/followers","following_url":"https://api.github.com/users/jpsim/following{/other_user}","gists_url":"https://api.github.com/users/jpsim/gists{/gist_id}","starred_url":"https://api.github.com/users/jpsim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpsim/subscriptions","organizations_url":"https://api.github.com/users/jpsim/orgs","repos_url":"https://api.github.com/users/jpsim/repos","events_url":"https://api.github.com/users/jpsim/events{/privacy}","received_events_url":"https://api.github.com/users/jpsim/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-04-30T13:45:15Z","updated_at":"2015-05-04T15:53:55Z","closed_at":"2015-05-04T15:53:55Z","body":"1) Write RLMObject with nil property in any thread, but not the main thread where the database was initialized.\r\n\r\n    RLMRealm* realm = [RLMRealm defaultRealm];\r\n    [realm beginWriteTransaction];\r\n    [realm addObject:obj];\r\n    [realm commitWriteTransaction];\r\n\r\n2) Observe no exceptions, no warning logs and no object in the default.realm.\r\n\r\n3) Restart the app.\r\n\r\n4) First call of [realm beginWriteTransaction] in the main thread freezes the app.\r\n\r\nIf you do (1) in the main thread then you can observe warning logs."},"comment":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/comments/98764018","html_url":"https://github.com/realm/realm-cocoa/issues/1812#issuecomment-98764018","issue_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1812","id":98764018,"user":{"login":"jpsim","id":474794,"avatar_url":"https://avatars.githubusercontent.com/u/474794?v=3","gravatar_id":"","url":"https://api.github.com/users/jpsim","html_url":"https://github.com/jpsim","followers_url":"https://api.github.com/users/jpsim/followers","following_url":"https://api.github.com/users/jpsim/following{/other_user}","gists_url":"https://api.github.com/users/jpsim/gists{/gist_id}","starred_url":"https://api.github.com/users/jpsim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpsim/subscriptions","organizations_url":"https://api.github.com/users/jpsim/orgs","repos_url":"https://api.github.com/users/jpsim/repos","events_url":"https://api.github.com/users/jpsim/events{/privacy}","received_events_url":"https://api.github.com/users/jpsim/received_events","type":"User","site_admin":false},"created_at":"2015-05-04T15:53:55Z","updated_at":"2015-05-04T15:53:55Z","body":"Based on the code we received via email, the problem was that an `RLMObject` was being modified by a different thread than the one that was used to create or obtain the object."}}