{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/2817","repository_url":"https://api.github.com/repos/realm/realm-java","labels_url":"https://api.github.com/repos/realm/realm-java/issues/2817/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/2817/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/2817/events","html_url":"https://github.com/realm/realm-java/issues/2817","id":155062403,"number":2817,"title":"Realm Db returns no db items","user":{"login":"jvm12345","id":5251576,"avatar_url":"https://avatars.githubusercontent.com/u/5251576?v=3","gravatar_id":"","url":"https://api.github.com/users/jvm12345","html_url":"https://github.com/jvm12345","followers_url":"https://api.github.com/users/jvm12345/followers","following_url":"https://api.github.com/users/jvm12345/following{/other_user}","gists_url":"https://api.github.com/users/jvm12345/gists{/gist_id}","starred_url":"https://api.github.com/users/jvm12345/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvm12345/subscriptions","organizations_url":"https://api.github.com/users/jvm12345/orgs","repos_url":"https://api.github.com/users/jvm12345/repos","events_url":"https://api.github.com/users/jvm12345/events{/privacy}","received_events_url":"https://api.github.com/users/jvm12345/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":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-05-16T16:06:48Z","updated_at":"2016-07-14T09:37:07Z","closed_at":null,"body":"> We LOVE to help with any issues or bug you have!\r\n\r\n> **Questions**: If you have questions about how to use Realm, please ask on [SO](http://stackoverflow.com/questions/ask?tags=realm) - we monitor the Realm tag.\r\n\r\n> **Feature Request**: Just fill in the first two sections below.\r\n\r\n> **Bugs**: To help you as fast as possible with an issue or bug please describe your issue and the steps you have taken to reproduce it in as many details as possible.\r\n> ********** BUG ************\r\n\r\nAndroid App:\r\nRealm database fails to return data after app goes to background or in sleep for sometime and comes back foreground. It happens all the time usually app stays in background for overnight but also happens when it goes to background and comes back or switches screens too fast. It could be that Realm not fetching data when fast switching or frequent requests are made in succession.\r\n\r\n\r\n#### Goal\r\n\r\n> What do you want to achieve?\r\nRealm to return data reliably in all cases.\r\n#### Expected Results\r\n\r\nRealm to return data reliably in all cases.\r\n\r\n#### Actual Results\r\nRealm does not return data at times.\r\n\r\n>  E.g. full stack trace with exception\r\nNo exception but findAllSorted() and findAllSortedAsync() fail all the time.\r\n\r\n#### Steps & Code to Reproduce\r\n\r\n> Describe your current debugging efforts.\r\n\r\n#### Code Sample\r\n\r\n```java\r\n\r\nrealmResults = realm.where(ItemModel.class).findAllSorted(\"title\");\r\n\r\nRealmResults<ItemModel> itemModels = realm.where(ItemModel.class).findAllSortedAsync(\"title\");\r\n\r\n> Your code here. Bigger samples should ideally be as separate Android Studio project, \r\n> in gists/repositories or privately at help@realm.io)\r\n\r\n```\r\n\r\n#### Version of Realm and tooling\r\nRealm version(s): ?\r\n0.90.0\r\nAndroid Studio version: ? 2.2.1\r\n\r\nWhich Android version and device: ?\r\nSamsung S4, Tab 3, Lenovo Tab2, LG G2 (OS 4.x, 5.x)"},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/232616479","html_url":"https://github.com/realm/realm-java/issues/2817#issuecomment-232616479","issue_url":"https://api.github.com/repos/realm/realm-java/issues/2817","id":232616479,"user":{"login":"beeender","id":449296,"avatar_url":"https://avatars.githubusercontent.com/u/449296?v=3","gravatar_id":"","url":"https://api.github.com/users/beeender","html_url":"https://github.com/beeender","followers_url":"https://api.github.com/users/beeender/followers","following_url":"https://api.github.com/users/beeender/following{/other_user}","gists_url":"https://api.github.com/users/beeender/gists{/gist_id}","starred_url":"https://api.github.com/users/beeender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beeender/subscriptions","organizations_url":"https://api.github.com/users/beeender/orgs","repos_url":"https://api.github.com/users/beeender/repos","events_url":"https://api.github.com/users/beeender/events{/privacy}","received_events_url":"https://api.github.com/users/beeender/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T09:37:06Z","updated_at":"2016-07-14T09:37:06Z","body":"@jvm12345 Sorry for missing your comments. We haven't seen the problem you mentioned before. Would you please make a simple project which reproduce the issue? You can send it to help@realm.io (and with some instructions about how to reproduce it.)\r\n\r\nThanks!"}}
{"actor":{"display_login":"beeender"}}