thielepaul / photoprism-mobile

Flutter App for PhotoPrism
GNU General Public License v3.0
893 stars 72 forks source link

Only first 50 images are displayed #103

Open Mortein opened 3 years ago

Mortein commented 3 years ago

Updated the app a while ago and now only the top 50 images load, nothing in the past will load (both thumbnail and the original).

Files uploaded using the app are the only exception, so currently I have thumbnails for 52 files.

I'm using latest build for Android. Have tried clearing both cache and data.

adambeck7 commented 3 years ago

What device are you on and what OS version are you running? What do your logs say? I'm on Android 11 running PhotoPrism 1.0.0 and unable to recreate this error.

Mortein commented 3 years ago

I'm using a OnePlus 6T running Android 10. The version numbers are all 1.0.0 at the moment, but I'm using the latest build (just downloaded it).

I cleared all data (data and cache), uninstalled, and reinstalled, but still only the first 52 images.

Tried viewing my phone's album, and still only the first 52 (albeit the same 52).

PhotoPrism instance is running latest Docker build and updates daily.

adambeck7 commented 3 years ago

can you post your logs from the settings page?

thielepaul commented 3 years ago

The problem here is probably that the api for getting the count from the backend is using a different database query than the the api that gets the photo metadata. It should hopefully be fixed once I get time to finish this: https://github.com/photoprism/photoprism-mobile/pull/96

Mortein commented 3 years ago

I'll wait for #96 and see if it's still an issue.

Mortein commented 3 years ago

I thought I'd take a look at the log anyway, as I was curious. Debug was enabled.

time="2021-02-25T05:45:49Z" level=info msg="photos: found 100 results for photo:true dist:20 count:100 merged:true [379.158353ms]"
time="2021-02-25T05:45:49Z" level=debug msg="http: GET /api/v1/photos?count=100&merged=true&photo=true&offset=0&album= (200) [390.837226ms]"
time="2021-02-25T05:45:57Z" level=info msg="photos: found 100 results for photo:true dist:20 count:100 merged:true [382.620526ms]"
time="2021-02-25T05:45:57Z" level=debug msg="http: GET /api/v1/photos?count=100&merged=true&photo=true&offset=0&album= (200) [394.085122ms]"
time="2021-02-25T05:45:58Z" level=info msg="photos: found 100 results for photo:true dist:20 count:100 merged:true [379.217577ms]"
time="2021-02-25T05:45:58Z" level=debug msg="http: GET /api/v1/photos?count=100&merged=true&photo=true&offset=0&album= (200) [390.80744ms]"
time="2021-02-25T05:45:59Z" level=info msg="photos: found 100 results for photo:true dist:20 count:100 merged:true [381.756261ms]"
time="2021-02-25T05:45:59Z" level=debug msg="http: GET /api/v1/photos?count=100&merged=true&photo=true&offset=0&album= (200) [394.674186ms]"
time="2021-02-25T05:45:59Z" level=info msg="photos: found 100 results for photo:true dist:20 count:100 merged:true [411.541725ms]"
time="2021-02-25T05:45:59Z" level=debug msg="http: GET /api/v1/photos?count=100&merged=true&photo=true&offset=0&album= (200) [423.554751ms]"
time="2021-02-25T05:46:00Z" level=info msg="photos: found 100 results for photo:true dist:20 count:100 merged:true [383.385019ms]"
time="2021-02-25T05:46:00Z" level=debug msg="http: GET /api/v1/photos?count=100&merged=true&photo=true&offset=0&album= (200) [394.98523ms]"
time="2021-02-25T05:46:00Z" level=info msg="photos: found 100 results for photo:true dist:20 count:100 merged:true [407.64441ms]"
time="2021-02-25T05:46:00Z" level=debug msg="http: GET /api/v1/photos?count=100&merged=true&photo=true&offset=0&album= (200) [419.186477ms]"
time="2021-02-25T05:46:01Z" level=info msg="photos: found 100 results for photo:true dist:20 count:100 merged:true [414.380422ms]"
time="2021-02-25T05:46:01Z" level=debug msg="http: GET /api/v1/photos?count=100&merged=true&photo=true&offset=0&album= (200) [426.631289ms]"
time="2021-02-25T05:46:01Z" level=info msg="photos: found 100 results for photo:true dist:20 count:100 merged:true [411.003505ms]"
time="2021-02-25T05:46:01Z" level=debug msg="http: GET /api/v1/photos?count=100&merged=true&photo=true&offset=0&album= (200) [425.149648ms]"
time="2021-02-25T05:46:02Z" level=info msg="photos: found 100 results for photo:true dist:20 count:100 merged:true [391.944633ms]"
time="2021-02-25T05:46:02Z" level=debug msg="http: GET /api/v1/photos?count=100&merged=true&photo=true&offset=0&album= (200) [403.55576ms]"
...

The first request is a forced pull-down-to-refresh. After scrolling down to the unloaded images, the subsequent requests started. Once they start, they appear to continue forever (or as long as I'm willing to wait).

darrepac commented 3 years ago

I have the same issue (only the first pictures are loading) on iOS

ippocratis commented 2 years ago

docker pull thielepaul/photoprism:db-api Then rebuild with image: thielepaul/photoprism:db-api In docker-compose.yml Using.the db:api image can let you use the app with the latest backend changes and has not got the loading old images issues the official image has with this app Also uncomment the watchtower lines to aouto audate the image as when an update is pushed and you are on an older image app cant display anytjing