[BUG] Big txt file leads to frozen preview
Open
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
- 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
Environment data
Android version: 12
Device model: Samsung A51
ownCloud app version: 2.21.2
ownCloud server version: 10.11
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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