Skip to content

意外错误消息 #5018

Closed
Closed

Description

@ForgetXX

Description

意外的渲染进程错误.

Minimal Reprouducible Markdown Example (or Steps)

Stack Trace

Error: Cannot use numerical key for object container
    at assert (file:///C:/Marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:146470:24)
    at insertChildMut (file:///C:/Marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:146509:99)
    at drop2 (file:///C:/Marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:146614:127)
    at drop2 (file:///C:/Marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:146611:27)
    at Object.apply2 [as apply] (file:///C:/Marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:146621:9)
    at JSONState._apply (file:///C:/Marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:147289:44)
    at JSONState._flushOperationCache (file:///C:/Marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:147442:10)
    at file:///C:/Marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:147422:12

Version

MarkText: v0.20.0-rc.1
Operating system: Windows_NT x64 10.0.26200 (win32)

Activity

  1. Jocs commented on Sep 14, 2026

    @Jocs
    Member

    Thanks for the report!

    This is the list outdent crash from #4899 — your stack (insertChildMut → drop → drop → apply → JSONState._flushOperationCache) is frame-for-frame the same. Pressing Shift+Tab on a nested list item that had content after its list (for example a paragraph) put that content directly inside a list without a list item. Nothing looked wrong, but the next edit there, typically Backspace, threw Cannot use numerical key for object container, and every later edit failed the same way.

    It is fixed on develop by #4913 and will ship in the next release after v0.20.0-rc.2. If you still see this error on that release, please open a new issue with the steps (the markdown you were editing and the keys you pressed).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions