Skip to content

new media view stalls the UI when launched  #10172

Closed

Description

@svenb1234

Steps to reproduce

  1. Go to the hamburger menu
  2. Open the media view

Expected behaviour

  • pictures should be visible instantly, at least those on the device, better at least all that are already known to the client since they have been loaded before
  • "gathering pictures" or similar should be shown if pictures cannot be shown instantly, e.g. first start-up and no local pictures.

Actual behaviour

  • The UI stalls for more than 15 seconds

Environment data

Android version: 12

Device model: Pixel 4a

Stock or customized system: stock

Nextcloud app version: 3.20

Nextcloud server version: 23.0.4

Reverse proxy: apache

Logs

Web server error log

Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Insert your Nextcloud log here

NOTE: Be super sure to remove sensitive data like passwords, note that everybody can look here! You can use the Issue Template application to prefill some of the required information: https://apps.nextcloud.com/apps/issuetemplate

Activity

  1. aaronjlawson commented on May 6, 2022

    @aaronjlawson

    Confirmed same behavior with Pixel 5, NC v24

  2. anarsoul commented on Jun 16, 2022

    @anarsoul

    Same here on Pixel 6, Nextcloud v24

  3. AlvaroBrey commented on Jun 27, 2022

    @AlvaroBrey
    Member

    Confirmed happening if a very large amount of pictures is available in the server

  4. szaimen commented on Jun 27, 2022

    @szaimen
    Contributor

    Yes, can confirm that this happens when you have a lot of media files on your server (in my case around 120k).

    Based on Alvaro this happens because all media files get loaded in this view currently:
    https://github.com/nextcloud/android/blob/master/app/src/main/java/com/owncloud/android/ui/fragment/GalleryFragment.java#L198

    So a fix would be to only load new "pages" of new photos (with fixed size) as we're scrolling down.

  5. AndyXheli commented on Jul 6, 2022

    @AndyXheli

    Same issue Samsung S21+ G5 SM-G996U1. I have over 30G+ of Photos & Videos but when clicking on the Media tab view take a few seconds to load and when it loads it lags while browsing content and clicking on photos. The iOS team dose a really nice job at loading the files via the media tab. Is there a way to use their loading method ?

  6. joshtrichards commented on Dec 10, 2023

    @joshtrichards
    Member

    Related and potentially duplicates: #10882 & #10499

  7. PhilLab commented on Sep 24, 2026

    @PhilLab
    Contributor

    Should be addressed in #17606 and fixed in the next NC app release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions