Skip to content

意外错误消息 #5315

Closed
Closed

Description

@cforiky630

Description

意外的渲染进程错误.

Minimal Reprouducible Markdown Example (or Steps)

Stack Trace

Error: Cannot use numerical key for object container
    at assert (file:///F:/tools/marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:146470:24)
    at insertChildMut (file:///F:/tools/marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:146509:99)
    at drop2 (file:///F:/tools/marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:146614:127)
    at Object.apply2 [as apply] (file:///F:/tools/marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:146621:9)
    at JSONState._apply (file:///F:/tools/marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:147289:44)
    at JSONState._flushOperationCache (file:///F:/tools/marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:147442:10)
    at file:///F:/tools/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!

    Cannot use numerical key for object container means an earlier edit had already left the document in an invalid shape (for example a paragraph placed directly inside a list), and a later edit could not be applied on top of it. The report has no steps and the stack alone doesn't show which edit caused that, but the known ways to get a document into such a state are now fixed on develop:

    These will ship in the next release after v0.20.0-rc.2, so I'm closing this for now. If you still hit this error on that release, please open a new issue with the markdown you were editing and the keys you pressed right before the error.

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