Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

App crashes when opening a large text file in the built-in editor

Aperta
#654 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
android, kotlin

Direzione di ricerca

Inizia con BrowseFilesPresenter.viewFile() e TextEditorPresenter.loadFileContent(), quindi esamina FileCacheUtils.read() e il percorso di salvataggio che chiama binding.textEditor.text.toString(). Confronta il comportamento con l’issue #588 e riproducilo usando un file .txt di circa 15 MB. È completato quando l’app non va più in crash: apre il file in sicurezza oppure segnala il limite di dimensione e offre un’altra app.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

state:to-be-confirmed type:bug
Please agree to the following
Summary

Opening a large (~15 MB) .txt file in the built-in text editor kills the app process. All vaults are locked afterwards and the password has to be entered again.

System Setup
- Android: not specified by the reporter
- Cryptomator: 2.0.0
Steps to Reproduce
  1. Unlock a vault
  2. Open a .txt file of roughly 15 MB stored in it
  3. Tapping the file routes it to the built-in text editor
Expected Behavior

The file opens, or the app reports that it is too large for the built-in editor and offers to open it with another app.

Actual Behavior

The app terminates and restarts. Because the process dies, all vaults are locked and the password must be entered again. No error message is shown.

Reproducibility

Always

Relevant Log Output
(no debug log supplied yet)
Anything else?

Files ending in .txt, .md and .todo are always routed to the built-in editor in BrowseFilesPresenter.viewFile(), with no size check and no way to opt out. TextEditorPresenter.loadFileContent() reads the whole file into a single String via FileCacheUtils.read() and hands it to the EditText, so memory use scales with file size — and again on save via binding.textEditor.text.toString(). This is consistent with an OutOfMemoryError on a file of this size.

Possibly related: #588 (text editor performance on large files).

Additional Context

Reported via support ticket. Awaiting developer confirmation.

Lingua principale
Kotlin
Stelle
1.2k
Fork
216
Merge medio
1g 20h
PR unite (30g)
9

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cryptomator/android

Tutte le issue di cryptomator/android

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.