{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/2131","repository_url":"https://api.github.com/repos/realm/realm-java","labels_url":"https://api.github.com/repos/realm/realm-java/issues/2131/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/2131/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/2131/events","html_url":"https://github.com/realm/realm-java/issues/2131","id":127922606,"number":2131,"title":"No default RealmConfiguration was found. Call setDefaultConfiguration() first","user":{"login":"McManusds","id":10681872,"avatar_url":"https://avatars.githubusercontent.com/u/10681872?v=3","gravatar_id":"","url":"https://api.github.com/users/McManusds","html_url":"https://github.com/McManusds","followers_url":"https://api.github.com/users/McManusds/followers","following_url":"https://api.github.com/users/McManusds/following{/other_user}","gists_url":"https://api.github.com/users/McManusds/gists{/gist_id}","starred_url":"https://api.github.com/users/McManusds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/McManusds/subscriptions","organizations_url":"https://api.github.com/users/McManusds/orgs","repos_url":"https://api.github.com/users/McManusds/repos","events_url":"https://api.github.com/users/McManusds/events{/privacy}","received_events_url":"https://api.github.com/users/McManusds/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-java/labels/T:Help","name":"T:Help","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2016-01-21T13:20:40Z","updated_at":"2016-07-08T05:29:20Z","closed_at":"2016-01-21T13:58:04Z","body":"Hello i have weird  issue with Realm in some low performance Android devices. \r\n\r\nI set \r\n```\r\nfinal RealmConfiguration config = new RealmConfiguration.Builder(this).build();        \r\n\r\nRealm.setDefaultConfiguration(config);\r\n```\r\nIn my first Activity. Everything looks ok in all devices but in some cases in some devices i got realm crashes. \r\n\r\n```\r\nFatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{\"packName\"/\"packName\".splash.ChooseDistrictActivity}: java.lang.NullPointerException: No default RealmConfiguration was found. Call setDefaultConfiguration() first\r\n       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2658)\r\n       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2723)\r\n       at android.app.ActivityThread.access$900(ActivityThread.java:172)\r\n       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1422)\r\n       at android.os.Handler.dispatchMessage(Handler.java:102)\r\n       at android.os.Looper.loop(Looper.java:145)\r\n       at android.app.ActivityThread.main(ActivityThread.java:5832)\r\n       at java.lang.reflect.Method.invoke(Method.java)\r\n       at java.lang.reflect.Method.invoke(Method.java:372)\r\n       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)\r\n       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)\r\nCaused by java.lang.NullPointerException: No default RealmConfiguration was found. Call setDefaultConfiguration() first\r\n       at io.realm.Realm.getDefaultInstance(Realm.java:199)\r\n       at \"packName\".splash.ChooseDistrictActivity.onCreate(ChooseDistrictActivity.java:143)\r\n       at android.app.Activity.performCreate(Activity.java:6221)\r\n       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)\r\n       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2611)\r\n       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2723)\r\n       at android.app.ActivityThread.access$900(ActivityThread.java:172)\r\n       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1422)\r\n       at android.os.Handler.dispatchMessage(Handler.java:102)\r\n       at android.os.Looper.loop(Looper.java:145)\r\n       at android.app.ActivityThread.main(ActivityThread.java:5832)\r\n       at java.lang.reflect.Method.invoke(Method.java)\r\n       at java.lang.reflect.Method.invoke(Method.java:372)\r\n       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)\r\n       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)\r\n```\r\n\r\nThose users told me app continue working fine and realm bring to app data normally after those crashes. \r\nCan anyone helps me understand what's going on here ? \r\nThank you.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/231278301","html_url":"https://github.com/realm/realm-java/issues/2131#issuecomment-231278301","issue_url":"https://api.github.com/repos/realm/realm-java/issues/2131","id":231278301,"user":{"login":"androidHRTZ","id":15447020,"avatar_url":"https://avatars.githubusercontent.com/u/15447020?v=3","gravatar_id":"","url":"https://api.github.com/users/androidHRTZ","html_url":"https://github.com/androidHRTZ","followers_url":"https://api.github.com/users/androidHRTZ/followers","following_url":"https://api.github.com/users/androidHRTZ/following{/other_user}","gists_url":"https://api.github.com/users/androidHRTZ/gists{/gist_id}","starred_url":"https://api.github.com/users/androidHRTZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/androidHRTZ/subscriptions","organizations_url":"https://api.github.com/users/androidHRTZ/orgs","repos_url":"https://api.github.com/users/androidHRTZ/repos","events_url":"https://api.github.com/users/androidHRTZ/events{/privacy}","received_events_url":"https://api.github.com/users/androidHRTZ/received_events","type":"User","site_admin":false},"created_at":"2016-07-08T05:29:20Z","updated_at":"2016-07-08T05:29:20Z","body":"I got the same problem，but solved way is about RealmConfiguration, is due to state UrApplication in AndroidManifest.xml          add it as <application\r\n        android:name=\".MyApplication\""}}
{"actor":{"display_login":"androidHRTZ"}}