{"action":"created","issue":{"url":"https://api.github.com/repos/couchbaselabs/cbforest/issues/78","repository_url":"https://api.github.com/repos/couchbaselabs/cbforest","labels_url":"https://api.github.com/repos/couchbaselabs/cbforest/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/couchbaselabs/cbforest/issues/78/comments","events_url":"https://api.github.com/repos/couchbaselabs/cbforest/issues/78/events","html_url":"https://github.com/couchbaselabs/cbforest/issues/78","id":146769985,"number":78,"title":"C4Error: variables of struct is not initialized with 0 on Android platform","user":{"login":"hideki","id":15889,"avatar_url":"https://avatars.githubusercontent.com/u/15889?v=3","gravatar_id":"","url":"https://api.github.com/users/hideki","html_url":"https://github.com/hideki","followers_url":"https://api.github.com/users/hideki/followers","following_url":"https://api.github.com/users/hideki/following{/other_user}","gists_url":"https://api.github.com/users/hideki/gists{/gist_id}","starred_url":"https://api.github.com/users/hideki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideki/subscriptions","organizations_url":"https://api.github.com/users/hideki/orgs","repos_url":"https://api.github.com/users/hideki/repos","events_url":"https://api.github.com/users/hideki/events{/privacy}","received_events_url":"https://api.github.com/users/hideki/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/couchbaselabs/cbforest/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/couchbaselabs/cbforest/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"hideki","id":15889,"avatar_url":"https://avatars.githubusercontent.com/u/15889?v=3","gravatar_id":"","url":"https://api.github.com/users/hideki","html_url":"https://github.com/hideki","followers_url":"https://api.github.com/users/hideki/followers","following_url":"https://api.github.com/users/hideki/following{/other_user}","gists_url":"https://api.github.com/users/hideki/gists{/gist_id}","starred_url":"https://api.github.com/users/hideki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideki/subscriptions","organizations_url":"https://api.github.com/users/hideki/orgs","repos_url":"https://api.github.com/users/hideki/repos","events_url":"https://api.github.com/users/hideki/events{/privacy}","received_events_url":"https://api.github.com/users/hideki/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/couchbaselabs/cbforest/milestones/2","html_url":"https://github.com/couchbaselabs/cbforest/milestones/1.3","labels_url":"https://api.github.com/repos/couchbaselabs/cbforest/milestones/2/labels","id":1483114,"number":2,"title":"1.3","description":"Coincides with Couchbase Lite 1.3","creator":{"login":"snej","id":43241,"avatar_url":"https://avatars.githubusercontent.com/u/43241?v=3","gravatar_id":"","url":"https://api.github.com/users/snej","html_url":"https://github.com/snej","followers_url":"https://api.github.com/users/snej/followers","following_url":"https://api.github.com/users/snej/following{/other_user}","gists_url":"https://api.github.com/users/snej/gists{/gist_id}","starred_url":"https://api.github.com/users/snej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snej/subscriptions","organizations_url":"https://api.github.com/users/snej/orgs","repos_url":"https://api.github.com/users/snej/repos","events_url":"https://api.github.com/users/snej/events{/privacy}","received_events_url":"https://api.github.com/users/snej/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":2,"state":"open","created_at":"2016-01-04T18:12:54Z","updated_at":"2016-04-07T23:23:27Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-04-07T23:23:20Z","updated_at":"2016-04-08T00:21:52Z","closed_at":null,"body":"`C4Error error;` error is not initialized with 0. So C4error.domain is set random number.\r\nIn case of end of leaf, `selectNextLeaf()` returns `false` with C4Error.error = 0 without updating domain variable. \r\n```\r\n04-07 19:18:40.723 3181-3194/? E/Database: Error in changesSince()\r\n ForestException{domain=-1642724708, code=0}\r\n     at com.couchbase.cbforest.Document.selectNextLeaf(Native Method)\r\n     at com.couchbase.cbforest.Document.selectNextLeaf(Document.java:47)\r\n     at com.couchbase.lite.store.ForestBridge.getCurrentRevisionIDs(ForestBridge.java:86)\r\n     at com.couchbase.lite.store.ForestDBStore.changesSince(ForestDBStore.java:731)\r\n     at com.couchbase.lite.Database.getAllDocs(Database.java:1428)\r\n     at com.couchbase.lite.Database.queryViewNamed(Database.java:2079)\r\n     at com.couchbase.lite.Query.run(Query.java:433)\r\n     at com.couchbase.lite.ApiTest.test12_AllDocumentsBySequence(ApiTest.java:399)\r\n     at java.lang.reflect.Method.invokeNative(Native Method)\r\n     at java.lang.reflect.Method.invoke(Method.java:515)\r\n     at junit.framework.TestCase.runTest(TestCase.java:168)\r\n     at junit.framework.TestCase.runBare(TestCase.java:134)\r\n     at com.couchbase.lite.LiteTestCase.runBare(LiteTestCase.java:20)\r\n     at com.couchbase.lite.LiteTestCaseWithDB.runBare(LiteTestCaseWithDB.java:95)\r\n     at junit.framework.TestResult$1.protect(TestResult.java:115)\r\n     at junit.framework.TestResult.runProtected(TestResult.java:133)\r\n     at junit.framework.TestResult.run(TestResult.java:118)\r\n     at junit.framework.TestCase.run(TestCase.java:124)\r\n     at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)\r\n     at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)\r\n     at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)\r\n     at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1701)\r\n```"},"comment":{"url":"https://api.github.com/repos/couchbaselabs/cbforest/issues/comments/207147392","html_url":"https://github.com/couchbaselabs/cbforest/issues/78#issuecomment-207147392","issue_url":"https://api.github.com/repos/couchbaselabs/cbforest/issues/78","id":207147392,"user":{"login":"hideki","id":15889,"avatar_url":"https://avatars.githubusercontent.com/u/15889?v=3","gravatar_id":"","url":"https://api.github.com/users/hideki","html_url":"https://github.com/hideki","followers_url":"https://api.github.com/users/hideki/followers","following_url":"https://api.github.com/users/hideki/following{/other_user}","gists_url":"https://api.github.com/users/hideki/gists{/gist_id}","starred_url":"https://api.github.com/users/hideki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideki/subscriptions","organizations_url":"https://api.github.com/users/hideki/orgs","repos_url":"https://api.github.com/users/hideki/repos","events_url":"https://api.github.com/users/hideki/events{/privacy}","received_events_url":"https://api.github.com/users/hideki/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T00:21:52Z","updated_at":"2016-04-08T00:21:52Z","body":"@snej, thank you for your input. I will change it."}}