nextcloud / nextcloud/ios

[Recreate] [Not fixed] App doesn‘t load pictures in full size when previews haven‘t been created

Open
#2,867 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
2.5k
Forks
1k
Avg merge
2d 18h
Merged PRs (30d)
13

Description

There was a problem that was marked as fixed, but it is not, it still does not work correctly.

Original Issues https://github.com/nextcloud/ios/issues/2801

After update the problem is still not solved
If there are 100 photos of me in a folder, I open folder and immediately click on the first photo, I start flipping through the photos, I only see photos that were uploaded during the time between opening the folder and the first photo, after that I see just stubs. Still you need open folder, then scroll to the end so that all the previews are loaded and then open the first photo, then flipping through

I noticed this behavior
You open the folder, immediately scroll down (to photos whose previews have not loaded), you open a photo without a preview, it will not be loaded, but its neighbors (left/right one photo) will be loaded, if you scroll left/right one photo,and return back to the initially opened image, it will not will be loaded but as soon as we scroll left/right two or more photos, then return to the originally opened image it will be loaded. This does not depend on the stability of the Internet connection, at first I thought that the photo was not loading because it was waiting for its turn, but this is clearly not the problem, even after 10 minutes the image was still not loaded

There is also a problem where subsequent photos for which a preview has not been loaded are not loaded. (0:38 second)

On the website, I don‘t have this problem. Any solutions for this?

Steps to reproduce

  1. Open folder with pictures
  2. Open picture before load preview

Expected behaviour:
The picture should load after some time

Actual behaviour:
The picture will never load, instead we have a stub for the preview

I recorded a video on how to reproduce this bug.

https://github.com/nextcloud/ios/assets/22761810/008dd2c3-0cc7-49e4-a26a-cbb971c8e2db

iOS version: 17.4.1
Nextcloud iOS app version: 5.2.4.2

Server operating system
Web server: Apache
Database: MariaDb+Redis
PHP version: 8.2.15
Nextcloud version: 28.0.2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the iOS app using a folder of photos whose previews have not loaded, then open and swipe through the photos as described. Trace the photo preview and full-size loading flow from that reproduction; done means every opened photo loads instead of remaining a stub, including subsequent photos without previews.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.