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: Architecture Components v1.0.0, Paging alpha-4
Devices/Android versions reproduced on:
Just another random crash from the paging alpha-4. Placeholder is enabled and I have the page size set to 30. The RecyclerView can display about 5 items typically. The data are loaded form the local db using Room.
The stack trace is below:
java.lang.IllegalArgumentException: PositionalDataSource requires initial load size to be a multiple of page size to support internal tiling.
at android.arch.paging.PositionalDataSource$LoadInitialCallback.onResult(PositionalDataSource.java:173)
at android.arch.paging.TiledDataSource.loadInitial(TiledDataSource.java:64)
at android.arch.paging.PositionalDataSource.dispatchLoadInitial(PositionalDataSource.java:261)
at android.arch.paging.TiledPagedList.<init>(TiledPagedList.java:95)
at android.arch.paging.PagedList.create(PagedList.java:181)
at android.arch.paging.PagedList.access$000(PagedList.java:97)
at android.arch.paging.PagedList$Builder.build(PagedList.java:339)
at android.arch.paging.LivePagedListBuilder$1.compute(LivePagedListBuilder.java:205)
at android.arch.paging.LivePagedListBuilder$1.compute(LivePagedListBuilder.java:170)
at android.arch.lifecycle.ComputableLiveData$2.run(ComputableLiveData.java:87)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)