{"action":"closed","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/3188","repository_url":"https://api.github.com/repos/realm/realm-java","labels_url":"https://api.github.com/repos/realm/realm-java/issues/3188/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/3188/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/3188/events","html_url":"https://github.com/realm/realm-java/issues/3188","id":165709699,"number":3188,"title":"IllegalArgumentException: Field 'xxx': type mismatch. Was DATE","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},"labels":[{"id":320044293,"url":"https://api.github.com/repos/realm/realm-java/labels/Reproduction%20Required","name":"Reproduction Required","color":"fbca04","default":false},{"id":151952425,"url":"https://api.github.com/repos/realm/realm-java/labels/S:P1%20Backlog","name":"S:P1 Backlog","color":"dedede","default":false},{"id":320042601,"url":"https://api.github.com/repos/realm/realm-java/labels/T:Bug-Crash","name":"T:Bug-Crash","color":"e11d21","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-15T04:35:59Z","updated_at":"2017-01-24T10:12:57Z","closed_at":"2017-01-24T10:12:57Z","body":"This kind of crash happened to @KynoYang a few times, but the crash logs are not exact the same:\n\nCrash 1\n\n```\njava.lang.IllegalArgumentException: Field 'xxx': type mismatch. Was DATE, expected [STRING].\n    at io.realm.RealmObjectSchema.getColumnIndices(RealmObjectSchema.java:618)\n    at io.realm.RealmQuery.equalTo(RealmQuery.java:262)\n    at io.realm.RealmQuery.equalTo(RealmQuery.java:249)\n    at com.xxx.xx.data.xxx.getLatestMsg(xxx.java:80)\n```\n\nCrash 2\n\n```\nio.realm.exceptions.RealmError: Unrecoverable error. Data type mismatch in io_realm_internal_TableQuery.cpp line 886\n    at io.realm.internal.TableQuery.nativeEqual(Native Method)\n    at io.realm.internal.TableQuery.equalTo(TableQuery.java:350)\n    at io.realm.RealmQuery.equalTo(RealmQuery.java:263)\n    at io.realm.RealmQuery.equalTo(RealmQuery.java:249)\n    at com.xx.xxx.data.xxxxxxx.getXXXByVid(xxx.java:98)\n```\n\nFrom the log we can see the first exception was thrown in the java, but the 2nd one was thrown from native code. This is abnormal. Since the both of them went through the same calling routine that the 2nd one did the java side type checking as well -- But it threw later.\n\nIt might indicate that we have a corrupted pointer that caused by a concurrency problem.\n\nPS.: There are also a few other crashes from @KynoYang which indicate the similar problem. But those two are quite typical.\n\nMight be fixed by https://github.com/realm/realm-core/pull/1958 . We need to monitor this after `v1.1.1` release.\n"}}
{"actor":{"display_login":"cmelchior"}}