{"action":"opened","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/997","labels_url":"https://api.github.com/repos/realm/realm-java/issues/997/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/997/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/997/events","html_url":"https://github.com/realm/realm-java/issues/997","id":65050160,"number":997,"title":"A lot of ANR when i use realm with changed folder.","user":{"login":"rimidalv","id":1157911,"avatar_url":"https://avatars.githubusercontent.com/u/1157911?v=3","gravatar_id":"","url":"https://api.github.com/users/rimidalv","html_url":"https://github.com/rimidalv","followers_url":"https://api.github.com/users/rimidalv/followers","following_url":"https://api.github.com/users/rimidalv/following{/other_user}","gists_url":"https://api.github.com/users/rimidalv/gists{/gist_id}","starred_url":"https://api.github.com/users/rimidalv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rimidalv/subscriptions","organizations_url":"https://api.github.com/users/rimidalv/orgs","repos_url":"https://api.github.com/users/rimidalv/repos","events_url":"https://api.github.com/users/rimidalv/events{/privacy}","received_events_url":"https://api.github.com/users/rimidalv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-29T11:10:28Z","updated_at":"2015-03-29T11:10:28Z","closed_at":null,"body":"Caused by: java.lang.RuntimeException: Unspecified exception. open() failed: No such file or directory in io_realm_internal_SharedGroup.cpp line 101\r\n\r\nI tried to open realm (was version 0.77.0). And i receive this ANR from next devices:\r\nAndroid 4.4: Xperia Z3 (D6603), Xperia Z3 (SOL26), Xperia Z2 (D6503), Galaxy Note3 (hlte), Galaxy S3 (c1lgt)\r\nAndroid 5.1: Nexus 5 (hammerhead), \r\nAndroid 5.0: Nexus 4 (mako), Xperia Z3 (D6603), Nexus 6 (shamu)\r\nand other.\r\n\r\nMy code in onCreate method to open realm:\r\n\r\n        String currentRecordPath = StorageSettings.getInstance(context).getCurrentRecordPath();\r\n        String fileName = \"database.realm\";\r\n        File writeableFolder = new File(currentRecordPath);\r\n        if(!writeableFolder.exists()){\r\n            writeableFolder.mkdirs();\r\n        }\r\n        Realm realm = Realm.getInstance(writeableFolder, fileName);\r\n        return realm;\r\n\r\nFull stack trace:\r\n\r\njava.lang.RuntimeException: Unable to start activity ComponentInfo{com.rimidalv.dictaphone/com.rimidalv.dictaphone.MainActivity}: android.view.InflateException: Binary XML file line #76: Error inflating class fragment\r\nat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2305)\r\nat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2367)\r\nat android.app.ActivityThread.access$800(ActivityThread.java:148)\r\nat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1283)\r\nat android.os.Handler.dispatchMessage(Handler.java:102)\r\nat android.os.Looper.loop(Looper.java:135)\r\nat android.app.ActivityThread.main(ActivityThread.java:5274)\r\nat java.lang.reflect.Method.invoke(Native Method)\r\nat java.lang.reflect.Method.invoke(Method.java:372)\r\nat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:909)\r\nat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:704)\r\nCaused by: android.view.InflateException: Binary XML file line #76: Error inflating class fragment\r\nat android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:763)\r\nat android.view.LayoutInflater.rInflate(LayoutInflater.java:806)\r\nat android.view.LayoutInflater.inflate(LayoutInflater.java:504)\r\nat android.view.LayoutInflater.inflate(LayoutInflater.java:414)\r\nat android.view.LayoutInflater.inflate(LayoutInflater.java:365)\r\nat android.support.v7.app.ActionBarActivityDelegateBase.a(Unknown Source)\r\nat android.support.v7.app.e.setContentView(Unknown Source)\r\nat com.rimidalv.dictaphone.MainActivity.onCreate(Unknown Source)\r\nat android.app.Activity.performCreate(Activity.java:5977)\r\nat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)\r\nat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2258)\r\n... 10 more\r\nCaused by: java.lang.RuntimeException: Unspecified exception. open() failed: Not a directory in io_realm_internal_SharedGroup.cpp line 101\r\nat io.realm.internal.SharedGroup.createNativeWithImplicitTransactions(Native Method)\r\nat io.realm.internal.SharedGroup.<init>(Unknown Source)\r\nat io.realm.Realm.<init>(Unknown Source)\r\nat io.realm.Realm.createAndValidate(Unknown Source)\r\nat io.realm.Realm.create(Unknown Source)\r\nat io.realm.Realm.getInstance(Unknown Source)\r\nat com.rimidalv.dictaphone.db.a.a(Unknown Source)\r\nat com.rimidalv.dictaphone.fragments.MenuFragment.onCreate(Unknown Source)\r\nat android.app.Fragment.performCreate(Fragment.java:2040)\r\nat android.app.FragmentManagerImpl.moveToState(FragmentManager.java:863)\r\nat android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1045)\r\nat android.app.FragmentManagerImpl.addFragment(FragmentManager.java:1147)\r\nat android.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2116)\r\nat android.app.Activity.onCreateView(Activity.java:5326)\r\nat android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:733)\r\n... 20 more"}}