{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/4524","repository_url":"https://api.github.com/repos/realm/realm-java","labels_url":"https://api.github.com/repos/realm/realm-java/issues/4524/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/4524/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/4524/events","html_url":"https://github.com/realm/realm-java/issues/4524","id":222996856,"number":4524,"title":"io.realm.exceptions.RealmFileException when launching application","user":{"login":"jollyjoker992","id":11606263,"avatar_url":"https://avatars3.githubusercontent.com/u/11606263?v=4","gravatar_id":"","url":"https://api.github.com/users/jollyjoker992","html_url":"https://github.com/jollyjoker992","followers_url":"https://api.github.com/users/jollyjoker992/followers","following_url":"https://api.github.com/users/jollyjoker992/following{/other_user}","gists_url":"https://api.github.com/users/jollyjoker992/gists{/gist_id}","starred_url":"https://api.github.com/users/jollyjoker992/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jollyjoker992/subscriptions","organizations_url":"https://api.github.com/users/jollyjoker992/orgs","repos_url":"https://api.github.com/users/jollyjoker992/repos","events_url":"https://api.github.com/users/jollyjoker992/events{/privacy}","received_events_url":"https://api.github.com/users/jollyjoker992/received_events","type":"User","site_admin":false},"labels":[{"id":320044293,"url":"https://api.github.com/repos/realm/realm-java/labels/Reproduction%20Required","name":"Reproduction Required","color":"fbca04","default":false},{"id":3545600,"url":"https://api.github.com/repos/realm/realm-java/labels/T:Help","name":"T:Help","color":"cc317c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":47,"created_at":"2017-04-20T09:02:18Z","updated_at":"2017-12-02T15:26:17Z","closed_at":"2017-04-28T10:21:31Z","author_association":"NONE","body":"I have researched many and many times about this issue but I have not found any solution.\r\nI am implementing an Android application with Realm Android 3.0 and using Fabric to find out crash report.\r\nBelow is Realm initialize code in Application class:\r\n\r\n```\r\n Realm.init(this);\r\n        RealmConfiguration config = new RealmConfiguration.Builder().name(REALM_SCHEMA_NAME)\r\n                .schemaVersion(REALM_SCHEMA_VERSION)\r\n                .migration(new Migration())\r\n                .build();\r\n        Realm.setDefaultConfiguration(config);\r\n        Realm realm = Realm.getDefaultInstance(); // Automatically run migration if needed\r\n        realm.close();\r\n```\r\nI get many crash report from Fabric related with `io.realm.exceptions.RealmFileException` such as: \r\n- Unable to open a realm at path '/data/data/com.xxx/files/xxx.realm': Incompatible histories.\r\n- Unable to open a realm at path '/data/data/com.xxx/files/xxx.realm': bad realm file header (#3). (bad realm file header (#3))\r\n- Unrecoverable error. mmap() failed: Out of memory size xxx\r\n- etc ...\r\n\r\nSo, can you tell me the reason of this issue? Thank you.\r\n"},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/348699061","html_url":"https://github.com/realm/realm-java/issues/4524#issuecomment-348699061","issue_url":"https://api.github.com/repos/realm/realm-java/issues/4524","id":348699061,"user":{"login":"Zhuinden","id":11718392,"avatar_url":"https://avatars1.githubusercontent.com/u/11718392?v=4","gravatar_id":"","url":"https://api.github.com/users/Zhuinden","html_url":"https://github.com/Zhuinden","followers_url":"https://api.github.com/users/Zhuinden/followers","following_url":"https://api.github.com/users/Zhuinden/following{/other_user}","gists_url":"https://api.github.com/users/Zhuinden/gists{/gist_id}","starred_url":"https://api.github.com/users/Zhuinden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zhuinden/subscriptions","organizations_url":"https://api.github.com/users/Zhuinden/orgs","repos_url":"https://api.github.com/users/Zhuinden/repos","events_url":"https://api.github.com/users/Zhuinden/events{/privacy}","received_events_url":"https://api.github.com/users/Zhuinden/received_events","type":"User","site_admin":false},"created_at":"2017-12-02T15:26:17Z","updated_at":"2017-12-02T15:26:17Z","author_association":"NONE","body":"@jollyjoker992 have you tried with Realm 4.2.0? It should have a bunch of multi-process related fixes."}}
{"actor":{"display_login":"Zhuinden"}}