You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unexpected error: Failed to execute 'setStart' on 'Range': There is no child at offset 1565. #3727
An unexpected error occurred in the renderer process.
Stack Trace
Error: Failed to execute 'setStart' on 'Range': There is no child at offset 1565.
at Object.classList [as select] (file:///E:/software/marktext/marktext-1.0beta-win64/resources/app.asar/dist/electron/webpack:/marktext/src/muya/lib/selection/index.js:339:28)
at Object.setCursorRange (file:///E:/software/marktext/marktext-1.0beta-win64/resources/app.asar/dist/electron/webpack:/marktext/src/muya/lib/selection/index.js:485:79)
at Rs.key [as setCursor] (file:///E:/software/marktext/marktext-1.0beta-win64/resources/app.asar/dist/electron/webpack:/marktext/src/muya/lib/contentState/index.js:198:5)
at Rs.this [as partialRender] (file:///E:/software/marktext/marktext-1.0beta-win64/resources/app.asar/dist/electron/webpack:/marktext/src/muya/lib/contentState/index.js:260:59)
at file:///E:/software/marktext/marktext-1.0beta-win64/resources/app.asar/dist/electron/webpack:/marktext/src/muya/lib/contentState/clickCtrl.js:184:7
Closing this with the regression-guard e2e specs added in #4268.
The user-action recipe described here (and the same crash signature in ~25 other reports) does not reproduce on the current develop branch (0.18.9). The setCursorRange offset clamp at src/muya/lib/selection/index.js:524-530 plus cumulative refactor fixes appear to have closed the underlying bug.
The recipes from these reports are now encoded as Playwright tests in test/e2e/crash-range-offset.spec.ts so a regression here will fail CI before it reaches another user.
If you still hit this crash on a recent build, please reopen with the exact MarkText version and the markdown that triggered it.
Activity
Jocs commentedon May 23, 2026
Closing this with the regression-guard e2e specs added in #4268.
The user-action recipe described here (and the same crash signature in ~25 other reports) does not reproduce on the current
developbranch (0.18.9). The setCursorRange offset clamp atsrc/muya/lib/selection/index.js:524-530plus cumulative refactor fixes appear to have closed the underlying bug.The recipes from these reports are now encoded as Playwright tests in
test/e2e/crash-range-offset.spec.tsso a regression here will fail CI before it reaches another user.If you still hit this crash on a recent build, please reopen with the exact MarkText version and the markdown that triggered it.
test(e2e): regression guards for previously-reported "Unexpected erro…
test(e2e): regression guards for previously-reported "Unexpected erro…