Fixed
Status Update
Comments
ch...@gmail.com <ch...@gmail.com> #2
Thanks for the thorough report - you're right about the problem, and the workaround looks good - it even handles the fast cases for initialization and setList(null) nicely.
Fix and tests submitted internally, should go out with next paging release.
Fix and tests submitted internally, should go out with next paging release.
yb...@google.com <yb...@google.com> #3
Actually, I'd like to know more about what failed here and why.
I'm curious if InstantTaskExecutorRule is putting paging into an unexpected state - do you have a sample project that reproduces the issue?
When hitting this outside of a test, are you specifying any custom executors, possibly ones which run main thread tasks immediately instead of posting them?
I'm curious if InstantTaskExecutorRule is putting paging into an unexpected state - do you have a sample project that reproduces the issue?
When hitting this outside of a test, are you specifying any custom executors, possibly ones which run main thread tasks immediately instead of posting them?
ch...@gmail.com <ch...@gmail.com> #4
I don't have a sample project that hits this.
The problem does not happen very often outside of the test scripts, but we are not running any custom executors. The PagedListAdapter gets the data through a LivePagedListProvider from room db.
The problem does not happen very often outside of the test scripts, but we are not running any custom executors. The PagedListAdapter gets the data through a LivePagedListProvider from room db.
yb...@google.com <yb...@google.com>
ya...@google.com <ya...@google.com>
ch...@gmail.com <ch...@gmail.com> #5
This specific issue should be fixed with the Paging Alpha 4 that just released.
Filedhttps://issuetracker.google.com/issues/70351983 to track testing around InstantTaskExecutorRule.
Filed
Description
Version used:alpha1
Devices/Android versions reproduced on:Samsung S7
Entity with a column having byte[] as primary data type has issues reading it
android.database.sqlite.SQLiteException: unknown error (code 0): Unable to convert BLOB to long
at android.database.CursorWindow.nativeGetLong(Native Method)
at android.database.CursorWindow.getLong(CursorWindow.java:524)
at android.database.CursorWindow.getShort(CursorWindow.java:575)
at android.database.AbstractWindowedCursor.getShort(AbstractWindowedCursor.java:63)
Sample query: SELECT test from test_device WHERE serial_number = ?
here is test is of type byte[]