owncloud / owncloud/android

[BUG] Big txt file leads to frozen preview

Open
#3,794 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Contributions are welcome Type:bug
Dominant language
Kotlin
Stars
4.2k
Forks
3.1k
Avg merge
1d 12h
Merged PRs (30d)
7

Description

Steps to reproduce
  1. Open a 2MB txt file (or greater)
Actual behaviour

Blank preview. Takes long to open and ANR happens

Expected behaviour

Preview loads faster, or set an spinner/waiter

Sample file:
sample-2mb-text-file.txt

https://user-images.githubusercontent.com/14894746/203554898-82890b87-de55-4591-9091-1767411110f8.mp4

Environment data

Android version: 12

Device model: Samsung A51

ownCloud app version: 2.21.2

ownCloud server version: 10.11

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 blank or frozen preview with the linked 2MB text file on Android 12, using the reported ownCloud app and server versions. Trace the text-file preview flow to identify the slow operation; done means the file opens without an ANR and shows either a timely preview or a visible loading indicator.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.