Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Version used: 1.0.0-alpha4-1, 1.0.0
Devices/Android versions reproduced on:
I've gotten 5 crash reports (of many thousands of daily users) from my app on the screen that using Paging + Room to load a RecyclerView. Seems like a possible race condition.
Fatal Exception: java.lang.IllegalArgumentException
PositionalDataSource requires initial load size to be a multiple of page size to support internal tiling.
android.arch.paging.PositionalDataSource$LoadInitialCallback.onResult (PositionalDataSource.java:174)
android.arch.paging.TiledDataSource.loadInitial (TiledDataSource.java:64)
android.arch.paging.PositionalDataSource.dispatchLoadInitial (PositionalDataSource.java:267)
android.arch.paging.TiledPagedList.<init> (TiledPagedList.java:95)
android.arch.paging.PagedList.create (PagedList.java:181)
android.arch.paging.PagedList.access$000 (PagedList.java:97)
android.arch.paging.PagedList$Builder.build (PagedList.java:339)
android.arch.paging.LivePagedListBuilder$1.compute (LivePagedListBuilder.java:205)
android.arch.paging.LivePagedListBuilder$1.compute (LivePagedListBuilder.java:170)
android.arch.lifecycle.ComputableLiveData$2.run (ComputableLiveData.java:87)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1133)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:607)
java.lang.Thread.run (Thread.java:762)
Source code:
Specifically: