{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/4493","repository_url":"https://api.github.com/repos/realm/realm-java","labels_url":"https://api.github.com/repos/realm/realm-java/issues/4493/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/4493/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/4493/events","html_url":"https://github.com/realm/realm-java/issues/4493","id":221626776,"number":4493,"title":"Cannot get Realm instance: io.realm.exceptions.RealmFileException: Unable to open a realm at path ","user":{"login":"rajuashok","id":2475027,"avatar_url":"https://avatars1.githubusercontent.com/u/2475027?v=3","gravatar_id":"","url":"https://api.github.com/users/rajuashok","html_url":"https://github.com/rajuashok","followers_url":"https://api.github.com/users/rajuashok/followers","following_url":"https://api.github.com/users/rajuashok/following{/other_user}","gists_url":"https://api.github.com/users/rajuashok/gists{/gist_id}","starred_url":"https://api.github.com/users/rajuashok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajuashok/subscriptions","organizations_url":"https://api.github.com/users/rajuashok/orgs","repos_url":"https://api.github.com/users/rajuashok/repos","events_url":"https://api.github.com/users/rajuashok/events{/privacy}","received_events_url":"https://api.github.com/users/rajuashok/received_events","type":"User","site_admin":false},"labels":[{"id":3545600,"url":"https://api.github.com/repos/realm/realm-java/labels/T:Help","name":"T:Help","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":35,"created_at":"2017-04-13T17:11:16Z","updated_at":"2017-04-26T07:56:49Z","closed_at":null,"body":"#### Goal\r\n\r\nCall `Realm realm = Realm.getInstance(mRealmConfig);` where\r\n\r\n`\r\nmRealmConfig = RealmConfiguration.Builder()\r\n                .schemaVersion(2)\r\n                .deleteRealmIfMigrationNeeded()\r\n                .build();\r\n`\r\n\r\n#### Expected Results\r\n\r\nGet a Realm without exception.\r\n\r\n#### Actual Results\r\n\r\nThe following exception is thrown:\r\n`io.realm.exceptions.RealmFileException: Unable to open a realm at path '/data/data/com.dropbox.paper/files/default.realm.management': make_dir() failed: No such file or directory. (make_dir() failed: No such file or directory) (/data/data/com.dropbox.paper/files/default.realm.management) in /home/cc/repo/realm/release/realm/realm-library/src/main/cpp/io_realm_internal_SharedRealm.cpp line 217 Kind: ACCESS_ERROR.`\r\n\r\nMore here:\r\n[realm-exception.txt](https://github.com/realm/realm-java/files/920336/realm-exception.txt)\r\n\r\n#### Steps & Code to Reproduce\r\n\r\nThis happens on first launch of the app.\r\n\r\n#### Version of Realm and tooling\r\nRealm version(s): 2.2.1\r\n\r\nTried upgrading to 3.1.2 but still seeing the same issue.\r\n\r\nRealm sync feature enabled: unsure. Would this affect this? How can I turn this on/off?\r\n\r\nAndroid Studio version: 2.3\r\n\r\nWhich Android version and device:\r\n\r\n- Nexus 5 on 6.0.1\r\n- Google Pixel 7.1.1\r\n"},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/297277808","html_url":"https://github.com/realm/realm-java/issues/4493#issuecomment-297277808","issue_url":"https://api.github.com/repos/realm/realm-java/issues/4493","id":297277808,"user":{"login":"kneth","id":1225363,"avatar_url":"https://avatars3.githubusercontent.com/u/1225363?v=3","gravatar_id":"","url":"https://api.github.com/users/kneth","html_url":"https://github.com/kneth","followers_url":"https://api.github.com/users/kneth/followers","following_url":"https://api.github.com/users/kneth/following{/other_user}","gists_url":"https://api.github.com/users/kneth/gists{/gist_id}","starred_url":"https://api.github.com/users/kneth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kneth/subscriptions","organizations_url":"https://api.github.com/users/kneth/orgs","repos_url":"https://api.github.com/users/kneth/repos","events_url":"https://api.github.com/users/kneth/events{/privacy}","received_events_url":"https://api.github.com/users/kneth/received_events","type":"User","site_admin":false},"created_at":"2017-04-26T07:56:49Z","updated_at":"2017-04-26T07:56:49Z","body":"Yes, calling `Realm.init()` in `Application.onCreate()` sounds as a good idea (we do that in our examples).\r\n\r\nInterestingly, `getFilesDir()` did have a bug (https://issuetracker.google.com/issues/36918154) but it is supposed to be fixed."}}
{"actor":{"display_login":"kneth"}}