App crashes when opening a large text file in the built-in editor
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
- Ambito
- mobile-dev, performance
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
Please agree to the following
- I have searched existing issues for duplicates
- I agree to follow this project's Code of Conduct
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
- Unlock a vault
- Open a
.txtfile of roughly 15 MB stored in it - 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
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cryptomator/android
-
Increase Cache Size?Apertatype:feature-request
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
cryptomator/android#666 ·
I maintainer di solito rispondono entro 1 giorno
-
misc:hub
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
cryptomator/android#657 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
cryptomator/android#656 ·
I maintainer di solito rispondono entro 1 giorno
-
Using custom CA certificatesApertatype:feature-request
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
cryptomator/android#653 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Android IntegrationApertatype:feature-request
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
cryptomator/android#647 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di cryptomator/android
Issue simili
-
bugbane/qf good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
osservatorionessuno/bugbane#173 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Bayern feature:Application ready web
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
digitalfabrik/entitlementcard#3176 ·
I maintainer di solito rispondono entro 7 giorni
-
bug need-device
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
ramesh130/superplayer#495 ·
I maintainer di solito rispondono entro 1 giorno
-
Remove song from playlistAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
maxrave-dev/SimpMusic#2649 ·
I maintainer di solito rispondono entro 2 giorni