Skip to content

App crashes when opening relatively small ".txt" file (~306 KB, ~9.8k lines) #2814

Description

@Chandramauli-Arm64

⚠️ This issue respects the following points: ⚠️

  • This is a bug. Not a question or feature request.
  • The topic is not already reported at Issues. (I've searched it).
  • Markor is up to date. See Releases for the latest version. Updates are available from F-Droid and GitHub.
  • The bug is still present in the latest development version (git master). (Please download and try the test version of Markor, named Marder. Don't worry; Markor and Marder appear as completely separate applications. You can install both side-by-side, and Markor settings are not touched. In case the issue is resolved there, you don't need to create a bug report. The change will be part of the next Markor update.)

Description

Hello,

I am experiencing a consistent crash when trying to open a .txt file in Markor.

Details:

  • File size: ~306 KB

  • Line count: ~9,858 lines

  • File type: .txt (plain text, no special formatting)

Behavior:

The app closes after 3 second while staying blank dark screen when attempting to open the file.

No error message is shown — it simply auto-closes.

Environment:

Occurs on both:

  1. Latest stable version of Markor:-
Package: net.gsantner.markor
Version: v2.16.1 (163)
Flavor: Default (release)
Build date: 2026-03-19T08:25Z
ISource: com.Google Play
VCS Hash: f33eb6a8dfb210f27bfe7294430d4d39b795bd0f
VCS Msg: Markor v2.16.1 (code 163)
  1. Nightly build (Marder):-
Package: net.gsantner.markor_test
Version: v2.16.1-1040 (260411)
Flavor: Atest (debug)
Build date: 2026-04-11T10:40Z
ISource: com.Google Play
VCS Hash: 81d040a369bc1fae465700ee62337b765903fecf
VCS Msg: Add Markor settings shortcut to Android system settings, by gsantner

Additional notes:

I am aware of existing crash reports related to large files (>1 MB), but this file is significantly smaller.

The issue appears reproducible across both versions, suggesting it may not be version-specific.

The file is plain text and does not contain unusual formatting.

Question:

Is this crash related to the number of lines (~10k), or could there be another limitation or parsing issue involved?

Crash video:-

VID_20260504_154104.mp4
VID_20260504_154553.mp4

Thank you.

Steps to reproduce

  1. Write a plain text file around 300 to 400 Kb in size
  2. Try to open it in markor
  3. See the result.

Information

Android version: 15 (Realme ui 7)
Device: Realm p1 5g (RMX 3870)
App Version: 2.16.1

Source

GitHub Releases

Format / File type

Plaintext

Additional info / Log

The same file opens instantly without any issue in:
- Neovim (Termux)
- ZArchiver text viewer

**This suggests**:
- The file is valid
- The file size (~306 KB, ~9.8k lines) is not problematic
- The issue is likely specific to Markor’s parsing or rendering layer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions