Skip to content

Crash when opening large files #3518

Closed as not planned
Closed as not planned

Description

@icedgreen

Description

Marktext will crash when attempting to open large files. The output when running from the terminal is provided below.

Steps to reproduce

  1. marktext file.md (file being larger than what marktext can handle)
  2. Marktext will crash

Expected behavior:

Marktext should be able to open files of any size.

Actual behavior:

Marktext will crash (see output below).

Link to an example: [optional]

➜ ls -l delve\ 0-211.md 
-rw-r--r-- 1 dylan dylan 17841770 Nov 24 09:25 'delve 0-211.md'
➜ marktext delve\ 0-211.md 
strict mode: missing type "string" for keyword "pattern" at "#/properties/spellcheckerLanguage" (strictTypes)
[5281:1124/093521.182514:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
09:36:08.736 › The renderer process has crashed unexpected or is killed (crashed).

(marktext:5243): GLib-GIO-CRITICAL **: 09:36:08.749: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
Error sending from webFrameMain:  Error: Render frame was disposed before WebFrameMain could be accessed
    at Object.n.send (node:electron/js2c/browser_init:169:417)
    at Object.b.send (node:electron/js2c/browser_init:165:2492)
    at BrowserWindow.<anonymous> (/usr/lib/marktext/resources/app.asar/dist/electron/main.js:2:255432)
    at BrowserWindow.emit (node:events:406:35)
Error sending from webFrameMain:  Error: Render frame was disposed before WebFrameMain could be accessed
    at Object.n.send (node:electron/js2c/browser_init:169:417)
    at Object.b.send (node:electron/js2c/browser_init:165:2492)
    at BrowserWindow.<anonymous> (/usr/lib/marktext/resources/app.asar/dist/electron/main.js:2:255327)
    at BrowserWindow.emit (node:events:406:35)
➜ 

image

Versions

Activity

  1. added
    🐛 bug
    🐞 pri/critical
    on May 16, 2026
  2. Jocs commented on Oct 13, 2026

    @Jocs
    Member

    Closing this issue for now because we could not reproduce the reported renderer-process crash with the current development version (0.22.0-dev, commit b7e0124).

    On macOS ARM64, a generated Markdown file of approximately 17.8 MB caused prolonged loading and an unresponsive editor, but no renderer-process crash was observed. This does not establish that the original Linux crash has been fixed; the original file was not provided, and the test environment differs from the report.

    If this still occurs, please provide:

    • A Markdown file that reliably reproduces the crash, with any sensitive information removed.
    • Exact steps to reproduce, including the launch command or how the file is opened.
    • The MarkText version, operating system, and relevant terminal output or crash logs.

    With a reliable reproducer, we can reopen this issue and investigate further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bug🐞 pri/critical🔭 area/editor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions