Comments (2)
Thanks for reporting! 👍
from wordpress-android.
After investigating the issue, I noticed the following:
- The request to the media endpoint is related to the featured image of posts shown in the post list (reference).
- The function that fetches the featured image (
getFeaturedImageUrl
) dispatches a request if the media item is not cached. However, it doesn't check if it was requested before. This results in extra requests for the same item as outlined in the issue. - Going up in the stack trace, I see that all calls are triggered by
PagedListPositionalDataSource.loadInitial
(reference). However, I saw that this function is called multiple times with the same data set. I don't have the context to understand why this is happening, but I presumed that it has to do with the paging logic of the Android libraryandroidx.paging
.
Stack trace of a call to getFeaturedImageUrl
:
from wordpress-android.
Related Issues (20)
- UninitializedPropertyAccessException: lateinit property viewModel has not been initialized HOT 1
- ApplicationNotResponding: Background ANR HOT 1
- IndexOutOfBoundsException: Index 1 out of bounds for length 1 HOT 1
- ApplicationNotResponding: com.google.firebase.FirebaseApp in <init> HOT 4
- NullPointerException HOT 4
- NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a... HOT 2
- IllegalStateException: Not allowed to start service Intent { cmp=com.jetpack.android/org.wordpress.android.ui.uploads.Up... HOT 1
- [Reader] Track how many people select text content in Post Details HOT 1
- SQLiteDiskIOException: disk I/O error (code 4874): , while compiling: PRAGMA journal_mode HOT 1
- Wordpress app: Can't login to the site if there's a 2FA plugin HOT 1
- WordPress app: Enable REST API HOT 1
- Color of text highlight is not rendered correctly. HOT 2
- TransactionTooLargeException: data parcel size 1781496 bytes HOT 2
- [Reader] Show "Create Post" FAB in Reader HOT 1
- UninitializedPropertyAccessException: lateinit property result has not been initialized HOT 1
- QuickPress shortcut is not working HOT 6
- TransactionTooLargeException in MediaPreviewActivity HOT 3
- Posts with future publish dates are not scheduled if the device's date is set in the future HOT 5
- Dependency Dashboard HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress-android.