Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#654 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
android, kotlin

調査の方向性

まず BrowseFilesPresenter.viewFile() と TextEditorPresenter.loadFileContent() から始め、次に FileCacheUtils.read() と binding.textEditor.text.toString() を呼び出す保存パスを調べます。issue #588 と動作を比較し、およそ 15 MB の .txt ファイルを使って再現します。完了の条件は、アプリがクラッシュしなくなることです。ファイルを安全に開くか、サイズ制限を報告して別のアプリを提示します。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Kotlin
スター
1.2k
フォーク
216
平均マージ
1日 20時間
マージ済み PR(30日)
9

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cryptomator/android のほかの issue

cryptomator/android の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。