Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new media view stalls the UI when launched #10172

Open
svenb1234 opened this issue May 5, 2022 · 6 comments
Open

new media view stalls the UI when launched #10172

svenb1234 opened this issue May 5, 2022 · 6 comments
Labels
approved bug feature: media tab Media tab performance: misc lag, ANR, etc and rarer exceptions/errors that don't have their own labels

Comments

@svenb1234
Copy link

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

@svenb1234 svenb1234 added the bug label May 5, 2022
@aaronjlawson
Copy link

Confirmed same behavior with Pixel 5, NC v24

@anarsoul
Copy link

Same here on Pixel 6, Nextcloud v24

@AlvaroBrey
Copy link
Member

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

@szaimen
Copy link
Contributor

szaimen commented Jun 27, 2022

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.

@AndyXheli
Copy link

AndyXheli commented Jul 6, 2022

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 ?

@joshtrichards joshtrichards added feature: media tab Media tab performance: misc lag, ANR, etc and rarer exceptions/errors that don't have their own labels labels Oct 16, 2023
@joshtrichards
Copy link
Member

Related and potentially duplicates: #10882 & #10499

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved bug feature: media tab Media tab performance: misc lag, ANR, etc and rarer exceptions/errors that don't have their own labels
Projects
None yet
Development

No branches or pull requests

7 participants