Repository navigation
Closed
Description
Description
意外的渲染进程错误.
Minimal Reprouducible Markdown Example (or Steps)
Stack Trace
Error: Invalid offset - splits unicode bytes
at unicount.strPosToUni (file:///C:/Users/Administrator/AppData/Local/Programs/marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:99249:13)
at exports2.dlen (file:///C:/Users/Administrator/AppData/Local/Programs/marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:99332:70)
at checkOp (file:///C:/Users/Administrator/AppData/Local/Programs/marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:99281:26)
at Object.compose2 [as compose] (file:///C:/Users/Administrator/AppData/Local/Programs/marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:99462:7)
at xfBoundary (file:///C:/Users/Administrator/AppData/Local/Programs/marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:146725:66)
at file:///C:/Users/Administrator/AppData/Local/Programs/marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:146746:119
at Object.eachChildOf (file:///C:/Users/Administrator/AppData/Local/Programs/marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:146422:9)
at xfBoundary (file:///C:/Users/Administrator/AppData/Local/Programs/marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:146735:25)
at file:///C:/Users/Administrator/AppData/Local/Programs/marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:146746:119
at Object.eachChildOf (file:///C:/Users/Administrator/AppData/Local/Programs/marktext/resources/app.asar/out/renderer/assets/index-D8Yzs57g.js:146422:9)
Version
MarkText: v0.20.0-rc.1
Operating system: Windows_NT x64 10.0.26200 (win32)
Metadata
Metadata
Assignees
Labels
No labels
Activity
Jocs commentedon Sep 14, 2026
Thanks for the report!
Invalid offset - splits unicode bytesis the emoji deletion crash tracked in #4926. With the caret right after an emoji at the end of a paragraph (or just before inline markup such as**), Backspace removed only half of the emoji's UTF-16 surrogate pair. The editor's text operations can't encode that leftover half, so that edit and every edit after it threw this error. Depending on what came next, the stack ends inapply(the next Backspace) or incompose/xfBoundary(any later edit) — your stack is one of these.It is fixed on
develop:The fixes 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 text you were editing and the keys you pressed).