-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Photo section load endless #1682
Comments
Same problem here. Photo section and the search is loading endless. |
The photo search might take quite a while at this time since it fetches a search result with all images-search-items from the server and then renders a result list this might, depending on the image count take ~15 minutes for 5000+ images (like on my server).
|
Same here. Isn't it possible to limit search to specific directories? For example 'Photos' or 'Pictures' would be directories you want to load, but 'Backup/Photos' probably not. |
I dont have a lot of pictures on my cloud - around 300 and I don't see any pictures in the photo section - Only "loading..." |
I do not know how much pictures I have exactly but I open the app and let it work for a while (much more then 15 minutes). Is it a problem if screen goes black, I am not 100% familiar with android? But also the cpu usage on server goes back to normal after around 1 minute |
@CordlessWool yeah, most of the processing takes place on the client due to a not yet optimal implementation (ListView instead of RecyclerView, reading all data at the same time instad on endless scrolling/block-reading). |
I don't get this running in my phone. |
I sort all pictures based on year / month. With around 300 GB of pictures and 500 a month. The app is sooooo slow a honey. Even the web is loads bad with the Preview app enabled. Basically it doesn't fix anything. Compared to Dropbox, this solution is very FAR behind... I run NC on 6 core with super fast SSDs, 4 GB ram and all optimisations which you can imagine like NGINX, APU, Redis. |
I've put in all directories .nomedia to prevent that the pictures are displayed. Even then the phone keeps saying loading when the photo's option is selected. Is there any sight on a fix? |
There are several things which will improve speed: #2087, nextcloud/server#8023 and we want to show only the first 100 (to be discussed) images and when reaching the bottom of the list, it should automatically append the next 100. |
As pointed out by @tobiasKaminsky we are working on improving this. The big issue is that server side support is needed. And nextcloud/server#8023 is a big step in that direction. This will allow the client to do better queries resulting in faster and smaller responses. Currently the only thing the client can do is say: "Give me all the pictures!" which on most setups will take a significant amount of time to fetch/process and return. So long story short we are working on this and hopefully it will all run as smooth as possible on NC14 |
Ok, i hope that will be fixed in NC14 :) |
Is this the same issue as in issue #2850? |
No fix yet on displaying photos quicker on the android app? |
Every modern photo collection has too many pictures for the android app to work properly. |
The server doesn't support reading the photos in blocks, thus this can't be implemented at the moment. |
One relatively light workaround I see at the development level could be that, when the user selects the photo/gallery section in the Android app, instead of trying to show all the pictures available in all the folders (which never succeeds with medium/large collection), it could behave like the NC web gallery app, i.e. only showing the first level folders where pictures are available. Then, navigating in each of these folders, where presumably there is less pictures to show, could give a chance to the app. to actually show something! This is not the perfect solution of course but it could make the photo section in the Android app usable (right now, it's pretty useless with medium/large collections). That said, the ultimate goal should still be to be able to show all the pictures in the photo section, with a reasonable delay, like Dropbox and other comparable apps do. |
It works fine on iPhone, where all photos are listed as expected, but doesn't work on Samsung S8, where I only get the spinning wheel. Nextcloud server: 15.0.5 |
Whats the latest on this issue? I've been avoiding moving my large photo collection into Nextcloud as the android app is completely unusable with a large collection. Are changes still being worked on on the server side to speed up the android client loading images? |
Still behaving the same on my Samsung S8. My server is the latest version as well as the app. No change:( |
There is now a PR ready to test: |
To centralize this please report anything found in #2250. |
I just installed nextcloud (running as docker instance - with haproxy in front) - and it "seems to work fine". I connected the fdroid app on my lineageOS 15.1 to it - and I uploaded the 4 images I have (only 4). They now shop under InstantlyUPloaded/Camera - and show in webbrowser as well. |
Actual behaviour
photo section is loading endless. Monitoring Server show that the cpu use increase for an minute but the the app do not stop loading. thumbnails in "all files"-section are shown normal
Expected behaviour
should show photos after created thumbnails on server
Steps to reproduce
Environment data
Android version: 7.1.2
Device model: Nexus 5x with LineageOS
Stock or customized system: LineageOS
Nextcloud app version: 2.0.0
Nextcloud server version: 12.0.3
Logs
Web server error log
no specific error on server log, only Sabre\DAV\Exception\BadRequest: expected filesize 1343225856 got 57344 at same day but not same time
Nextcloud log (data/nextcloud.log)
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
The text was updated successfully, but these errors were encountered: