objectbox / objectbox/objectbox-java
State condition failed in table:60
未关闭
@greenrobot-team 已经在做这个了。
开始于 2023年7月10日。
bug
- 主要语言
- Java
- 星标
- 4.6k
- 派生
- 311
- PR 合并指标
- 30 天内没有已合并 PR
描述
Describe the bug
When querying a collection you get the error:
State condition failed in table:60
The problem occurs when the paging limit is greater than 1. When the paging limit is 1 it has no problem.
Basic info (please complete the following information):
- ObjectBox version: 2.9.1
- Reproducibility: always on a single computer (database), on other computers (databases) it does not happen
- Device: Computer
- OS: Windows 10
To Reproduce
I don't know how reproduce it
Expected behavior
Find results
Code
private List<GenericBox> getPagination(Query<GenericBox> b, ParamsDao params) {
if (params.getLimit() > 0) {
return b.find(params.getIndex(), params.getLimit());
}
return b.find();
}
Logs, stack traces
Caused by: java.lang.IllegalStateException: State condition failed in table:60: object
at io.objectbox.query.Query.nativeFind(Native Method)
at io.objectbox.query.Query.lambda$find$3(Query.java:230)
at io.objectbox.BoxStore.callInReadTx(BoxStore.java:897)
at io.objectbox.BoxStore.callInReadTxWithRetry(BoxStore.java:843)
at io.objectbox.query.Query.callInReadTx(Query.java:292)
at io.objectbox.query.Query.find(Query.java:229)
Additional context
We have had to rebuild the entire database to fix the problem, but we are concerned about it happening again.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
评估
这个 Issue 还没有评估数据。