Skip to content

[BUG] Some images previews are visible on web interface and not on Android app #4443

Open

Description

@Anycubic

Actual behaviour

Installed and uninstalled the app many times. First time it runs all of the images have their preview (folder with more than 2000 images but it happens regardless of the number of images stored in a folder). After the 2nd time I run owncloud app some previews are not visible anymore. If I actually open one of that images without the preview, the preview will "stick" and will not disappear anymore. Each and every time I close and reopen the app, previews are randomly visible or not visible.

Expected behaviour

All images previews should be always visible in each and every folder, every time I run the app.

Steps to reproduce

  1. Instal the app, run it first time, open a folder, previews are all there
  2. Re-run the app -> not all of the previews are visible anymore
  3. If I open the web interface images previews are all there, so I guess it is an app bug

Can this problem be reproduced with the official owncloud server?
(url: https://demo.owncloud.org, user: test, password: test)
I don't know

Environment data

Android version:
14
Device model:
Xiaomi 12 Pro
Stock or customized system:
Stock
ownCloud app version:
4.3.0
ownCloud server version:
10.14.0.3

Logs

Web server error log

Insert your webserver log here

ownCloud log (data/owncloud.log)

Insert your ownCloud log here

Activity

  1. changed the title [-][BUG] Same image previews are visible on web interface and not on Android app[/-] [+][BUG] Some images previews are visible on web interface and not on Android app[/+] on Jul 20, 2024
  2. jesmrec commented on Jul 22, 2024

    @jesmrec
    Member

    previews means thumbnails, right? the little image on the left. On my side, i can not reproduce it, thumbnails are there. That images are generated in the server and retrieved from there, so, there is also some dependency on that side. Will take a look again anyway.

    If you can provide logs, or also, a test account in your server (we'd tell you how to give that information in a secure way), it could be helpful for dev team.

  3. Anycubic commented on Jul 22, 2024

    @Anycubic
    Author

    thumbnails

    Yep, I meant thumbnails. The same goes for video, pdf, txt etc etc. I have the same behaviour also on a tablet of mine, total erratic behaviour, sometime thumbnails appear sometime not. On the web interface (I tested also the very beautiful "web app") no problems at all, both on desktop and mobile browser. I could provide for sure a test account if you need it, just let me know, thanks.

  4. jesmrec commented on Jul 22, 2024

    @jesmrec
    Member

    In case of the Android app, only the thumbnails that server retrieves are shown in the app: images and txt files. PDFs and other formats lack of server generated thumbnails. Don't compare with desktop client because are pretty different scopes and work in a different way. I will provide you a place where you can push the info. Thanks a lot!

  5. Anycubic commented on Jul 22, 2024

    @Anycubic
    Author

    In case of the Android app, only the thumbnails that server retrieves are shown in the app: images and txt files. PDFs and other formats lack of server generated thumbnails. Don't compare with desktop client because are pretty different scopes and work in a different way. I will provide you a place where you can push the info. Thanks a lot!

    Ok, at least I know there is no problem with PDFs and other formats. Nevertheless images thumbnails are not working as intended. Please have a look at attached screenshots.
    Screenshot_2024-07-22-10-26-28-761_com owncloud android
    2024-07-22_10-26-12

  6. jesmrec commented on Jul 22, 2024

    @jesmrec
    Member

    https://infinite.owncloud.com/s/nYSfrsmANDXWKzJ

    Pwd: aa55AA..

    There, you can upload any file with information about your test server. We strongly appreciate your feedback.

  7. Anycubic commented on Jul 22, 2024

    @Anycubic
    Author

    https://infinite.owncloud.com/s/nYSfrsmANDXWKzJ

    Pwd: aa55AA..

    There, you can upload any file with information about your test server. We strongly appreciate your feedback.

    Ok. What do you need? Logs with a certain details of logging? I can't seen any error at "error" log level.

  8. jesmrec commented on Jul 23, 2024

    @jesmrec
    Member

    it's enough with information about a test server. Logs could help as well.

  9. benedictgoodman commented on Aug 2, 2024

    @benedictgoodman

    I have the same issue, and can't see anything in the log. It has persisted across multiple versions of the android app. Is this the same as #3525 ?

  10. Anycubic commented on Aug 2, 2024

    @Anycubic
    Author

    I have the same issue, and can't see anything in the log. It has persisted across multiple versions of the android app. Is this the same as #3525 ?

    @benedictgoodman it is exactly the same. I made some tests, deleted a folder with issues and shared again and the problem disappeared. So I guess that bug is still there. Actually images preview from Android is unusable, I can't believe it is a rare thing, I have the same behaviour on another android tablet as well.

  11. jesmrec commented on Aug 5, 2024

    @jesmrec
    Member

    I have the same issue, and can't see anything in the log. It has persisted across multiple versions of the android app. Is this the same as #3525 ?

    i don't think so. In that issue, problem happens only in grid view, now you reported the problem in list view, right? Checked again, i see all thumbnails in two different servers/devices. We can not control every single server (don't forget, server is who generates the thumbnails, not the mobile device), for that reason we'd need extra info about the problem in logs, or in a test account.

  12. Anycubic commented on Aug 8, 2024

    @Anycubic
    Author

    I have the same issue, and can't see anything in the log. It has persisted across multiple versions of the android app. Is this the same as #3525 ?

    i don't think so. In that issue, problem happens only in grid view, now you reported the problem in list view, right? Checked again, i see all thumbnails in two different servers/devices. We can not control every single server (don't forget, server is who generates the thumbnails, not the mobile device), for that reason we'd need extra info about the problem in logs, or in a test account.

    How can I give a temp account detail to you in a private fashion?

  13. jesmrec commented on Aug 8, 2024

    @jesmrec
    Member

    How can I give a temp account detail to you in a private fashion?

    #4443 (comment)

  14. Anycubic commented on Aug 8, 2024

    @Anycubic
    Author

    How can I give a temp account detail to you in a private fashion?

    #4443 (comment)

    Did it

  15. jesmrec commented on Aug 8, 2024

    @jesmrec
    Member

    Thanks @Anycubic but i only see credentials without a server URL to attach them to.

  16. 24 remaining items

  17. Anycubic commented on May 3, 2025

    @Anycubic
    Author

    @julienn25 the versione with dyncache seems not working at all, not a single thumbnails appears. Now giving a try with 2GB version, it started loading thumbnails as expected

  18. julienn25 commented on May 3, 2025

    @julienn25

    weirdly it worked on my phone, I will let it to someone else to create a dynamic cache, at least we both got a working app for now, do you have any update on the 2 gb version?

  19. Anycubic commented on May 3, 2025

    @Anycubic
    Author

    weirdly it worked on my phone, I will let it to someone else to create a dynamic cache, at least we both got a working app for now, do you have any update on the 2 gb version?

    Don't know, I have a Honor Magic V2 with Android 15.

    Regarding the 2Gb version so far so good, I'll open all of the folders to see what happens

  20. jesmrec commented on May 5, 2025

    @jesmrec
    Member

    Great community work!! we will take a look as well as soon as we can.

  21. Anycubic commented on May 14, 2025

    @Anycubic
    Author

    @julienn25 just to say that the 2GB version has been working well since 2 weeks now. Did you made any modification to the dynamic cache version? Thanks

  22. julienn25 commented on May 15, 2025

    @julienn25

    @Anycubic nice!, I tried it for a while and it seemed to work, didnt do any deeper check of logs/error messages. For now im running the 2GB version as it has been stable with no issues regarding thumbnails.

  23. added this to the 4.7 - Next milestone on Jun 6, 2025
  24. joragua commented on Jun 18, 2025

    @joragua
    Member

    Hi everyone! Thanks a lot for your community work! 💯 @julienn25 could you share all the changes you included in the dynamic cache version? 😄 We'd like to check if it's a feasible and potential fix... You can chat with us directly in talk.owncloud.com or open a new PR with those changes! Thanks!

  25. Anycubic commented on Jun 18, 2025

    @Anycubic
    Author

    @Anycubic nice!, I tried it for a while and it seemed to work, didnt do any deeper check of logs/error messages. For now im running the 2GB version as it has been stable with no issues regarding thumbnails.

    @julienn25 unfortunately the 2GB stopped working after a while, always with same issue. I really hope that a fixed official version will surface sooner or later. BTW I"m will to try any beta version.
    Thanks for you work!

  26. modified the milestones: 4.7 - Current, Backlog on Oct 31, 2025
  27. DeepDiver1975 commented on Jun 30, 2026

    @DeepDiver1975
    Contributor

    Confirmed bug, root cause located. The thumbnail disk cache is capped at 10 MB:

    • presentation/thumbnails/ThumbnailsRequester.kt:57 — DISK_CACHE_SIZE: Long = 1024 * 1024 * 10 → Coil DiskCache.maxSizeBytes (line 82)
    • datamodel/ThumbnailsCacheManager.java — DISK_CACHE_SIZE = 1024 * 1024 * 10

    (Both verified on current master.) At ~6–30 KB per thumbnail that holds only ~500–700 entries; once full, Coil's LRU evicts older ones. That matches every report here: previews load on first visit, then "randomly" vanish when you revisit a folder (they were evicted), web is unaffected (server still has them), and @julienn25's 600 MB / 2 GB rebuilds restore the behavior. Not server-side, not format-specific.

    Two distinct problems:

    1. Cache too small. 10 MB is unrealistic for photo libraries. Raising it (or sizing it dynamically against free storage) fixes the eviction. A hard 2 GB cap can still overflow very large libraries (@Anycubic, ~24k images) — dynamic sizing is the more robust route.
    2. No re-fetch after eviction. Once a thumbnail is evicted it isn't re-requested from the server on the next folder visit, so the cell stays blank. This needs fixing alongside (1), else a bounded cache always leaves stale gaps.

    @julienn25 a PR with the dynamic-cache changes (per @joragua's request) would be the fastest path — the maintainers can iterate on sizing strategy from there.

    🤖 Generated with Claude Code

  28. linked a pull request that will close this issuefeat: enhance thumbnail generation #4946on Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions