{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/2402","repository_url":"https://api.github.com/repos/realm/realm-java","labels_url":"https://api.github.com/repos/realm/realm-java/issues/2402/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/2402/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/2402/events","html_url":"https://github.com/realm/realm-java/issues/2402","id":139470242,"number":2402,"title":"Bug Report","user":{"login":"rfrost77","id":4494892,"avatar_url":"https://avatars.githubusercontent.com/u/4494892?v=3","gravatar_id":"","url":"https://api.github.com/users/rfrost77","html_url":"https://github.com/rfrost77","followers_url":"https://api.github.com/users/rfrost77/followers","following_url":"https://api.github.com/users/rfrost77/following{/other_user}","gists_url":"https://api.github.com/users/rfrost77/gists{/gist_id}","starred_url":"https://api.github.com/users/rfrost77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfrost77/subscriptions","organizations_url":"https://api.github.com/users/rfrost77/orgs","repos_url":"https://api.github.com/users/rfrost77/repos","events_url":"https://api.github.com/users/rfrost77/events{/privacy}","received_events_url":"https://api.github.com/users/rfrost77/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-java/labels/S:Waiting%20For%20User","name":"S:Waiting For User","color":"ededed"},{"url":"https://api.github.com/repos/realm/realm-java/labels/T:Help","name":"T:Help","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-09T04:02:28Z","updated_at":"2016-03-09T16:36:00Z","closed_at":null,"body":"We launched app a week ago, and we got some issues that are suspected to be fired inside realm.\r\nI want share them and hope it solved or get advice for solution.\r\n\r\n1. http://crashes.to/s/6f786c3c97c\r\nFrom BaseActivity, it is ours and line 130 of BaseActivity is initialization of realm.\r\n```\r\nif (mRealm == null) mRealm = Realm.getDefaultInstance();\r\n```\r\n\r\n2. http://crashes.to/s/24c6157fa0e\r\nIt has no our code. I really don't know why it happen.\r\n\r\n3. http://crashes.to/s/d49020c314d\r\nI removed findAllAsync() and findAllSortedAsync() because of BadVersion exception, but it happen again in findAllSorted(). I guess if I give multi parameter for sort, it sometimes fires. I want you to look at it too.\r\n\r\n4. http://crashes.to/s/7aa35297440\r\nIt also happen line 130 of BaseActivity, initialization of realm (above code). I event don't know why array exception is here.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/194384521","html_url":"https://github.com/realm/realm-java/issues/2402#issuecomment-194384521","issue_url":"https://api.github.com/repos/realm/realm-java/issues/2402","id":194384521,"user":{"login":"dramancompany","id":3772540,"avatar_url":"https://avatars.githubusercontent.com/u/3772540?v=3","gravatar_id":"","url":"https://api.github.com/users/dramancompany","html_url":"https://github.com/dramancompany","followers_url":"https://api.github.com/users/dramancompany/followers","following_url":"https://api.github.com/users/dramancompany/following{/other_user}","gists_url":"https://api.github.com/users/dramancompany/gists{/gist_id}","starred_url":"https://api.github.com/users/dramancompany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dramancompany/subscriptions","organizations_url":"https://api.github.com/users/dramancompany/orgs","repos_url":"https://api.github.com/users/dramancompany/repos","events_url":"https://api.github.com/users/dramancompany/events{/privacy}","received_events_url":"https://api.github.com/users/dramancompany/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T16:36:00Z","updated_at":"2016-03-09T16:36:00Z","body":"@kneth  1. I did not use any encryption settings myself. Then, how can I solve it?\r\n\r\n2, 3 seems what I can do is just wait 0.88 ...\r\n\r\n4. I attach my code of realm initialization.\r\n```\r\npublic static RealmConfiguration.Builder mRealmBuilder = new RealmConfiguration.Builder(BaseApplication.get())\r\n            .name(Realm.DEFAULT_REALM_NAME)\r\n            .schemaVersion(SCHEMA_VERSION)\r\n            .migration(new MigrationRealmUtil());\r\n\r\n    public static void initialize() {\r\n        if (AppUtil.isDebugMode()) mRealmBuilder.deleteRealmIfMigrationNeeded();\r\n        Realm.setDefaultConfiguration(mRealmBuilder.build());\r\n    }\r\n```\r\nCan you analyze the reason of the bug through above code?\r\n\r\nThanks."}}