nextcloud / nextcloud/ios

Large PDF’s crash Nextcloud

Open
#4,112 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

How to use GitHub
  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce
  1. Open the Nextcloud iOS app and navigate to any large PDF file (reproduces with multiple different PDFs in the 20MB+ range).
  2. Tap the PDF to open it in the in-app viewer.
  3. Scroll through the document continuously.
Expected behaviour

The PDF viewer should remain stable and allow continuous scrolling/navigation through large documents without crashing.

Actual behaviour

The PDF opens and renders correctly. After scrolling for under a minute, the Nextcloud app crashes and is dismissed back to the iOS home screen. This is reproducible across multiple different large PDFs, so it does not appear to be a file-specific issue — it looks size/memory related. Smaller PDFs do not exhibit the crash.

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

Viewing PDFs is a core use case for the Nextcloud iOS app, and large PDFs (manuals, scanned documents, books) are common. The viewer should handle them without crashing, or fall back to paged/streaming rendering if the document exceeds available memory.

Environment data

iOS version: iPad OS 26.4.1
iPad model: iPad Pro 13 M4
Nextcloud iOS app version: 33.0.8.1
Server operating system: 32.0.8
Affected PDFs: Multiple large, both text-based and image-heavy.

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 at the Nextcloud iOS app’s in-app PDF viewer and reproduce the crash with a 20MB+ PDF while scrolling continuously. Compare behavior with smaller, text-based, and image-heavy PDFs, and inspect the iOS app logs if available. Done means large PDFs remain usable without crashing.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.