nextcloud / nextcloud/ios

"Upload the whole camera roll" crashes the app

Open
#1,808 10 comments 5 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

Steps to reproduce
  1. Go to Settings > Auto upload
  2. Enable "Only use Wi-Fi connection" both for photos and for videos
  3. Enable "Upload the whole camera roll"
Expected behaviour

The app uploads the whole library to Nextcloud (18k+ files in my case).

Actual behaviour

The app creates a local database of the media files to upload, then starts uploading the files until after a few seconds, then the UI suddenly exits to the home screen. Weirdly, Nextcloud is still present in the multitask view.

This happens forever, until I manually turn off the "upload all" toggle. The app typically crashes a few times while trying to reach this setting, which makes the experience worse.

What I've tried:

  • closing and reopening the app
  • unchecking and re-checking "Upload the whole camera roll"
  • uninstalling the app completely and rebooting the phone
Screenshots

If applicable, add a screenshot showing the issue.

Logs
If applicable, you can post the iOS app or server logs (removing any sensitive information).
Reasoning or why should it be changed/implemented?

Because the app does not behave correctly.

Environment data

iOS version: iOS 15.1

Nextcloud iOS app version: Nextcloud Liquid for iOS 4.1.0.17

Server operating system: nextcloud-fpm-alpine:23 Docker image

Web server: nginx

Database: PostgreSQL 13.5 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.3.1_git20211027) 10.3.1 20211027, 64-bit

PHP version: 8.0.13

Nextcloud version: 23.0.0

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 crash in Settings > Auto upload with both Wi-Fi-only options enabled and the whole camera roll selected, using iOS 15.1 and Nextcloud Liquid for iOS 4.1.0.17. Inspect the app crash information and upload behavior; done means the full library uploads without the app exiting, including the reported 18k+ file case.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile-dev
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.