Failed to read row 10, column -1 from a CursorWindow which has 21 rows, 11 columns. Failed to read row 10, column 11 from a CursorWindow which has 21 rows, 11 columns. Failed to read row 2101, column 10 from a CursorWindow which has 2100 rows, 11 columns.
安卓开发的老司机估计对上面的log都很熟悉了,前两个是获取数据的指定column index有误,很好解决。
第三个就有点头大了,研究下来发现跟WAL有莫大的关系,有没有完美的解决办法?
CursorWindow默认大小是2MB,笨办法当然是把这个改大一点,但是治标不治本,理顺Cursor的工作逻辑才能更好的发现问题解决问题,强大如谷歌也是有错误的不是。
备注:aHR0cCUzQS8vd3d3LmNuYmxvZ3MuY29tL3poaGQv