nextcloud / nextcloud/ios

iOS APP freezes for 1min at the start

Open
#1,514 4 comments 1 reaction 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

Expected behaviour

Open up the Nextcloud App without any freezing

Actual behaviour

When i open the Nextcloud App on my iPad it freezes for 1 minute. After that you can start using the app. - I did not press on the Media tab.
Basically the same as #769 and #1380 (and probably many other issues)

Also open up the Photos folder is impossible, or if you are lucky the app freezes for minutes and then you can navigate through the folder. #845

I digged a little bit around and it looks like that it all comes down to the PROPFIND requests which are the root cause for many issues: https://help.nextcloud.com/t/gallery-image-browsing-click-on-an-image-very-slow-for-large-folders/102637

Steps to reproduce
  • Put some Files and folders to Nextcloud (~56GB in my case)
  • I have a Photos Folder with 30GB images
  • Open Nextcloud App
  • Get a coffee :)

My guess is, that the App is querying all folders and files from the Nextcloud Server and that this process takes so long.

Reasoning or why should it be changed/implemented?

It's annoying

iOS version

14.2

App version

3.1.0.7

Server configuration

Operating system:
Ubuntu 18.04

Web server:
Apache2

Database:
MySQL 5.7

PHP version:
PHP 7.2

Nextcloud version: (see Nextcloud admin page)
Nextcloud 20.0.4

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 freeze during app launch and while opening the Photos folder with a large file set, then inspect the PROPFIND requests mentioned in the report. Determine which requests block the app and verify that launch and Photos navigation remain usable without minute-long freezes.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.