{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/1836","labels_url":"https://api.github.com/repos/realm/realm-java/issues/1836/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/1836/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/1836/events","html_url":"https://github.com/realm/realm-java/issues/1836","id":119038118,"number":1836,"title":"io.realm.exceptions.RealmIOException: File not found","user":{"login":"hunain-liaquat","id":8937871,"avatar_url":"https://avatars.githubusercontent.com/u/8937871?v=3","gravatar_id":"","url":"https://api.github.com/users/hunain-liaquat","html_url":"https://github.com/hunain-liaquat","followers_url":"https://api.github.com/users/hunain-liaquat/followers","following_url":"https://api.github.com/users/hunain-liaquat/following{/other_user}","gists_url":"https://api.github.com/users/hunain-liaquat/gists{/gist_id}","starred_url":"https://api.github.com/users/hunain-liaquat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hunain-liaquat/subscriptions","organizations_url":"https://api.github.com/users/hunain-liaquat/orgs","repos_url":"https://api.github.com/users/hunain-liaquat/repos","events_url":"https://api.github.com/users/hunain-liaquat/events{/privacy}","received_events_url":"https://api.github.com/users/hunain-liaquat/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-java/labels/Help","name":"Help","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-11-26T12:46:06Z","updated_at":"2016-01-21T09:23:16Z","closed_at":"2016-01-21T08:33:23Z","body":"Hi,\r\n\r\nI have faced an issue. Application was working fine before I have cleared data from settings. I need to clear local data and when I access Default Instance of realm following exception occurred. can you help me why this exception occurred, Is there any thing missing on my side.\r\n\r\n\r\nThanks,\r\n<b> note :  it is happen just once.</b> \r\n<b>\r\nRealmConfiguration config = new RealmConfiguration.Builder(getApplicationContext()).name(DbClient.DATABASE_NAME).build();\r\n        Realm.setDefaultConfiguration(config);</b>\r\nthis is how I have setup realm in Application File  \r\n \r\n<b>\r\n User-space exception detected!\r\n                                                         io.realm.exceptions.RealmIOException: File not found: .\r\n                                                             at io.realm.internal.SharedGroup.createNativeWithImplicitTransactions(Native Method)\r\n                                                             at io.realm.internal.SharedGroup.<init>(SharedGroup.java:67)\r\n                                                             at io.realm.internal.SharedGroupManager.<init>(SharedGroupManager.java:48)\r\n                                                             at io.realm.BaseRealm.<init>(BaseRealm.java:90)\r\n                                                             at io.realm.Realm.<init>(Realm.java:151)\r\n                                                             at io.realm.Realm.createAndValidate(Realm.java:277)\r\n                                                             at io.realm.Realm.create(Realm.java:241)\r\n                                                             at io.realm.Realm.getDefaultInstance(Realm.java:198)\r\n                                                             at com.*******.db.DbClient.saveUser(DbClient.java:368)\r\n                                                             at com.*******.activities.LoginActivity.setUser(LoginActivity.java:225)\r\n                                                             at com.*******.activities.LoginActivity.access$100(LoginActivity.java:45)\r\n                                                             at com.*******.activities.LoginActivity$3.onSuccess(LoginActivity.java:192)\r\n                                                             at com.loopj.android.http.AsyncHttpResponseHandler.handleMessage(AsyncHttpResponseHandler.java:351)\r\n                                                             at com.loopj.android.http.AsyncHttpResponseHandler$ResponderHandler.handleMessage(AsyncHttpResponseHandler.java:510)\r\n                                                             at android.os.Handler.dispatchMessage(Handler.java:102)\r\n                                                             at android.os.Looper.loop(Looper.java:148)\r\n                                                             at android.app.ActivityThread.main(ActivityThread.java:5417)\r\n                                                             at java.lang.reflect.Method.invoke(Native Method)\r\n                                                             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n                                                             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n11-26 17:28:33.188 11228-11228/com.******* E/AndroidRuntime: FATAL EXCEPTION: main\r\n                                                            Process: com.*******, PID: 11228\r\n                                                            java.lang.RuntimeException: io.realm.exceptions.RealmIOException: File not found: .\r\n                                                                at com.loopj.android.http.AsyncHttpResponseHandler.onUserException(AsyncHttpResponseHandler.java:304)\r\n                                                                at com.loopj.android.http.AsyncHttpResponseHandler.handleMessage(AsyncHttpResponseHandler.java:395)\r\n                                                                at com.loopj.android.http.AsyncHttpResponseHandler$ResponderHandler.handleMessage(AsyncHttpResponseHandler.java:510)\r\n                                                                at android.os.Handler.dispatchMessage(Handler.java:102)\r\n                                                                at android.os.Looper.loop(Looper.java:148)\r\n                                                                at android.app.ActivityThread.main(ActivityThread.java:5417)\r\n                                                                at java.lang.reflect.Method.invoke(Native Method)\r\n                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n                                                             Caused by: io.realm.exceptions.RealmIOException: File not found: .\r\n                                                                at io.realm.internal.SharedGroup.createNativeWithImplicitTransactions(Native Method)\r\n                                                                at io.realm.internal.SharedGroup.<init>(SharedGroup.java:67)\r\n                                                                at io.realm.internal.SharedGroupManager.<init>(SharedGroupManager.java:48)\r\n                                                                at io.realm.BaseRealm.<init>(BaseRealm.java:90)\r\n                                                                at io.realm.Realm.<init>(Realm.java:151)\r\n                                                                at io.realm.Realm.createAndValidate(Realm.java:277)\r\n                                                                at io.realm.Realm.create(Realm.java:241)\r\n                                                                at io.realm.Realm.getDefaultInstance(Realm.java:198)\r\n                                                                at com.******.db.DbClient.saveUser(DbClient.java:368)\r\n                                                                at com.*****.activities.LoginActivity.setUser(LoginActivity.java:225)\r\n                                                                at com.******.activities.LoginActivity.access$100(LoginActivity.java:45)\r\n                                                                at com.*****.activities.LoginActivity$3.onSuccess(LoginActivity.java:192)\r\n                                                                at com.loopj.android.http.AsyncHttpResponseHandler.handleMessage(AsyncHttpResponseHandler.java:351)\r\n                                                                at com.loopj.android.http.AsyncHttpResponseHandler$ResponderHandler.handleMessage(AsyncHttpResponseHandler.java:510) \r\n                                                                at android.os.Handler.dispatchMessage(Handler.java:102) \r\n                                                                at android.os.Looper.loop(Looper.java:148) \r\n                                                                at android.app.ActivityThread.main(ActivityThread.java:5417) \r\n                                                                at java.lang.reflect.Method.invoke(Native Method) \r\n                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) \r\n                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) \r\n11-26 17:28:35.328 11228-12018/com.***** E/libEGL: error creating cache file /data/user/0/com.*****/code_cache/com.android.opengl.shaders_cache: No such file or directory (2)\r\n11-26 17:28:38.830 11228-11237/com.****** E/System: Uncaught exception thrown by finalizer\r\n11-26 17:28:38.830 11228-11237/com.******* E/System: java.lang.NullPointerException: Null reference used for synchronization (monitor-enter)\r\n                                                        at io.realm.internal.SharedGroup.finalize(SharedGroup.java:174)\r\n                                                        at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:202)\r\n                                                        at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:185)\r\n                                                        at java.lang.Thread.run(Thread.java:818)</b>"},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/173512293","html_url":"https://github.com/realm/realm-java/issues/1836#issuecomment-173512293","issue_url":"https://api.github.com/repos/realm/realm-java/issues/1836","id":173512293,"user":{"login":"freezy","id":70426,"avatar_url":"https://avatars.githubusercontent.com/u/70426?v=3","gravatar_id":"","url":"https://api.github.com/users/freezy","html_url":"https://github.com/freezy","followers_url":"https://api.github.com/users/freezy/followers","following_url":"https://api.github.com/users/freezy/following{/other_user}","gists_url":"https://api.github.com/users/freezy/gists{/gist_id}","starred_url":"https://api.github.com/users/freezy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freezy/subscriptions","organizations_url":"https://api.github.com/users/freezy/orgs","repos_url":"https://api.github.com/users/freezy/repos","events_url":"https://api.github.com/users/freezy/events{/privacy}","received_events_url":"https://api.github.com/users/freezy/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T09:23:16Z","updated_at":"2016-01-21T09:23:16Z","body":"By \"solved\" you mean you fixed a bug in Realm or instructed @Pasenchuk how to solve it? I'm also getting this in v0.80.2. If it was a bug in Realm, please let us know which version fixes the problem."}}