-
-
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
no previews generated/shown for local images #10389
Comments
@svenb1234 I reproduced the steps on a Pixel 2XL. I only see a picture preview, but not a video preview. Does your error look similar to the following: Please provide screenshots if possible, would really help a lot. |
If you do not get a video preview that's probably because ffmpeg or similar is not installed. Also, you are not looking at pictures which are local, i.e. on your phone's nextcloud folder. At least I do not see any green ticks on your screenshot. Unfortunately I cannot show you any screenshot of the media view (not file view) since it crashes. But there one would see that those pictures which are only on the server get a preview, the local ones not. As mentioned above, I use the "move to appp folder after upload feature" of the android app. |
@svenb1234 Thanks for the screenshot.
Ah that's right, our NC org doesn't have ffmpeg installed. The org I'm a member of isn't hosted by me so I can't add it. Therefore I'm going to :
Ok, I will take these in consideration as well as soon as I start testing and update you soon with my findings. |
@svenb1234 Question:
Can you crash the app like that by going to the media view and provide the logs here? I tested this on an emulator for Android 10, NextCloud 23, and the current 3.20.3 app version: it shows the image preview there (maybe cause it's only one picture) what's the size on your local folder? I'm not sure why yours isn't, but if you provide the crash logs from when you go to media view I can maybe figure out why. |
@mlsxlist what is the size of your media folder? |
@Tiam-Abderezai the media folder on my device has 45.6 GB. Photos+Videos on Nextcloud server are 51 GB. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Reproduced (app master - emulator with sdk 31). Interestingly enough, when loading the same files in the main activity, the thumbnail is correctly generated, and is displayed correctly in the Media view afterwards. So, in order to reproduce:
This will show some image preview placeholders instead of the thumbnails. It will be corrected if you go to the main screen and back. Does this match your experience @svenb1234? |
@mlsxlist your problem looks different from the original issue. Please open a separate issue. |
What do you mean by "main view" for me switching to the normal "all files" view and returning to the media view does not help. I have a folder in my user with the photos in it. That folder is shared to a second user. If I open the android app, all photos that are on my phone as well as on the server are not shown with previews. The second user's pictures are shown with a preview. If I open the media view on the second user's phone, it is the same, just the other way around. The pictures on the second user's phone are not shown, while mine are shown fine. In the web-ui, all pictures are shown with preview. I do remember though that I did have situations where images were shown without preview and after changing to "all files" and back, they were shown. But currently it is as described. Previews are never shown for pictures which are also in the local device's nextcloud app folder. Maybe unrelated: in the media view the green tick for local pictures is missing. That tick does show-up in the file view of the folder they are in. Also, the peviews are not shown/generated in the file view either. But that might also be related to the folder having a lot of files and the file view only showing 155 of them, even when refreshing. LArge folders have been an issue for the app for a long time. I cannot find anything in the logs though only the double "//" irritates me a bit.
|
If I use a third device, a tablet which belongs to the first user and has no pictures on it, it generates and shows all previews of user one and two. Generating again because they are larger? In any case, after that third device which has no local pictures on it has opened the media view, the previews are also shown on the device of the first user with local pictures. The second user's device still does not show the previews for the pictures on the second user's device. However, the first few times one opens the media view on the first user's device with the local pictures on it, one gets crashes of the attached type. After some crashes the it seems that whatever causes them is solved and everything works without these crashes. Until there are new pictures and the process begins all over. Some cache which is built? Cause of errorException in thread "main" java.lang.IllegalStateException: Couldn't read row 709, col 3 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
at android.database.CursorWindow.nativeGetString(Native Method)
at android.database.CursorWindow.getString(CursorWindow.java:462)
at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:54)
at android.database.CursorWrapper.getString(CursorWrapper.java:141)
at com.owncloud.android.datamodel.FileDataStorageManager.createFileInstance(FileDataStorageManager.java:957)
at com.owncloud.android.datamodel.FileDataStorageManager.getGalleryItems(FileDataStorageManager.java:2224)
at com.owncloud.android.datamodel.FileDataStorageManager.getAllGalleryItems(FileDataStorageManager.java:2169)
at com.owncloud.android.ui.adapter.GalleryAdapter.showAllGalleryItems(GalleryAdapter.kt:149)
at com.owncloud.android.ui.fragment.GalleryFragment.showAllGalleryItems(GalleryFragment.java:262)
at com.owncloud.android.ui.asynctasks.GallerySearchTask.onPostExecute(GallerySearchTask.java:127)
at com.owncloud.android.ui.asynctasks.GallerySearchTask.onPostExecute(GallerySearchTask.java:48)
at android.os.AsyncTask.finish(AsyncTask.java:771)
at android.os.AsyncTask.access$900(AsyncTask.java:199)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7870)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) App information
Device information
Firmware
|
Wow, this is very unexpected. Thanks for the detailed investigation.
This is the same crash detailed in #10213, can you reply there? |
I cannot reproduce this anymore. Not sure why it worked before. So I am back to: local pictures are not shown as preview. |
Sony XA2 ... fdroid instance of nextcloud android application (newest). Issue is long-term with numerous updates + firmware refresh/clean.downgrade. I do not think this is related to server version. Issue is the thumbnail in file picker as it doesn't get updated (1) (2) |
https://help.nextcloud.com/t/android-app-no-thumbnails-in-media-view/139773 Forum thread with users that share the same issue. |
The problem still occurs. Some pictures are showing up, others not. |
The bug persists in One UI 5 (android 13). Only low resolutions pictures are shown. |
I too have this issue. |
I too have this issue for one user suddenly. Used to work. In memories it works and requests previews. Android, samsung galaxy s21 5g. A reinstall of nextcloud app seems to fix it and previews are requested. |
Does it fix it permanently? |
It seems working fine. |
Hello, I reinstall app and see all photos but after I make new I don't see them. So it's not normal to reinstall app all the time I make new photos with smartphone 😕 |
Hello, same Problem here. Preview of Photos are not Shows. After i switch to "Files" and reload a folder with Pictures i have preview pictures of this Photos in Files and Media |
#11431 pretty similar behavior for me, is anyone working on a solution? |
Check #10389 (comment) This is currently not a priority for the product owner. |
I just want to metion - i have the same problem - only with androiddevices and i have the problem since more than one year - there seems to be a bigger problem. |
Yeah, this is going on “forever” on my side, sorry for this gloss-over description… I got so used to switch back to the folders and check media tab again, that I could not name a point in time when this all started. One weird thing is, that it lately seems to work fine 90% of the time on my wives Galaxy Tab S7. This is my only tablet-device and the only difference I see immediately, is that there is the bigger screen and the propable different preview being used here? All other android devices "in service" for my family fail, right now Pixel 6a, Galaxy S8, Galaxy A 53, Moto G 12-something.. This is the number on topic of discussion in my family regarding this app. |
It would be very nice to clean that up. I'm also having the same issue on android 13, pixel 7. |
Hey @AlvaroBrey any chance you could look into that? Issue is persisting for all my Android devices. |
I have the same issue. Previews are working on web browser but on android app they are missing. Clicking on an image correctly displays full quality image |
So it's now June 2024, the issue is still open. Are there any news on this?? |
Still having the Problem. Switched to Photopris Works perfectly. If you want to only sync Photos/Videos have a look |
I think you can still wait several months, they prefer to focus on adding futile AI-based features, rather than fixing bugs. |
My workflow for Android: Don’t use the gallery, it’s useless. I gave up. IOS: all fine, except stuff is not uploading in background and I have to ask people to keep the app open for that to happen. Probably apples fault. Desktop/Laptop/Tablet: just use memories, it is better in every way. I would like to contribute good money specifically for that feature to work normally, it is that big of a pain in the… |
If it were possible, I would not use Nextcloud at all. The problem is that it is literally the only self-hostable solution that is mature enough to store all my files while being able to access them from all my devices. If there was another similar paid solution, I would have used it with pleasure. I've been using Nextcloud for several years (2016, at the time it was Owncloud), and I still can't convince my family and friends to use it despite the fact that I manage the server, and therefore the storage space. It must be said that the platform is not a dream, quite the contrary! The web interface still looks cheap (I even have the impression that it gets worse year after year), the mobile application is still full of bugs, and the desktop application seems to come straight from the early 2000s. And the worst part is that with each major update, Nextcloud doesn't seem to fix many bugs, but on the contrary, seems to add a ton of features that are almost useless. "You didn't ask for face recognition? Well, we added one, and it works very badly! :D |
Hello i've had this issue for a while as well. Hope it fixes it for everybody |
OMG yes thank you 😊 |
It has been merged, we'll see if it fixes this issue when it gets released ❤️🔥 |
is there a build of 3.30 available which contains the fix? |
3.30 release for android, when ❓ |
I am interested too, the update release speed is extremely slow, is this normal? It's been two months and it's still not in production? |
I dont think before september/october because august (at least in italy) is vacation month. |
Fixed in #13158 |
Steps to reproduce
Expected behaviour
Actual behaviour
When swiping, the next local pictures are loaded as well. However, local videos are not loaded when opened via swiping. The display just shows "sorry". Opening the local videos directly from the thumbnail view plays them fine.
Environment data
Android version: 12
Device model: Pixel 6
Stock or customized system: stock
Nextcloud app version: 3.20.3
Nextcloud server version: 23
The text was updated successfully, but these errors were encountered: